From: Sebastien GODARD Date: Sat, 19 Dec 2020 08:04:42 +0000 (+0100) Subject: simtest: Update do_test script X-Git-Tag: v12.5.2~4 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c570e71a8dc41d84c36511e133c34a205a8ffe7a;p=sysstat simtest: Update do_test script Don't define DEBUG symbol (already defined by configure script) Don't use CFLAGS variable to avoid overwriting its contents defined in Makefile. Signed-off-by: Sebastien GODARD --- diff --git a/do_test b/do_test index 6bce978..adcf1f4 100755 --- a/do_test +++ b/do_test @@ -5,8 +5,8 @@ then ./configure sa_lib_dir=. sar_dir=. conf_dir=. conf_file=sysstat.sysconfig sa_dir=tests --enable-debuginfo elif [ "$1" = "comp" ] then - make CFLAGS="-D DEBUG -D TEST" + make TFLAGS="-DTEST" else make distclean - ./configure sa_lib_dir=. sar_dir=. conf_dir=. conf_file=sysstat.sysconfig sa_dir=tests --enable-debuginfo && make CFLAGS="-D DEBUG -D TEST" && make simtest CFLAGS="-D DEBUG -D TEST" + ./configure sa_lib_dir=. sar_dir=. conf_dir=. conf_file=sysstat.sysconfig sa_dir=tests --enable-debuginfo && make TFLAGS="-DTEST" && make simtest TFLAGS="-DTEST" fi