parallel/unittest/tests-to-run/test31.sh
Ole Tange 32a3f8340b sql: Added unittest, --shebang, --version, --help.
parallel: bugfix in unittest.
Passes unittest
2010-09-01 15:26:45 +02:00

24 lines
342 B
Bash

#!/bin/bash
echo '### Test of #! with file as input'
cat >/tmp/shebang <<EOF
#!/usr/local/bin/parallel -Yrk echo
A
B
C
EOF
chmod 755 /tmp/shebang
/tmp/shebang
echo '### Test of #! with 2 files as input'
cat >/tmp/shebang <<EOF
#!/usr/local/bin/parallel -Yrk -a /tmp/123 echo
A
B
C
EOF
chmod 755 /tmp/shebang
seq 1 3 >/tmp/123
/tmp/shebang