summaryrefslogtreecommitdiffstats
path: root/development/opendbx/odbxtest_exit_1_on_error.diff
diff options
context:
space:
mode:
author Eugene Wissner <belka@caraus.de>2016-07-28 18:25:05 +0700
committer Willy Sudiarto Raharjo <willysr@slackbuilds.org>2016-07-30 06:04:36 +0700
commite96f0a975b85aed331ce61999c92a8c4925dc2a0 (patch)
treeecf015d1b99a214258c84ece68db3224972803dc /development/opendbx/odbxtest_exit_1_on_error.diff
parent023c4f558ac21295fe62b41495ec90f04c314a38 (diff)
downloadslackbuilds-e96f0a975b85aed331ce61999c92a8c4925dc2a0.tar.gz
slackbuilds-e96f0a975b85aed331ce61999c92a8c4925dc2a0.tar.xz
development/opendbx: Added (Database Access Library).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'development/opendbx/odbxtest_exit_1_on_error.diff')
-rw-r--r--development/opendbx/odbxtest_exit_1_on_error.diff34
1 files changed, 34 insertions, 0 deletions
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