aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts/check.in
blob: e1fdccd0a36e0a44f7cb35f32e4de592f7806e0d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/bash
# check : shorthand for make and ctest -R

if [ $# == 0 -o $# -ge 2 ]
then
  echo "usage: ./check regexp"
  echo "  Makes and runs tests matching the regexp."
  echo "  The EIGEN_JOBS environment variable controls how many"
  echo "  concurrent jobs are launched."
  exit 0
fi

# TODO ctest 2.8 is out, honor the jobs parameter
./buildtests "$1" && ctest -R "$1"