mesh/delivery superseded: a newer head of the same pull request
mesh/check failed: g14: novox/mesh-catalog#464: checks/health/go.mod names mesh-sdk a9560890ee26, which is neither on mesh-sdk's trunk nor the group's…
34 lines
984 B
Go
34 lines
984 B
Go
package main
|
|
|
|
import (
|
|
"path/filepath"
|
|
"testing"
|
|
|
|
"git.novox.be/novox/mesh-catalog/checks/trunk"
|
|
)
|
|
|
|
// The script's comparison of this list with the trunk's (novox/hq ADR 0529 clause 2): the list of modules not yet moved gains none
|
|
// the trunk's copy at the merge base does not hold. The catalogue itself is judged against the list by
|
|
// TestTheCatalogueSaysConfigInEveryMovedModule. Skipped, and said, where no trunk is beside.
|
|
func TestTheUnmovedListHoldsNoModuleTheTrunksDoesNot(t *testing.T) {
|
|
path, ok := trunk.Copy(t, "checks/config/unmoved")
|
|
found, err := Check(filepath.Join("..", ".."))
|
|
if err != nil {
|
|
t.Fatal(err)
|
|
}
|
|
unmoved, err := Unmoved("unmoved")
|
|
if err != nil {
|
|
t.Fatal(err)
|
|
}
|
|
base := seed
|
|
if ok {
|
|
if base, err = Unmoved(path); err != nil {
|
|
t.Fatal(err)
|
|
}
|
|
}
|
|
_, _, added := Judge(found, unmoved, base)
|
|
for _, m := range added {
|
|
t.Errorf("checks/config/unmoved gains %s, which the trunk's copy does not hold: the list only shrinks", m)
|
|
}
|
|
}
|