From 3f8f3d58a7c12a3953d62982060b55a9764753f6 Mon Sep 17 00:00:00 2001
From: Pontus Freyhult <pont@soua.net>
Date: Tue, 19 Mar 2002 11:18:28 +0100
Subject: [PATCH] Replaced bash-specific substitution for usage with /bin/sh.

Rev: src/nettle/testsuite/run-tests:1.3
---
 testsuite/run-tests | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/testsuite/run-tests b/testsuite/run-tests
index 12573d7b..498e98a7 100755
--- a/testsuite/run-tests
+++ b/testsuite/run-tests
@@ -1,4 +1,4 @@
-#! /bin/bash
+#! /bin/sh
 
 failed=0
 all=0
@@ -14,16 +14,17 @@ env_program () {
 
 test_program () {
   "./$1"
+  testname=`echo "$1" | sed -e 's/-test//'`
   case "$?" in
       0)
-    	echo PASS: ${1%-test}
+    	echo PASS: $testname
 	all=`expr $all + 1`
 	;;
       77)
-      	echo SKIP: ${1%-test}
+      	echo SKIP: $testname
       ;;
       *)
-    	echo FAIL: ${1%-test}
+    	echo FAIL: $testname
 	failed=`expr $failed + 1`
 	all=`expr $all + 1`
 	;;
-- 
GitLab