瀏覽代碼

(Commandfile) add --tests option

Stefan Siegl 8 年之前
父節點
當前提交
2dba61f036
共有 1 個文件被更改,包括 4 次插入1 次删除
  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',