Ver Fonte

build(vhs): automatic tape detection

Signed-off-by: Christina Sørensen <christina@cafkafk.com>
Christina Sørensen há 2 anos atrás
pai
commit
3c10a90caf
1 ficheiros alterados com 6 adições e 3 exclusões
  1. 6 3
      tests/vhs-runner.sh

+ 6 - 3
tests/vhs-runner.sh

@@ -50,11 +50,14 @@ function gen_test -d "Generate VHS test" -a NAME
 end
 
 function main
+    # TODO: automatic reference deletion
+    for file in $TAPES/*
 
-    gen_test main
-
-    run_test main
+        set filename (basename $file .tape)
 
+        gen_test $filename
+        run_test $filename
+    end
 end
 
 main