simtest: DFLAGS += -DTEST
simtest: all testcomp
- @$(foreach x, $(TESTLIST), $(MAKE) X=$x unit || exit;)
- rm -f tests/root
- ln -s root1 tests/root
- @echo Simulation tests: Success!
+# @$(foreach x, $(TESTLIST), $(MAKE) X=$x unit || exit;)
+# rm -f tests/root
+# ln -s root1 tests/root
+# @echo Simulation tests: Success!
extratest: DFLAGS += -DTEST
clean:
rm -f sadc sar sadf iostat tapestat mpstat pidstat cifsiostat *.o *.a core TAGS tests/*.tmp tests/extra/*.tmp
+ rm -f tests/LAST tests/SKIPPED
rm -f nfsiostat* man/nfsiostat*
rm -f tests/sa[0123]*
rm -f tests/root
elif [ "$1" = "comp" ]
then
# Compile sysstat in test mode
- make TFLAGS="-DTEST"
+ make simtest TFLAGS="-DTEST"
else
if [ "$1" != "sim" ]
then
# Configure then compile sysstat in test mode
make distclean
# ./configure sa_lib_dir=. sar_dir=. conf_dir=. conf_file=sysstat.sysconfig sa_dir=tests --enable-debuginfo && make TFLAGS="-DTEST" && make simtest
- ./configure sa_lib_dir=. sar_dir=. conf_dir=. conf_file=sysstat.sysconfig sa_dir=tests --enable-debuginfo && make TFLAGS="-DTEST" && make testcomp TFLAGS="-DTEST"
+ ./configure sa_lib_dir=. sar_dir=. conf_dir=. conf_file=sysstat.sysconfig sa_dir=tests --enable-debuginfo && make simtest TFLAGS="-DTEST"
fi
rm -f tests/results.tmp
COUNT=0