summaryrefslogtreecommitdiffstats
path: root/test/script
diff options
context:
space:
mode:
Diffstat (limited to 'test/script')
-rw-r--r--test/script/functions.sh3
-rw-r--r--test/script/test_args.sh9
-rw-r--r--test/script/test_common.sh9
-rw-r--r--test/script/test_kill.sh2
-rw-r--r--test/script/test_tty_output.sh2
5 files changed, 22 insertions, 3 deletions
diff --git a/test/script/functions.sh b/test/script/functions.sh
index 361b364..523116d 100644
--- a/test/script/functions.sh
+++ b/test/script/functions.sh
@@ -3,7 +3,8 @@
function CHECK_RET
{
if [ $? -ne 0 ]; then
- echo "FAILED"
+ echo " FAILED"
+ exit -1
else
echo -n "."
fi
diff --git a/test/script/test_args.sh b/test/script/test_args.sh
new file mode 100644
index 0000000..f416dc1
--- /dev/null
+++ b/test/script/test_args.sh
@@ -0,0 +1,9 @@
+#!/bin/bash
+
+. $PWD/test/script/functions.sh
+
+function test_args
+{
+ LD_LIBRARY_PATH=$PWD ./latrace -qR -a $PWD/test/lib-test-args.conf ./test-args > /dev/null
+ CHECK_RET
+}
diff --git a/test/script/test_common.sh b/test/script/test_common.sh
new file mode 100644
index 0000000..f342842
--- /dev/null
+++ b/test/script/test_common.sh
@@ -0,0 +1,9 @@
+#!/bin/bash
+
+. $PWD/test/script/functions.sh
+
+function test_common
+{
+ LD_LIBRARY_PATH=$PWD ./latrace -qR ./test-common > /dev/null
+ CHECK_RET
+}
diff --git a/test/script/test_kill.sh b/test/script/test_kill.sh
index 90a62f7..995df49 100644
--- a/test/script/test_kill.sh
+++ b/test/script/test_kill.sh
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
. $PWD/test/script/functions.sh
diff --git a/test/script/test_tty_output.sh b/test/script/test_tty_output.sh
index 70d7b07..c79f943 100644
--- a/test/script/test_tty_output.sh
+++ b/test/script/test_tty_output.sh
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
. $PWD/test/script/functions.sh