Fixed DESTDIR make install/uninstall and break immediately on errors
This commit is contained in:
parent
496754f5c5
commit
96a7ec86f0
16 changed files with 115 additions and 39 deletions
10
test/lib.sh
10
test/lib.sh
|
|
@ -1,13 +1,17 @@
|
|||
#!/bin/bash
|
||||
|
||||
testnr=0
|
||||
testnname=
|
||||
testname=
|
||||
clixon_cf=/usr/local/etc/routing.xml
|
||||
# error and exit, arg is optional extra errmsg
|
||||
err(){
|
||||
echo "Error in Test$testnr [$testname]:"
|
||||
echo "Expected: $1"
|
||||
echo "Received: $2"
|
||||
if [ $# -gt 0 ]; then
|
||||
echo "Expected: $1"
|
||||
fi
|
||||
if [ $# -gt 1 ]; then
|
||||
echo "Received: $2"
|
||||
fi
|
||||
exit $testnr
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue