A way to have one master script and using links to instances of tests. But requires...
authorDennis Schafroth <dennis@indexdata.com>
Wed, 18 Apr 2012 09:01:44 +0000 (11:01 +0200)
committerDennis Schafroth <dennis@indexdata.com>
Wed, 18 Apr 2012 09:01:44 +0000 (11:01 +0200)
test/test_http.sh

index 712d5c7..3413346 100755 (executable)
@@ -1,11 +1,13 @@
-#!/bin/sh
+#!/bin/bash
 #
 
+FILE=`basename $0`
+TEST=${FILE/.sh/}
 # srcdir might be set by make
 srcdir=${srcdir:-"."}
 
 # Test using test_http.cfg
-exec ${srcdir}/run_pazpar2.sh test_http
+exec ${srcdir}/run_pazpar2.sh $TEST
 
 # Local Variables:
 # mode:shell-script