]> git.ipfire.org Git - thirdparty/snapper.git/commitdiff
- improved output
authorArvin Schnell <aschnell@suse.de>
Fri, 18 Feb 2011 10:54:41 +0000 (11:54 +0100)
committerArvin Schnell <aschnell@suse.de>
Fri, 18 Feb 2011 10:54:41 +0000 (11:54 +0100)
testsuite-real/run-all

index bdc4dfa8129f4034713e7592958bea5fba8ee51b..8b516aa6d5f1fbcca0da22f273e22bfd25be9978 100755 (executable)
@@ -1,11 +1,30 @@
 #!/bin/bash
 
 
-./simple1
+function run()
+{
+    cmd=$1
+    shift
+    args=$*
 
-./permissions1
-./permissions2
+    echo
+    echo "*** running $cmd $args ***"
+    echo
 
-./owner1
-./owner2
+    ./$cmd $args
+
+    if [ $? != 0 ] ; then
+        echo "failed"
+        exit 1
+    fi
+}
+
+
+run simple1
+
+run permissions1
+run permissions2
+
+run owner1
+run owner2