testsuite: Getting rid of 'mop'.

This commit is contained in:
Ole Tange 2012-08-08 22:39:50 +02:00
parent ec76d20b25
commit 594ca7576a
2 changed files with 55 additions and 28 deletions

View file

@ -1,24 +1,44 @@
#!/bin/bash #!/bin/bash
echo '### This causes problems if we kill child processes' cat <<'EOF' | sed -e 's/;$/; /;s/$SERVER1/'$SERVER1'/;s/$SERVER2/'$SERVER2'/' | stdout parallel -k -L1
echo '### Test of xargs -m command lines > 130k';
seq 1 60000 | parallel -m -j1 echo a{}b{}c | tee >(wc) >(sort |md5sum) >/tmp/a$$;
wait;
CHAR=$(cat /tmp/a$$ | wc -c);
LINES=$(cat /tmp/a$$ | wc -l);
echo "Chars per line:" $(echo "$CHAR/$LINES" | bc);
rm /tmp/a$$
echo '### Test of xargs -X command lines > 130k';
seq 1 60000 | parallel -X -j1 echo a{}b{}c | tee >(wc) >(sort |md5sum) >/tmp/b$$;
wait;
CHAR=$(cat /tmp/b$$ | wc -c);
LINES=$(cat /tmp/b$$ | wc -l);
echo "Chars per line:" $(echo "$CHAR/$LINES" | bc);
rm /tmp/b$$
echo '### Test of xargs -m command lines > 130k';
seq 1 60000 | parallel -k -j1 -m echo | md5sum
echo '### This causes problems if we kill child processes';
seq 1 40 | parallel -j 0 seq 1 10 | sort |md5sum seq 1 40 | parallel -j 0 seq 1 10 | sort |md5sum
echo '### This causes problems if we kill child processes (II)';
seq 1 40 | parallel -j 0 seq 1 10 '| parallel -j 3 echo' | sort | md5sum seq 1 40 | parallel -j 0 seq 1 10 '| parallel -j 3 echo' | sort | md5sum
echo '### Test of xargs -m and -X' echo '### Test -m';
seq 1 60000 | parallel -j1 -m echo | mop -d 4 "|sort |md5sum" "| wc"
(echo foo;echo bar) | parallel -j1 -m echo 1{}2{}3 A{}B{}C (echo foo;echo bar) | parallel -j1 -m echo 1{}2{}3 A{}B{}C
(echo foo;echo bar) | parallel -j1 -X echo 1{}2{}3 A{}B{}C
seq 1 60000 | parallel -m -j1 echo a{}b{}c | mop -d 4 "|sort |md5sum" "| wc"
seq 1 60000 | parallel -m -j1 echo a{}b{}c | \
mop -q "|sort |md5sum" :par
echo -n "Chars per line: "
CHAR=$(cat ~/.mop/:par | wc -c)
LINES=$(cat ~/.mop/:par | wc -l)
echo "$CHAR/$LINES" | bc
echo '### Bug before 2009-08-26 causing regexp compile error or infinite loop' echo '### Test -X';
(echo foo;echo bar) | parallel -j1 -X echo 1{}2{}3 A{}B{}C
echo '### Bug before 2009-08-26 causing regexp compile error or infinite loop';
echo a | parallel -qX echo "'"{}"' " echo a | parallel -qX echo "'"{}"' "
echo '### Bug before 2009-08-26 causing regexp compile error or infinite loop (II)';
echo a | parallel -qX echo "'{}'" echo a | parallel -qX echo "'{}'"
echo '### nice and tcsh and Bug #33995: Jobs executed with sh instead of $SHELL' echo '### nice and tcsh and Bug #33995: Jobs executed with sh instead of $SHELL';
seq 1 2 | SHELL=tcsh stdout parallel -k --nice 8 setenv a b\;echo \$SHELL seq 1 2 | SHELL=tcsh stdout parallel -k --nice 8 setenv a b\;echo \$SHELL
EOF

View file

@ -1,17 +1,24 @@
### This causes problems if we kill child processes ### Test of xargs -m command lines > 130k
33bf8b2986551515cdaff5e860618098 -
d7fb96d6a56d4347bc24930a395c431a -
### Test of xargs -m and -X
b35d8e49be8d94899b719c40d3f1f4bb -
3 60000 348894
1foo bar2foo bar3 Afoo barBfoo barC
1foo2foo3 1bar2bar3 AfooBfooC AbarBbarC
31d9274be5fdc2de59487cb05ba57776 -
6 119994 697800 6 119994 697800
31d9274be5fdc2de59487cb05ba57776 - 31d9274be5fdc2de59487cb05ba57776 -
Chars per line: 116300 Chars per line: 116300
### Test of xargs -X command lines > 130k
7 60000 817788
22074f9acada52462defb18ba912d744 -
Chars per line: 116826
### Test of xargs -m command lines > 130k
b35d8e49be8d94899b719c40d3f1f4bb -
### This causes problems if we kill child processes
33bf8b2986551515cdaff5e860618098 -
### This causes problems if we kill child processes (II)
d7fb96d6a56d4347bc24930a395c431a -
### Test -m
1foo bar2foo bar3 Afoo barBfoo barC
### Test -X
1foo2foo3 1bar2bar3 AfooBfooC AbarBbarC
### Bug before 2009-08-26 causing regexp compile error or infinite loop ### Bug before 2009-08-26 causing regexp compile error or infinite loop
'a' 'a'
### Bug before 2009-08-26 causing regexp compile error or infinite loop (II)
'a' 'a'
### nice and tcsh and Bug #33995: Jobs executed with sh instead of $SHELL ### nice and tcsh and Bug #33995: Jobs executed with sh instead of $SHELL
tcsh 1 tcsh 1