summaryrefslogtreecommitdiff
path: root/test/elfcopy/run.sh
diff options
context:
space:
mode:
Diffstat (limited to 'test/elfcopy/run.sh')
-rwxr-xr-xtest/elfcopy/run.sh29
1 files changed, 29 insertions, 0 deletions
diff --git a/test/elfcopy/run.sh b/test/elfcopy/run.sh
new file mode 100755
index 0000000000000..03bb6fedb41db
--- /dev/null
+++ b/test/elfcopy/run.sh
@@ -0,0 +1,29 @@
+#!/bin/sh
+#
+# $Id: run.sh 2091 2011-10-28 08:15:16Z jkoshy $
+#
+# Run all the tests.
+
+test_log=test.log
+
+# setup cleanup trap
+trap 'rm -rf /tmp/elfcopy-*; rm -rf /tmp/strip-*; exit' 0 2 3 15
+
+# load functions.
+. ./func.sh
+
+# global initialization.
+init
+
+exec >${test_log} 2>&1
+echo @TEST-RUN: `date`
+
+# run tests.
+for f in tc/*; do
+ if [ -d $f ]; then
+ . $f/`basename $f`.sh
+ fi
+done
+
+# show statistics.
+echo @RESULT: `statistic`