package lint import ( "os" "path/filepath" "testing" ) // What this repository no longer holds (R4g, design 47 acceptance test 24): the checker runs the build module's own steps // and the repository's tests, so no script of the repository stands in for them. A file named here came back. // root is this repository's root, from the package's directory. const root = "../.." func TestTheRepositoryHoldsNoMergeCheckScript(t *testing.T) { for _, name := range []string{"merge-check.sh", "check-nested-modules.sh", "RELEASE-57.md", "testdata/store-tests"} { if _, err := os.Stat(filepath.Join(root, name)); err == nil { t.Errorf("%s is in the repository: the checker (ADR 0501 ยง5) runs its steps, and no script of the repository "+ "stands in for it", name) } } }