From 87f50a0d0933b3a61e5f48b7683f92cb4478dfd2 Mon Sep 17 00:00:00 2001 From: Olivier Thauvin Date: Thu, 22 Feb 2007 13:01:24 +0000 Subject: - add regression tests --- tests.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 tests.sh (limited to 'tests.sh') diff --git a/tests.sh b/tests.sh new file mode 100755 index 0000000..99c333b --- /dev/null +++ b/tests.sh @@ -0,0 +1,18 @@ +#!/bin/sh + +# $Id$ + +allerrs=0 + +for i in tests/*.sh; do + /bin/sh ${i} + err=$? + if [ $err -ne 0 ]; then + echo "${i}: $err test(s) failed" + allerrs=$[ $allerrs + $err ] + else + echo "${i}: All test succefully passed" + fi +done + +exit $allerrs -- cgit v1.2.1