Browse Source

(Commandfile) add --tests option

Stefan Siegl 8 years ago
parent
commit
2dba61f036
1 changed files with 4 additions and 1 deletions
  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',