CI: Add silent cmake SonarCloud scan
[ric-plt/lib/rmr.git] / test / run_all_test.ksh
index b56246d..b0b790f 100644 (file)
@@ -113,7 +113,13 @@ log_it "[INFO] validating .deb"
        set -e
        cd .build
        ls -al *.deb
-       dpkg -i *.deb
+       if whence dpkg >/dev/null 2>&1
+       then
+               dpkg -i *.deb
+       else
+               log_it "[INFO]   Deb installation check skipped. dpkg does not exist; trying make install"
+               make install
+       fi
 ) >/tmp/dpkg.log 2>&1
 rc=$?
 err_cat $rc /tmp/dpkg.log
@@ -125,6 +131,7 @@ PATH=$PATH:.
 export LD_LIBRARY_PATH=/usr/local/lib
 export C_INCLUDE_PATH=../.build/include                        # must reference nano/nng from the build tree
 
+log_it "[INFO] unit testing starts"
 (
        set -e
        cd test
@@ -135,6 +142,7 @@ export C_INCLUDE_PATH=../.build/include                     # must reference nano/nng from the bui
 rc=$?
 err_cat $rc /tmp/utest.log
 abort_on_err $rc "unit tests failed"
+log_it "[OK]   unit testing passes"
 
 echo ""
 log_it "[PASS]  all testing successful"