Code Review
/
ric-plt
/
lib
/
rmr.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Release RMR version 4.9.2
[ric-plt/lib/rmr.git]
/
test
/
run_all_test.ksh
diff --git
a/test/run_all_test.ksh
b/test/run_all_test.ksh
index
b56246d
..
b0b790f
100644
(file)
--- a/
test/run_all_test.ksh
+++ b/
test/run_all_test.ksh
@@
-113,7
+113,13
@@
log_it "[INFO] validating .deb"
set -e
cd .build
ls -al *.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
) >/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
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
(
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"
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"
echo ""
log_it "[PASS] all testing successful"