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/library | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 testsuite/library (limited to 'testsuite/library') diff --git a/testsuite/library b/testsuite/library new file mode 100644 index 0000000..1302625 --- /dev/null +++ b/testsuite/library @@ -0,0 +1,25 @@ +# function library for Comfignat's testcases +# Copyright 2013 B. Persson, Bjorn@Rombobeorn.se +# +# 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 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 +# modified is included with the above copyright notice. + + +common_setup () { + # When the locations file specifies a separate build directory, initialize + # the build directory and go there. When the source directory is also the + # build directory, just go to that directory. + cd "${srcdir}" + if [ "${relative_builddir}" != . ] ; then + make configure builddir="${relative_builddir}" + cd "${relative_builddir}" + fi +} + + -- cgit v1.2.3