Merge branch 'test-protocols' into tap-testsuite-work
[platform/upstream/automake.git] / tests / parallel-tests3.test
index 8153eeb..a140988 100755 (executable)
@@ -21,9 +21,8 @@ parallel_tests=yes
 required=GNUmake
 . ./defs || Exit 1
 
-# This test does not work well if $MAKE contains -j.
 case $MAKE in
-*\ -j*) Exit 77 ;;
+  *\ -j*) skip_ "\$MAKE contains \`-j'";;
 esac
 
 cat >> configure.in << 'END'
@@ -36,13 +35,12 @@ END
 
 for i in 1 2 3 4 5 6 7 8; do
   echo "TESTS += foo$i.test" >> Makefile.am
-  cat >foo$i.test <<'END'
-#! /bin/sh
-echo "this is $0"
-# hack around maintainer-check check:
-sleep='sleep '1
-$sleep
-exit 0
+  unindent >foo$i.test <<'END'
+    #! /bin/sh
+    echo "this is $0"
+    # FIXME: spurious quote to please maintainer-check
+    sleep '1'
+    exit 0
 END
   chmod a+x foo$i.test
 done
@@ -79,4 +77,5 @@ do
   $sleep
 done
 $sleep
+
 :