From 9b7708f6603555fa1f960d8f8ae30a3d613b478a Mon Sep 17 00:00:00 2001 From: Benoit Jacob Date: Thu, 12 Nov 2009 15:02:52 -0500 Subject: introduce check target, and some renaming --- scripts/CMakeLists.txt | 2 +- scripts/check.in | 14 ++++++++++++++ scripts/mctestr.in | 14 -------------- 3 files changed, 15 insertions(+), 15 deletions(-) create mode 100755 scripts/check.in delete mode 100755 scripts/mctestr.in (limited to 'scripts') diff --git a/scripts/CMakeLists.txt b/scripts/CMakeLists.txt index 2d40e32ae..b75e99d5e 100644 --- a/scripts/CMakeLists.txt +++ b/scripts/CMakeLists.txt @@ -1,3 +1,3 @@ -configure_file(mctestr.in ${CMAKE_BINARY_DIR}/mctestr) +configure_file(check.in ${CMAKE_BINARY_DIR}/check) configure_file(debug.in ${CMAKE_BINARY_DIR}/debug) configure_file(release.in ${CMAKE_BINARY_DIR}/release) diff --git a/scripts/check.in b/scripts/check.in new file mode 100755 index 000000000..a388ef38f --- /dev/null +++ b/scripts/check.in @@ -0,0 +1,14 @@ +#!/bin/bash +# mctestr : shorthand for make and ctest -R + +if [ $# == 0 -o $# -ge 3 ] +then + echo "usage: ./mctestr regexp [jobs]" + echo " makes and runs tests matching the regexp, with concurrent make jobs" + exit 0 +fi + +./maketests $* + +# TODO when ctest 2.8 comes out, honor the jobs parameter +ctest -R $1 \ No newline at end of file diff --git a/scripts/mctestr.in b/scripts/mctestr.in deleted file mode 100755 index a388ef38f..000000000 --- a/scripts/mctestr.in +++ /dev/null @@ -1,14 +0,0 @@ -#!/bin/bash -# mctestr : shorthand for make and ctest -R - -if [ $# == 0 -o $# -ge 3 ] -then - echo "usage: ./mctestr regexp [jobs]" - echo " makes and runs tests matching the regexp, with concurrent make jobs" - exit 0 -fi - -./maketests $* - -# TODO when ctest 2.8 comes out, honor the jobs parameter -ctest -R $1 \ No newline at end of file -- cgit v1.2.3