Delete merge-check.sh, check-nested-modules.sh, the store-tests list and RELEASE-57: the checker runs the build module's steps, nested modules by convention (issue 1294, C7a and C7b)
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
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)
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user