From e96f0a975b85aed331ce61999c92a8c4925dc2a0 Mon Sep 17 00:00:00 2001 From: Eugene Wissner Date: Thu, 28 Jul 2016 18:25:05 +0700 Subject: development/opendbx: Added (Database Access Library). Signed-off-by: Willy Sudiarto Raharjo --- development/opendbx/odbxtest_exit_1_on_error.diff | 34 +++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 development/opendbx/odbxtest_exit_1_on_error.diff (limited to 'development/opendbx/odbxtest_exit_1_on_error.diff') diff --git a/development/opendbx/odbxtest_exit_1_on_error.diff b/development/opendbx/odbxtest_exit_1_on_error.diff new file mode 100644 index 0000000000..33881b4333 --- /dev/null +++ b/development/opendbx/odbxtest_exit_1_on_error.diff @@ -0,0 +1,34 @@ +This way if the test fails, the build will fail. +Need to send upstream. +Index: libopendbx-1.4.6/test/odbxtest.sh +=================================================================== +--- libopendbx-1.4.6.orig/test/odbxtest.sh 2012-05-06 08:10:59.000000000 -0400 ++++ libopendbx-1.4.6/test/odbxtest.sh 2012-11-19 12:21:05.468414873 -0500 +@@ -7,6 +7,7 @@ + if ! test -f odbxtest.site + then + echo "No odbxtest.site file found" ++ exit 1 + fi + + ODBXAPP="./odbxtest ./odbxplustest" +@@ -28,6 +29,7 @@ + echo "$1 ERRORS:" >> testresult.err + cat test.err >> testresult.err + diff -b test.out ref/$1.ref >> testresult.err ++ FAILURE="FAILED" + else + echo " $1 OK" + echo " $1 OK" >> testresult.log +@@ -154,5 +156,9 @@ + rm -f test.out + rm -f test.err + +- +-exit 0 ++if [ -n "$FAILURE" ] ++then ++ exit 1 ++else ++ exit 0 ++fi -- cgit v1.2.3-80-g2a13