parallel/unittest/tests-to-run/test06.sh

17 lines
314 B
Bash
Raw Normal View History

2007-09-10 20:28:03 +00:00
#!/bin/bash
PAR=parallel
2007-09-10 20:28:03 +00:00
rm -rf tmp 2>/dev/null
cp -a input-files/testdir2 tmp
cd tmp
# tests if -c (cat | sh) works
perl -e 'for(1..25) {print "echo a $_; echo b $_\n"}' | $PAR -c 2>&1 | sort
2007-09-10 20:28:03 +00:00
# tests if -f (xargs) works
perl -e 'for(1..25) {print "a $_\nb $_\n"}' | $PAR -f echo 2>&1 | sort
2007-09-10 20:28:03 +00:00
cd ..
rm -rf tmp