From 098259b44d7895e3bb9537edbbd633fd3e0205d5 Mon Sep 17 00:00:00 2001 From: Björn Persson Date: Tue, 17 Dec 2013 14:29:11 +0100 Subject: function library for the testcases --- testsuite/run_tests | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'testsuite/run_tests') 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)) -- cgit v1.2.3