Explorar o código

(Commandfile) add --tests option

Stefan Siegl %!s(int64=8) %!d(string=hai) anos
pai
achega
2dba61f036
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  1. 4 1
      Commandfile

+ 4 - 1
Commandfile

@@ -31,8 +31,11 @@ command 'build',
 
 command 'test',
   description: 'executes "make test"',
+  parameters: {
+    tests: { wrap: "TESTS=tests/%s", optional: true },
+  },
   script: <<-eof
-    cd /data/build; `which gmake || which make` test NO_INTERACTION=1 REPORT_EXIT_STATUS=1
+    cd /data/build; `which gmake || which make` test %{tests} NO_INTERACTION=1 REPORT_EXIT_STATUS=1
     eof
 
 command 'shell',