parallel/unittest/tests-to-run/test06.sh
2007-09-10 22:28:03 +02:00

15 lines
308 B
Bash

#!/bin/bash
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"}' | parallel -c 2>&1 | sort
# tests if -f (xargs) works
perl -e 'for(1..25) {print "a $_\nb $_\n"}' | parallel -f echo 2>&1 | sort
cd ..
rm -rf tmp