Explorar o código

build(vhs): automatic tape detection

Signed-off-by: Christina Sørensen <christina@cafkafk.com>
Christina Sørensen %!s(int64=2) %!d(string=hai) anos
pai
achega
3c10a90caf
Modificáronse 1 ficheiros con 6 adicións e 3 borrados
  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