Rombobjörn

summaryrefslogtreecommitdiff
path: root/testsuite/run_tests
diff options
context:
space:
mode:
authorBjörn Persson <Bjorn@Rombobjörn.se>2013-12-17 14:29:11 +0100
committerBjörn Persson <Bjorn@Rombobjörn.se>2013-12-17 14:29:11 +0100
commit098259b44d7895e3bb9537edbbd633fd3e0205d5 (patch)
treef835b9cef7b4c4cc83a177855a1622b74d9821b4 /testsuite/run_tests
parent940fef353e6551f721651db79cb135219191ad9e (diff)
function library for the testcases
Diffstat (limited to 'testsuite/run_tests')
-rwxr-xr-xtestsuite/run_tests9
1 files changed, 7 insertions, 2 deletions
diff --git a/testsuite/run_tests b/testsuite/run_tests
index dfdfe75..c559814 100755
--- a/testsuite/run_tests
+++ b/testsuite/run_tests
@@ -6,7 +6,7 @@
# This material is provided as is, with absolutely no warranty expressed
# or implied. Any use is at your own risk.
#
-# Permission is hereby granted to use or copy this program
+# Permission is hereby granted to use or copy this testsuite
# for any purpose, provided the above notices are retained on all copies.
# Permission to modify the code and to distribute modified code is granted,
# provided the above notices are retained, and a notice that the code was
@@ -27,6 +27,12 @@ Comfignat_overriding_absolute_builddir=
Comfignat_overriding_absolute_objdir=
Comfignat_overriding_absolute_stagedir=
+# variables that the testcases need:
+export library srcdir builddir relative_builddir
+
+# function library for the testcases:
+library="${outer_srcdir}"/testsuite/library
+
rm -Rf "${outer_builddir}"/testruns
for source_directory in "${outer_srcdir}"/testsuite/sources/* ; do
@@ -40,7 +46,6 @@ for source_directory in "${outer_srcdir}"/testsuite/sources/* ; do
mkdir -p "${srcdir}" "${builddir}"
cp -RHp "${source_directory}"/* "${srcdir}"
cp -p "${outer_srcdir}"/comfignat.* "${srcdir}"
- export srcdir builddir relative_builddir
if sh -e "${input_script}" >output 2>&1 ; then
verdict=PASSED
passed=$((passed + 1))