t: prefix all existing tests with t-

This commit is contained in:
Taylor Blau 2018-07-09 15:52:24 -05:00
parent db4027fd47
commit 219b7e0a3d
83 changed files with 5 additions and 5 deletions

2
.gitignore vendored

@ -8,7 +8,7 @@ man/*
*.test *.test
tmp tmp
test/remote t/remote
debian/git-lfs/ debian/git-lfs/
debian/*.log debian/*.log

@ -1,6 +1,6 @@
#!/usr/bin/env bash #!/usr/bin/env bash
. "test/testenv.sh" . "t/testenv.sh"
set -e set -e
SHUTDOWN_LFS=no SHUTDOWN_LFS=no

@ -20,7 +20,7 @@ var (
debugging = false debugging = false
erroring = false erroring = false
maxprocs = 4 maxprocs = 4
testPattern = regexp.MustCompile(`test[/\\]test-([a-z\-]+)\.sh$`) testPattern = regexp.MustCompile(`t[/\\]t-([a-z\-]+)\.sh$`)
) )
func mainIntegration() { func mainIntegration() {
@ -148,7 +148,7 @@ func testFiles() []string {
files := make([]string, 0, len(os.Args)-3) files := make([]string, 0, len(os.Args)-3)
for _, arg := range os.Args { for _, arg := range os.Args {
fullname := "test/test-" + arg + ".sh" fullname := "t/t-" + arg + ".sh"
if fileMap[fullname] { if fileMap[fullname] {
files = append(files, fullname) files = append(files, fullname)
} }
@ -159,7 +159,7 @@ func testFiles() []string {
func allTestFiles() []string { func allTestFiles() []string {
files := make([]string, 0, 100) files := make([]string, 0, 100)
filepath.Walk("test", func(path string, info os.FileInfo, err error) error { filepath.Walk("t", func(path string, info os.FileInfo, err error) error {
if debugging { if debugging {
fmt.Println("FOUND:", path) fmt.Println("FOUND:", path)
} }