forked from sysstat/sysstat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
do_test
executable file
·20 lines (20 loc) · 834 Bytes
/
do_test
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh
if [ "$1" = "conf" ]
then
make distclean
./configure sa_lib_dir=. sar_dir=. conf_dir=. conf_file=sysstat.sysconfig sa_dir=tests --enable-debuginfo
elif [ "$1" = "conflto" ]
then
make distclean
./configure sa_lib_dir=. sar_dir=. conf_dir=. conf_file=sysstat.sysconfig sa_dir=tests --enable-debuginfo --enable-lto
elif [ "$1" = "comp" ]
then
make TFLAGS="-DTEST"
else
make distclean
./configure sa_lib_dir=. sar_dir=. conf_dir=. conf_file=sysstat.sysconfig sa_dir=tests --enable-debuginfo && make TFLAGS="-DTEST" && make simtest
fi
if [ "$?" = "0" -a "$1" = "all" ]
then
make extratest && make distclean && ./configure --disable-nls --disable-sensors --disable-pcp sa_lib_dir=. sar_dir=. conf_dir=. conf_file=sysstat.sysconfig sa_dir=tests --enable-debuginfo && make TFLAGS="-DTEST" && echo "EXTRA TESTS: Success!"
fi