Refactor delpub-commands, Allow multiple channels
[ric-plt/dbaas.git] / redismodule / run-tests.sh.in
1 #!/bin/sh
2
3 ./redismodule_ut
4 if [ $? != 0 ]
5 then
6    exit -1
7 fi
8 subsystem=redismodule
9 prbname=libredismodule
10 UT_DIR=${VOBTAG}/$subsystem
11 gcda_files=$(find $UT_DIR -name '*.gcda')
12 if [ -z "$gcda_files" ]
13 then
14    UT_DIR=${VOBTAG}/$subsystem/buildme.ut
15    gcda_files=$(find $UT_DIR -name '*.gcda')
16    if [ -z "$gcda_files" ]
17    then
18       echo "no gcda files, so cannot generate UT coverage"
19       exit 0
20    fi
21 fi
22 echo "gcda file is found"
23 lcov_src_patterns='*/redismodule/src/*'
24 lcov_objs_root=${VOBTAG}/$subsystem
25 lcov_remove_patterns='*/tst/*'
26 ${VOBTAG}/flexiserver/build/ut_lcov.sh ${lcov_objs_root} ${lcov_src_patterns} ${lcov_remove_patterns}
27