Welcome to little lamb

Code » test-hashes » commit 8601f47

Tweak tests

author Olivier Brunel
2023-01-25 13:22:35 UTC
committer Olivier Brunel
2023-01-25 13:43:11 UTC
parent 5e9adc8f8dbbd7f92587f3043f4fc43956d15a98

Tweak tests

tests +5 -9

diff --git a/tests b/tests
index a672035..bd2b830 100755
--- a/tests
+++ b/tests
@@ -1,11 +1,7 @@
 #!/bin/sh
 
-test()
-{
-    for test do
-        echo - test ${test:5}
-        ./$test
-    done
-}
-
-test $(ls test-*)
+for test in test-*; do
+    if test "${test:${#test}-2}" == ".d"; then continue; fi
+    echo - test ${test:5}
+    ./$test
+done