parallel: --files implemnted with small test

This commit is contained in:
Ole Tange 2011-01-19 17:07:21 +01:00
parent 0247e4beee
commit 4fd971f005
2 changed files with 14 additions and 6 deletions

View file

@ -10,12 +10,12 @@ rm /tmp/parallel.ss.*
seq 1 10 | stdout parallel -j 5 --spreadstdin 'cat >/tmp/parallel.ss.$PARALLEL_SEQ' >/dev/null
cat /tmp/parallel.ss.*
seq 1 1000| parallel -j1 --spreadstdin cat "|cat "|wc -c
seq 1 10000| parallel -j10 --spreadstdin cat "|cat "|wc -c
seq 1 100000| parallel -j1 --spreadstdin cat "|cat "|wc -c
seq 1 1000000| parallel -j10 --spreadstdin cat "|cat "|wc -c
seq 1 1000 | parallel -j1 --spreadstdin cat "|cat "|wc -c
seq 1 10000 | parallel -j10 --spreadstdin cat "|cat "|wc -c
seq 1 100000 | parallel -j1 --spreadstdin cat "|cat "|wc -c
seq 1 1000000 | parallel -j10 --spreadstdin cat "|cat "|wc -c
seq 1 10 | src/parallel --recend "\n" -j1 --spreadstdin gzip -9 >/tmp/foo.gz
seq 1 10 | parallel --recend "\n" -j1 --spreadstdin gzip -9 >/tmp/foo.gz
echo '### Test --spreadstdin - similar to the failing below'
seq 1 100000 | parallel --recend "\n" -j10 --spreadstdin gzip -9 >/tmp/foo.gz
@ -31,4 +31,4 @@ echo '### Test --spreadstdin -k'
seq 1 1000000 | parallel -k --recend "\n" -j10 --spreadstdin gzip -9 | zcat | md5sum
echo '### Test --spreadstdin --files'
seq 1 1000000 | shuf | parallel --files --recend "\n" -j10 --spreadstdin sort | parallel -X sort -m | md5sum
nice seq 1 1000000 | shuf | parallel --files --recend "\n" -j10 --spreadstdin sort -n | parallel -Xj1 sort -nm {} ";"rm {} | md5sum

View file

@ -19,3 +19,11 @@
48894
588895
6888896
### Test --spreadstdin - similar to the failing below
### Test --spreadstdin - this failed during devel
8a7095c1c23bfadc311fe6b16d950582 -
8a7095c1c23bfadc311fe6b16d950582 -
### Test --spreadstdin -k
8a7095c1c23bfadc311fe6b16d950582 -
### Test --spreadstdin --files
8a7095c1c23bfadc311fe6b16d950582 -