Skip to content

Commit 9f62efd

Browse files
committed
sanity-check.sh: add adaptivemm_test.sh to the testing
Signed-off-by: George Kennedy <[email protected]>
1 parent 535ecc5 commit 9f62efd

File tree

1 file changed

+17
-5
lines changed

1 file changed

+17
-5
lines changed

adaptived/sanity-check.sh

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,22 @@
2020
# or visit www.oracle.com if you need additional information or have any
2121
# questions.
2222

23+
pushd .. >/dev/null
24+
sudo make clean
25+
make
26+
sudo ./adaptivemm_test.sh
27+
RET=$?
28+
29+
if [[ $RET -ne 0 ]]; then
30+
echo "adaptivemm_test.sh failed."
31+
exit 1
32+
fi
33+
popd >/dev/null
34+
2335
# clean up from a previous run
24-
make clean
25-
find . -name "*.gcno" -exec sudo rm '{}' \;
26-
find . -name "*.gcda" -exec sudo rm '{}' \;
36+
sudo make clean
37+
find .. -name "*.gcno" -exec sudo rm '{}' \;
38+
find .. -name "*.gcda" -exec sudo rm '{}' \;
2739

2840
./autogen.sh
2941
RET=$?
@@ -41,7 +53,7 @@ if [[ $RET -ne 0 ]]; then
4153
exit $RET
4254
fi
4355

44-
make distcheck
56+
make -j$(nproc) distcheck
4557
RET=$?
4658

4759
if [[ $RET -ne 0 ]]; then
@@ -60,7 +72,7 @@ fi
6072
# I'm not fond of running all of the tests as root, but the sd-bus tests
6173
# need administrative privileges. Merging the non-sudo and sudo code
6274
# coverage files is difficult. Let's avoid that.
63-
sudo make check
75+
sudo make -j$(nproc) check
6476
RET=$?
6577

6678
if [[ $RET -ne 0 ]]; then

0 commit comments

Comments
 (0)