aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/maketests.in
diff options
context:
space:
mode:
authorGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2009-11-12 12:39:22 -0500
committerGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2009-11-12 12:39:22 -0500
commit8132ee39089a47efa477599b81eaf571f4af3c45 (patch)
treedbb80a38ecef07299918b113ab177d1b0124fc30 /test/maketests.in
parent358452bbe6a3fcc8290969dbd531e30701a4c1f2 (diff)
* add non-default option to initialize matrices by 0
(useful for porting) * maketests really has to be in test/
Diffstat (limited to 'test/maketests.in')
-rwxr-xr-xtest/maketests.in21
1 files changed, 21 insertions, 0 deletions
diff --git a/test/maketests.in b/test/maketests.in
new file mode 100755
index 000000000..f9cafed26
--- /dev/null
+++ b/test/maketests.in
@@ -0,0 +1,21 @@
+#!/bin/bash
+
+if [ $# == 0 -o $# -ge 3 ]
+then
+ echo "usage: ./maketests regexp [jobs]"
+ echo " makes tests matching the regexp, with <jobs> concurrent make jobs"
+ exit 0
+fi
+
+TESTSLIST="${cmake_tests_list}"
+targets_to_make=`echo "$TESTSLIST" | grep "$1" | sed s/^/test_/g | xargs`
+
+if [ $# == 1 ]
+then
+ make $targets_to_make
+fi
+
+if [ $# == 2 ]
+then
+ make -j $2 $targets_to_make
+fi