-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathcheck.sh
executable file
·46 lines (36 loc) · 987 Bytes
/
check.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#!/usr/bin/env bash
set -e
set -u
module load gcc_6.2.0
set -x
jobs=${1:-}
script_name_with_path=`which "${0}"`
script_path=`dirname "${script_name_with_path}"`
if test -d ${script_path}/egads
then
( cd ${script_path}/egads && \
make -j ${jobs} check ) || exit
( cd ${script_path}/egads && \
make -j ${jobs} install ) || exit
fi
if test -d ${script_path}/zoltan
then
( cd ${script_path}/zoltan && \
make -j ${jobs} check ) || exit
( cd ${script_path}/zoltan && \
make -j ${jobs} install ) || exit
fi
if test -d ${script_path}/parmetis
then
( cd ${script_path}/parmetis && \
make -j ${jobs} check ) || exit
( cd ${script_path}/parmetis && \
make -j ${jobs} install ) || exit
fi
if test -d ${script_path}/strict
then
( cd ${script_path}/strict && \
make -j ${jobs} check TESTS_ENVIRONMENT='valgrind --quiet --error-exitcode=1 --leak-check=full' ) || exit
( cd ${script_path}/strict && \
make -j ${jobs} install ) || exit
fi