# -----------------------------------------------------------------------------------------------------------------
# we assume that the project has been built in the ../[.]build directory
-if [[ -d ../build/lib ]]
+if [[ -d ../build ]]
then
- export LD_LIBRARY_PATH=../build/lib
+ export LD_LIBRARY_PATH=../build/lib:../build/lib64
else
- if [[ -d ../.build/lib ]]
+ if [[ -d ../.build ]]
then
- export LD_LIBRARY_PATH=../.build/lib
+ export LD_LIBRARY_PATH=../.build/lib:../.build/lib64
export C_INCLUDE_PATH=../.build/include
else
- echo "[WARN] cannot find ../[.]build/lib; things might not work"
+ echo "[WARN] cannot find build directory (tried ../build and ../.build); things might not work"
echo ""
fi
fi
+export LIBRARY_PATH=$LD_LIBRARY_PATH
+
export C_INCLUDE_PATH="../src/rmr/common/include:$C_INCLUDE_PATH"
module_cov_target=80
quiet=0
gen_xml=0
replace_flags=1 # replace ##### in gcov for discounted lines
+run_nano_tests=0
while [[ $1 == "-"* ]]
do
-C) builder="$2"; shift;; # custom build command
-G) builder="gmake %s";;
-M) builder="mk -a %s";; # use plan-9 mk (better, but sadly not widly used)
+ -N) run_nano_tests=1;;
-c) module_cov_target=$2; shift;;
-f) force_discounting=1;
do
if [[ $tfile != *"static_test.c" ]]
then
+ if(( ! run_nano_tests )) && [[ $tfile == *"nano"* ]]
+ then
+ continue
+ fi
+
flist="${flist}$tfile "
fi
done
add_ignored_func test_nng_em.c # the nng/nano emulated things
for f in *_static_test.c # all static modules here
do
+ if(( ! run_nano_tests )) && [[ $f == *"nano"* ]]
+ then
+ continue
+ fi
+
add_ignored_func $f
done