2015-05-15 15:25:19 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2021-12-26 22:29:28 +00:00
|
|
|
# SPDX-FileCopyrightText: 2021-2022 Ole Tange, http://ole.tange.dk and Free Software and Foundation, Inc.
|
2021-03-22 20:16:35 +00:00
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
|
2015-05-15 15:25:19 +00:00
|
|
|
# Simple jobs that never fails
|
|
|
|
# Each should be taking 1-3s and be possible to run in parallel
|
|
|
|
# I.e.: No race conditions, no logins
|
2016-05-17 00:11:38 +00:00
|
|
|
|
2022-03-09 22:03:26 +00:00
|
|
|
par_commandline_with_newline() {
|
|
|
|
echo 'bug #51299: --retry-failed with command with newline'
|
|
|
|
echo 'The format must remain the same'
|
|
|
|
(
|
|
|
|
parallel --jl - 'false "command
|
|
|
|
with
|
|
|
|
newlines"' ::: a b | sort
|
|
|
|
|
|
|
|
echo resume
|
|
|
|
parallel --resume --jl - 'false "command
|
|
|
|
with
|
|
|
|
newlines"' ::: a b c | sort
|
|
|
|
|
|
|
|
echo resume-failed
|
|
|
|
parallel --resume-failed --jl - 'false "command
|
|
|
|
with
|
|
|
|
newlines"' ::: a b c d | sort
|
|
|
|
|
|
|
|
echo retry-failed
|
|
|
|
parallel --retry-failed --jl - 'false "command
|
|
|
|
with
|
|
|
|
newlines"' ::: a b c d e | sort
|
|
|
|
) | perl -pe 's/\0/<null>/g;s/\d+/./g'
|
|
|
|
}
|
|
|
|
|
|
|
|
par_compute_command_len() {
|
|
|
|
echo "### Computing length of command line"
|
|
|
|
seq 1 2 | parallel -k -N2 echo {1} {2}
|
|
|
|
parallel --xapply -k -a <(seq 11 12) -a <(seq 1 3) echo
|
|
|
|
parallel -k -C %+ echo '"{1}_{3}_{2}_{4}"' ::: 'a% c %%b' 'a%c% b %d'
|
|
|
|
parallel -k -C %+ echo {4} ::: 'a% c %%b'
|
|
|
|
}
|
|
|
|
|
2021-10-09 20:29:36 +00:00
|
|
|
par_skip_first_line() {
|
2022-04-23 09:38:57 +00:00
|
|
|
tmp=$(mktemp)
|
2021-10-09 20:29:36 +00:00
|
|
|
(echo `seq 10000`;echo MyHeader; seq 10) |
|
|
|
|
parallel -k --skip-first-line --pipe --block 10 --header '1' cat
|
2022-04-23 09:38:57 +00:00
|
|
|
(echo `seq 10000`;echo MyHeader; seq 10) > "$tmp"
|
|
|
|
parallel -k --skip-first-line --pipepart -a "$tmp" --block 10 --header '1' cat
|
2021-10-09 20:29:36 +00:00
|
|
|
}
|
|
|
|
|
2021-10-05 20:49:43 +00:00
|
|
|
par_long_input() {
|
|
|
|
echo '### Long input lines should not fail if they are not used'
|
|
|
|
longline_tsv() {
|
|
|
|
perl -e '$a = "X"x3000000;
|
|
|
|
map { print join "\t", $_, $a, "$_/$a.$a", "$a/$_.$a", "$a/$a.$_\n" }
|
|
|
|
(a..c)'
|
|
|
|
}
|
|
|
|
longline_tsv |
|
|
|
|
parallel --colsep '\t' echo {1} {3//} {4/.} '{=5 s/.*\.// =}'
|
|
|
|
longline_tsv |
|
|
|
|
parallel --colsep '\t' echo {-5} {-3//} {-2/.} '{=-1 s/.*\.// =}'
|
|
|
|
}
|
|
|
|
|
2021-01-08 14:36:05 +00:00
|
|
|
par_recend_recstart_hash() {
|
|
|
|
echo "### bug #59843: --regexp --recstart '#' fails"
|
|
|
|
(echo '#rec1'; echo 'bar'; echo '#rec2') |
|
2021-02-17 14:49:47 +00:00
|
|
|
parallel -k --regexp --pipe -N1 --recstart '#' wc
|
2021-01-08 14:36:05 +00:00
|
|
|
(echo ' rec1'; echo 'bar'; echo ' rec2') |
|
2021-02-17 14:49:47 +00:00
|
|
|
parallel -k --regexp --pipe -N1 --recstart ' ' wc
|
2021-01-08 14:36:05 +00:00
|
|
|
(echo 'rec2'; echo 'bar#';echo 'rec2' ) |
|
2021-02-17 14:49:47 +00:00
|
|
|
parallel -k --regexp --pipe -N1 --recend '#' wc
|
2021-01-08 14:36:05 +00:00
|
|
|
(echo 'rec2'; echo 'bar ';echo 'rec2' ) |
|
2021-02-17 14:49:47 +00:00
|
|
|
parallel -k --regexp --pipe -N1 --recend ' ' wc
|
2021-01-08 14:36:05 +00:00
|
|
|
}
|
|
|
|
|
2020-12-30 12:42:02 +00:00
|
|
|
par_sqlandworker_uninstalled_dbd() {
|
2022-03-09 22:03:26 +00:00
|
|
|
echo '### bug #56096: dbi-csv no such column'
|
2020-12-30 12:42:02 +00:00
|
|
|
mkdir -p /tmp/parallel-bug-56096
|
|
|
|
sudo mv /usr/share/perl5/DBD/CSV.pm /usr/share/perl5/DBD/CSV.pm.gone
|
|
|
|
parallel --sqlandworker csv:///%2Ftmp%2Fparallel-bug-56096/mytable echo ::: must_fail
|
|
|
|
sudo cp /usr/share/perl5/DBD/CSV.pm.gone /usr/share/perl5/DBD/CSV.pm
|
|
|
|
parallel --sqlandworker csv:///%2Ftmp%2Fparallel-bug-56096/mytable echo ::: works
|
|
|
|
}
|
|
|
|
|
2022-03-09 22:03:26 +00:00
|
|
|
par_uninstalled_sshpass() {
|
|
|
|
echo '### sshpass must be installed for --sshlogin user:pass@host'
|
|
|
|
sshpass=$(command -v sshpass)
|
|
|
|
sudo mv "$sshpass" "$sshpass".hidden
|
|
|
|
parallel -S user:pass@host echo ::: must fail
|
|
|
|
sudo mv "$sshpass".hidden "$sshpass"
|
|
|
|
}
|
|
|
|
|
2020-12-30 12:42:02 +00:00
|
|
|
par_results_compress() {
|
2021-07-11 18:12:52 +00:00
|
|
|
tmpdir=$(mktemp)
|
|
|
|
rm -r "$tmpdir"
|
|
|
|
parallel --results $tmpdir --compress echo ::: 1
|
|
|
|
cat "$tmpdir"/*/*/stdout | pzstd -qdc
|
|
|
|
|
|
|
|
rm -r "$tmpdir"
|
|
|
|
parallel --results $tmpdir echo ::: 1
|
|
|
|
cat "$tmpdir"/*/*/stdout
|
|
|
|
|
|
|
|
rm -r "$tmpdir"
|
|
|
|
parallel --results $tmpdir --compress echo ::: ' ' /
|
|
|
|
cat "$tmpdir"/*/*/stdout | pzstd -qdc
|
|
|
|
|
|
|
|
rm -r "$tmpdir"
|
|
|
|
parallel --results $tmpdir echo ::: ' ' /
|
|
|
|
cat "$tmpdir"/*/*/stdout
|
|
|
|
|
|
|
|
rm -r "$tmpdir"
|
2020-12-30 12:42:02 +00:00
|
|
|
}
|
|
|
|
|
2020-11-22 15:22:54 +00:00
|
|
|
par_I_X_m() {
|
|
|
|
echo '### Test -I with -X and -m'
|
|
|
|
|
|
|
|
seq 10 | parallel -k 'seq 1 {.} | parallel -k -I :: echo {.} ::'
|
|
|
|
seq 10 | parallel -k 'seq 1 {.} | parallel -j1 -X -k -I :: echo a{.} b::'
|
|
|
|
seq 10 | parallel -k 'seq 1 {.} | parallel -j1 -m -k -I :: echo a{.} b::'
|
|
|
|
}
|
|
|
|
|
2020-10-22 19:47:01 +00:00
|
|
|
par_open_files_blocks() {
|
|
|
|
echo 'bug #38439: "open files" with --files --pipe blocks after a while'
|
|
|
|
ulimit -n 28
|
|
|
|
yes "`seq 3000`" |
|
|
|
|
head -c 20M |
|
|
|
|
stdout parallel -j10 --pipe -k echo {#} of 21 |
|
2021-04-22 16:20:41 +00:00
|
|
|
grep -v 'No more file handles.' |
|
|
|
|
grep -v 'Only enough file handles to run .* jobs in parallel.' |
|
|
|
|
grep -v 'Raising ulimit -n or /etc/security/limits.conf' |
|
|
|
|
grep -v 'Try running .parallel -j0 -N .* --pipe parallel -j0.' |
|
|
|
|
grep -v 'or increasing .ulimit -n. .try: ulimit -n .ulimit -Hn..' |
|
|
|
|
grep -v 'or increasing .nofile. in /etc/security/limits.conf' |
|
|
|
|
grep -v 'or increasing /proc/sys/fs/file-max'
|
2020-10-22 19:47:01 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
par_pipe_unneeded_procs() {
|
|
|
|
echo 'bug #34241: --pipe should not spawn unneeded processes - part 2'
|
|
|
|
seq 500 | parallel --tmpdir . -j10 --pipe --block 1k --files wc >/dev/null
|
|
|
|
ls *.par | wc -l; rm *.par
|
|
|
|
seq 500 | parallel --tmpdir . -j10 --pipe --block 1k --files --dry-run wc >/dev/null
|
|
|
|
echo No .par should exist
|
|
|
|
stdout ls *.par
|
|
|
|
}
|
|
|
|
|
2020-01-12 08:14:21 +00:00
|
|
|
par_interactive() {
|
|
|
|
echo '### Test -p --interactive'
|
|
|
|
cat >/tmp/parallel-script-for-expect <<_EOF
|
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
seq 1 3 | parallel -k -p "sleep 0.1; echo opt-p"
|
|
|
|
seq 1 3 | parallel -k --interactive "sleep 0.1; echo opt--interactive"
|
|
|
|
_EOF
|
|
|
|
chmod 755 /tmp/parallel-script-for-expect
|
|
|
|
|
|
|
|
(
|
|
|
|
expect -b - <<_EOF
|
|
|
|
spawn /tmp/parallel-script-for-expect
|
|
|
|
expect "echo opt-p 1"
|
|
|
|
send "y\n"
|
|
|
|
expect "echo opt-p 2"
|
|
|
|
send "n\n"
|
|
|
|
expect "echo opt-p 3"
|
|
|
|
send "y\n"
|
|
|
|
expect "opt-p 1"
|
|
|
|
expect "opt-p 3"
|
|
|
|
expect "echo opt--interactive 1"
|
|
|
|
send "y\n"
|
|
|
|
expect "echo opt--interactive 2"
|
|
|
|
send "n\n"
|
|
|
|
#expect "opt--interactive 1"
|
|
|
|
expect "echo opt--interactive 3"
|
|
|
|
send "y\n"
|
|
|
|
expect "opt--interactive 3"
|
|
|
|
send "\n"
|
|
|
|
_EOF
|
|
|
|
echo
|
|
|
|
) | perl -ne 's/\r//g;/\S/ and print' |
|
|
|
|
# Race will cause the order to change
|
|
|
|
LC_ALL=C sort
|
|
|
|
}
|
|
|
|
|
2020-01-09 13:37:41 +00:00
|
|
|
par_bug43654() {
|
|
|
|
echo "bug #43654: --bar with command not using {} - only last output line "
|
|
|
|
COLUMNS=80 stdout parallel --bar true {.} ::: 1 | perl -pe 's/.*\r/\r/'
|
|
|
|
}
|
|
|
|
|
|
|
|
par_replacement_rename() {
|
|
|
|
echo "### Test --basenamereplace"
|
|
|
|
parallel -j1 -k -X --basenamereplace FOO echo FOO ::: /a/b.c a/b.c b.c /a/b a/b b
|
|
|
|
parallel -k --basenamereplace FOO echo FOO ::: /a/b.c a/b.c b.c /a/b a/b b
|
|
|
|
|
|
|
|
echo "### Test --bnr"
|
|
|
|
parallel -j1 -k -X --bnr FOO echo FOO ::: /a/b.c a/b.c b.c /a/b a/b b
|
|
|
|
parallel -k --bnr FOO echo FOO ::: /a/b.c a/b.c b.c /a/b a/b b
|
|
|
|
|
|
|
|
echo "### Test --extensionreplace"
|
|
|
|
parallel -j1 -k -X --extensionreplace FOO echo FOO ::: /a/b.c a/b.c b.c /a/b a/b b
|
|
|
|
parallel -k --extensionreplace FOO echo FOO ::: /a/b.c a/b.c b.c /a/b a/b b
|
|
|
|
|
|
|
|
echo "### Test --er"
|
|
|
|
parallel -j1 -k -X --er FOO echo FOO ::: /a/b.c a/b.c b.c /a/b a/b b
|
|
|
|
parallel -k --er FOO echo FOO ::: /a/b.c a/b.c b.c /a/b a/b b
|
|
|
|
|
|
|
|
echo "### Test --basenameextensionreplace"
|
|
|
|
parallel -j1 -k -X --basenameextensionreplace FOO echo FOO ::: /a/b.c a/b.c b.c /a/b a/b b
|
|
|
|
parallel -k --basenameextensionreplace FOO echo FOO ::: /a/b.c a/b.c b.c /a/b a/b b
|
|
|
|
|
|
|
|
echo "### Test --bner"
|
|
|
|
parallel -j1 -k -X --bner FOO echo FOO ::: /a/b.c a/b.c b.c /a/b a/b b
|
|
|
|
parallel -k --bner FOO echo FOO ::: /a/b.c a/b.c b.c /a/b a/b b
|
|
|
|
}
|
|
|
|
|
|
|
|
par_replacement_strings() {
|
|
|
|
echo "### Test {/}"
|
|
|
|
parallel -j1 -k -X echo {/} ::: /a/b.c a/b.c b.c /a/b a/b b
|
|
|
|
|
|
|
|
echo "### Test {/.}"
|
|
|
|
parallel -j1 -k -X echo {/.} ::: /a/b.c a/b.c b.c /a/b a/b b
|
|
|
|
|
|
|
|
echo "### Test {#/.}"
|
|
|
|
parallel -j1 -k -X echo {2/.} ::: /a/number1.c a/number2.c number3.c /a/number4 a/number5 number6
|
|
|
|
|
|
|
|
echo "### Test {#/}"
|
|
|
|
parallel -j1 -k -X echo {2/} ::: /a/number1.c a/number2.c number3.c /a/number4 a/number5 number6
|
|
|
|
|
|
|
|
echo "### Test {#.}"
|
|
|
|
parallel -j1 -k -X echo {2.} ::: /a/number1.c a/number2.c number3.c /a/number4 a/number5 number6
|
|
|
|
}
|
|
|
|
|
|
|
|
par_bug34241() {
|
|
|
|
echo "### bug #34241: --pipe should not spawn unneeded processes"
|
|
|
|
echo | parallel -r -j2 -N1 --pipe md5sum -c && echo OK
|
|
|
|
}
|
|
|
|
|
|
|
|
par_test_gt_quoting() {
|
|
|
|
echo '### Test of quoting of > bug'
|
|
|
|
echo '>/dev/null' | parallel echo
|
|
|
|
|
|
|
|
echo '### Test of quoting of > bug if line continuation'
|
|
|
|
(echo '> '; echo '> '; echo '>') | parallel --max-lines 3 echo
|
|
|
|
}
|
|
|
|
|
|
|
|
par_eof_on_command_line_input_source() {
|
|
|
|
echo '### Test of eof string on :::'
|
|
|
|
parallel -k -E ole echo ::: foo ole bar
|
|
|
|
}
|
|
|
|
|
|
|
|
par_empty_string_command_line() {
|
|
|
|
echo '### Test of ignore-empty string on :::'
|
|
|
|
parallel -k -r echo ::: foo '' ole bar
|
|
|
|
}
|
|
|
|
|
|
|
|
par_trailing_space_line_continuation() {
|
|
|
|
echo '### Test of trailing space continuation'
|
|
|
|
(echo foo; echo '';echo 'ole ';echo bar;echo quux) | xargs -r -L2 echo
|
|
|
|
(echo foo; echo '';echo 'ole ';echo bar;echo quux) | parallel -kr -L2 echo
|
|
|
|
parallel -kr -L2 echo ::: foo '' 'ole ' bar quux
|
|
|
|
|
|
|
|
echo '### Test of trailing space continuation with -E eof'
|
|
|
|
(echo foo; echo '';echo 'ole ';echo bar;echo quux) | xargs -r -L2 -E bar echo
|
|
|
|
(echo foo; echo '';echo 'ole ';echo bar;echo quux) | parallel -kr -L2 -E bar echo
|
|
|
|
parallel -kr -L2 -E bar echo ::: foo '' 'ole ' bar quux
|
|
|
|
}
|
|
|
|
|
|
|
|
par_mix_triple_colon_with_quad_colon() {
|
|
|
|
echo '### Test :::: mixed with :::'
|
|
|
|
echo '### Test :::: < ::: :::'
|
|
|
|
parallel -k echo {1} {2} {3} :::: <(seq 6 7) ::: 4 5 ::: 1 2 3
|
|
|
|
|
|
|
|
echo '### Test :::: < < :::: <'
|
|
|
|
parallel -k echo {1} {2} {3} :::: <(seq 6 7) <(seq 4 5) :::: <(seq 1 3)
|
|
|
|
|
|
|
|
echo '### Test -a :::: < :::: <'
|
|
|
|
parallel -k -a <(seq 6 7) echo {1} {2} {3} :::: <(seq 4 5) :::: <(seq 1 3)
|
|
|
|
|
|
|
|
echo '### Test -a -a :::'
|
|
|
|
parallel -k -a <(seq 6 7) -a <(seq 4 5) echo {1} {2} {3} ::: 1 2 3
|
|
|
|
|
|
|
|
echo '### Test -a - -a :::'
|
|
|
|
seq 6 7 | parallel -k -a - -a <(seq 4 5) echo {1} {2} {3} ::: 1 2 3
|
|
|
|
|
|
|
|
echo '### Test :::: < - :::'
|
|
|
|
seq 4 5 | parallel -k echo {1} {2} {3} :::: <(seq 6 7) - ::: 1 2 3
|
|
|
|
}
|
|
|
|
|
|
|
|
par_test_E() {
|
|
|
|
echo '### Test -E'
|
|
|
|
seq 1 100 | parallel -k -E 5 echo :::: - ::: 2 3 4 5 6 7 8 9 10 :::: <(seq 3 11)
|
|
|
|
|
|
|
|
echo '### Test -E one empty'
|
|
|
|
seq 1 100 | parallel -k -E 3 echo :::: - ::: 2 3 4 5 6 7 8 9 10 :::: <(seq 3 11)
|
|
|
|
|
|
|
|
echo '### Test -E 2 empty'
|
|
|
|
seq 1 100 | parallel -k -E 3 echo :::: - ::: 3 4 5 6 7 8 9 10 :::: <(seq 3 11)
|
|
|
|
|
|
|
|
echo '### Test -E all empty'
|
|
|
|
seq 3 100 | parallel -k -E 3 echo :::: - ::: 3 4 5 6 7 8 9 10 :::: <(seq 3 11)
|
|
|
|
}
|
|
|
|
|
|
|
|
par_test_job_number() {
|
|
|
|
echo '### Test {#}'
|
|
|
|
seq 1 10 | parallel -k echo {#}
|
|
|
|
}
|
|
|
|
|
|
|
|
par_seqreplace_long_line() {
|
|
|
|
echo '### Test --seqreplace and line too long'
|
2021-02-17 14:49:47 +00:00
|
|
|
seq 1 1000 |
|
|
|
|
stdout parallel -j1 -s 210 -k --seqreplace I echo IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII \|wc |
|
|
|
|
uniq -c
|
2020-01-09 13:37:41 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
par_bug37042() {
|
|
|
|
echo '### bug #37042: -J foo is taken from the whole command line - not just the part before the command'
|
|
|
|
echo '--tagstring foo' > ~/.parallel/bug_37042_profile;
|
|
|
|
parallel -J bug_37042_profile echo ::: tag_with_foo;
|
|
|
|
parallel --tagstring a -J bug_37042_profile echo ::: tag_with_a;
|
|
|
|
parallel --tagstring a echo -J bug_37042_profile ::: print_-J_bug_37042_profile
|
|
|
|
|
|
|
|
echo '### Bug introduce by fixing bug #37042'
|
|
|
|
parallel --xapply -a <(printf 'abc') --colsep '\t' echo {1}
|
|
|
|
}
|
|
|
|
|
|
|
|
par_header() {
|
|
|
|
echo "### Test --header with -N"
|
2021-02-17 14:49:47 +00:00
|
|
|
(echo h1; echo h2; echo 1a;echo 1b; echo 2a;echo 2b; echo 3a) |
|
|
|
|
parallel -j1 --pipe -N2 -k --header '.*\n.*\n' echo Start\;cat \; echo Stop
|
2020-01-09 13:37:41 +00:00
|
|
|
|
|
|
|
echo "### Test --header with --block 1k"
|
|
|
|
(echo h1; echo h2; perl -e '$a="x"x110;for(1..22){print $_,$a,"\n"}') |
|
2021-02-17 14:49:47 +00:00
|
|
|
parallel -j1 --pipe -k --block 1k --header '.*\n.*\n' echo Start\;cat \; echo Stop
|
2020-01-09 13:37:41 +00:00
|
|
|
|
|
|
|
echo "### Test --header with multiple :::"
|
|
|
|
parallel --header : echo {a} {b} {1} {2} ::: b b1 ::: a a2
|
|
|
|
}
|
2019-09-22 05:30:08 +00:00
|
|
|
|
|
|
|
par_profiles_with_space() {
|
|
|
|
echo '### bug #42902: profiles containing arguments with space'
|
|
|
|
echo "--rpl 'FULLPATH chomp(\$_=\"/bin/bash=\".\`readlink -f \$_\`);' " > ~/.parallel/FULLPATH;
|
|
|
|
parallel -JFULLPATH echo FULLPATH ::: $0
|
|
|
|
PARALLEL="--rpl 'FULLPATH chomp(\$_=\"/bin/bash=\".\`readlink -f \$_\`);' -v" parallel echo FULLPATH ::: $0
|
|
|
|
PARALLEL="--rpl 'FULLPATH chomp(\$_=\"/bin/bash=\".\`readlink -f \$_\`);' perl -e \'print \\\"@ARGV\\\n\\\"\' " parallel With script in \\\$PARALLEL FULLPATH ::: . |
|
|
|
|
perl -pe 's:parallel./:parallel/:'
|
|
|
|
}
|
|
|
|
|
2018-01-03 08:03:16 +00:00
|
|
|
par_pxz_complains() {
|
|
|
|
echo 'bug #44250: pxz complains File format not recognized but decompresses anyway'
|
2016-05-17 00:11:38 +00:00
|
|
|
|
2018-01-03 08:03:16 +00:00
|
|
|
# The first line dumps core if run from make file. Why?!
|
|
|
|
stdout parallel --compress --compress-program pxz ls /{} ::: OK-if-missing-file
|
|
|
|
stdout parallel --compress --compress-program pixz --decompress-program 'pixz -d' ls /{} ::: OK-if-missing-file
|
|
|
|
stdout parallel --compress --compress-program pixz --decompress-program 'pixz -d' true ::: OK-if-no-output
|
|
|
|
stdout parallel --compress --compress-program pxz true ::: OK-if-no-output
|
|
|
|
}
|
2016-05-17 00:11:38 +00:00
|
|
|
|
2018-01-03 08:03:16 +00:00
|
|
|
par_test_XI_mI() {
|
|
|
|
echo "### Test -I"
|
|
|
|
seq 1 10 | parallel -k 'seq 1 {} | parallel -k -I :: echo {} ::'
|
2016-05-17 00:11:38 +00:00
|
|
|
|
2018-01-03 08:03:16 +00:00
|
|
|
echo "### Test -X -I"
|
|
|
|
seq 1 10 | parallel -k 'seq 1 {} | parallel -j1 -X -k -I :: echo a{} b::'
|
2016-05-17 00:11:38 +00:00
|
|
|
|
2018-01-03 08:03:16 +00:00
|
|
|
echo "### Test -m -I"
|
|
|
|
seq 1 10 | parallel -k 'seq 1 {} | parallel -j1 -m -k -I :: echo a{} b::'
|
|
|
|
}
|
2017-01-27 22:15:25 +00:00
|
|
|
|
|
|
|
par_result() {
|
|
|
|
echo "### Test --results"
|
|
|
|
mkdir -p /tmp/parallel_results_test
|
|
|
|
parallel -k --results /tmp/parallel_results_test/testA echo {1} {2} ::: I II ::: III IIII
|
2021-07-11 18:12:52 +00:00
|
|
|
cat /tmp/parallel_results_test/testA/*/*/*/*/stdout | LC_ALL=C sort
|
2018-10-22 22:46:38 +00:00
|
|
|
ls /tmp/parallel_results_test/testA/*/*/*/*/* | LC_ALL=C sort
|
2017-01-27 22:15:25 +00:00
|
|
|
rm -rf /tmp/parallel_results_test/testA*
|
2017-04-22 20:42:11 +00:00
|
|
|
|
2017-01-27 22:15:25 +00:00
|
|
|
echo "### Test --res"
|
|
|
|
mkdir -p /tmp/parallel_results_test
|
|
|
|
parallel -k --res /tmp/parallel_results_test/testD echo {1} {2} ::: I II ::: III IIII
|
2021-07-11 18:12:52 +00:00
|
|
|
cat /tmp/parallel_results_test/testD/*/*/*/*/stdout | LC_ALL=C sort
|
2018-10-22 22:46:38 +00:00
|
|
|
ls /tmp/parallel_results_test/testD/*/*/*/*/* | LC_ALL=C sort
|
2017-01-27 22:15:25 +00:00
|
|
|
rm -rf /tmp/parallel_results_test/testD*
|
|
|
|
|
|
|
|
echo "### Test --result"
|
|
|
|
mkdir -p /tmp/parallel_results_test
|
|
|
|
parallel -k --result /tmp/parallel_results_test/testE echo {1} {2} ::: I II ::: III IIII
|
2021-07-11 18:12:52 +00:00
|
|
|
cat /tmp/parallel_results_test/testE/*/*/*/*/stdout | LC_ALL=C sort
|
2018-10-22 22:46:38 +00:00
|
|
|
ls /tmp/parallel_results_test/testE/*/*/*/*/* | LC_ALL=C sort
|
2017-01-27 22:15:25 +00:00
|
|
|
rm -rf /tmp/parallel_results_test/testE*
|
|
|
|
|
|
|
|
echo "### Test --results --header :"
|
|
|
|
mkdir -p /tmp/parallel_results_test
|
|
|
|
parallel -k --header : --results /tmp/parallel_results_test/testB echo {1} {2} ::: a I II ::: b III IIII
|
2021-07-11 18:12:52 +00:00
|
|
|
cat /tmp/parallel_results_test/testB/*/*/*/*/stdout | LC_ALL=C sort
|
2018-10-22 22:46:38 +00:00
|
|
|
ls /tmp/parallel_results_test/testB/*/*/*/*/* | LC_ALL=C sort
|
2017-01-27 22:15:25 +00:00
|
|
|
rm -rf /tmp/parallel_results_test/testB*
|
|
|
|
|
|
|
|
echo "### Test --results --header : named - a/b swapped"
|
|
|
|
mkdir -p /tmp/parallel_results_test
|
|
|
|
parallel -k --header : --results /tmp/parallel_results_test/testC echo {a} {b} ::: b III IIII ::: a I II
|
2021-07-11 18:12:52 +00:00
|
|
|
cat /tmp/parallel_results_test/testC/*/*/*/*/stdout | LC_ALL=C sort
|
2018-10-22 22:46:38 +00:00
|
|
|
ls /tmp/parallel_results_test/testC/*/*/*/*/* | LC_ALL=C sort
|
2017-01-27 22:15:25 +00:00
|
|
|
rm -rf /tmp/parallel_results_test/testC*
|
|
|
|
|
|
|
|
echo "### Test --results --header : piped"
|
|
|
|
mkdir -p /tmp/parallel_results_test
|
|
|
|
(echo Col; perl -e 'print "backslash\\tab\tslash/null\0eof\n"') | parallel --header : --result /tmp/parallel_results_test/testF true
|
2021-07-11 18:12:52 +00:00
|
|
|
cat /tmp/parallel_results_test/testF/*/*/*/*/stdout | LC_ALL=C sort
|
2018-10-22 22:46:38 +00:00
|
|
|
find /tmp/parallel_results_test/testF/*/*/* | LC_ALL=C sort
|
2017-01-27 22:15:25 +00:00
|
|
|
rm -rf /tmp/parallel_results_test/testF*
|
|
|
|
|
|
|
|
echo "### Test --results --header : piped - non-existing column header"
|
|
|
|
mkdir -p /tmp/parallel_results_test
|
|
|
|
(printf "Col1\t\n"; printf "v1\tv2\tv3\n"; perl -e 'print "backslash\\tab\tslash/null\0eof\n"') |
|
|
|
|
parallel --header : --result /tmp/parallel_results_test/testG true
|
2021-07-11 18:12:52 +00:00
|
|
|
cat /tmp/parallel_results_test/testG/*/*/*/*/stdout | LC_ALL=C sort
|
2018-10-22 22:46:38 +00:00
|
|
|
find /tmp/parallel_results_test/testG/ | LC_ALL=C sort
|
2017-01-27 22:15:25 +00:00
|
|
|
rm -rf /tmp/parallel_results_test/testG*
|
|
|
|
}
|
|
|
|
|
|
|
|
par_result_replace() {
|
|
|
|
echo '### bug #49983: --results with {1}'
|
|
|
|
parallel --results /tmp/par_{}_49983 -k echo ::: foo bar baz
|
2021-07-11 18:12:52 +00:00
|
|
|
cat /tmp/par_*_49983
|
2018-10-22 22:46:38 +00:00
|
|
|
find /tmp/par_*_49983 | LC_ALL=C sort
|
2017-01-27 22:15:25 +00:00
|
|
|
rm -rf /tmp/par_*_49983
|
2021-07-11 18:12:52 +00:00
|
|
|
|
2017-01-27 22:15:25 +00:00
|
|
|
parallel --results /tmp/par_{}_49983 -k echo ::: foo bar baz ::: A B C
|
2021-07-11 18:12:52 +00:00
|
|
|
cat /tmp/par_*_49983
|
2018-10-22 22:46:38 +00:00
|
|
|
find /tmp/par_*_49983 | LC_ALL=C sort
|
2017-01-27 22:15:25 +00:00
|
|
|
rm -rf /tmp/par_*_49983
|
2021-07-11 18:12:52 +00:00
|
|
|
|
2017-01-27 22:15:25 +00:00
|
|
|
parallel --results /tmp/par_{1}-{2}_49983 -k echo ::: foo bar baz ::: A B C
|
2021-07-11 18:12:52 +00:00
|
|
|
cat /tmp/par_*_49983
|
2018-10-22 22:46:38 +00:00
|
|
|
find /tmp/par_*_49983 | LC_ALL=C sort
|
2017-01-27 22:15:25 +00:00
|
|
|
rm -rf /tmp/par_*_49983
|
2021-07-11 18:12:52 +00:00
|
|
|
|
2017-01-27 22:15:25 +00:00
|
|
|
parallel --results /tmp/par__49983 -k echo ::: foo bar baz ::: A B C
|
2021-07-11 18:12:52 +00:00
|
|
|
cat /tmp/par_*_49983/*/*/*/*/stdout
|
2018-10-22 22:46:38 +00:00
|
|
|
find /tmp/par_*_49983 | LC_ALL=C sort
|
2017-01-27 22:15:25 +00:00
|
|
|
rm -rf /tmp/par_*_49983
|
2021-07-11 18:12:52 +00:00
|
|
|
|
2017-01-27 22:15:25 +00:00
|
|
|
parallel --results /tmp/par__49983 --header : -k echo ::: foo bar baz ::: A B C
|
2021-07-11 18:12:52 +00:00
|
|
|
cat /tmp/par_*_49983/*/*/*/*/stdout
|
2018-10-22 22:46:38 +00:00
|
|
|
find /tmp/par_*_49983 | LC_ALL=C sort
|
2017-01-27 22:15:25 +00:00
|
|
|
rm -rf /tmp/par_*_49983
|
2021-07-11 18:12:52 +00:00
|
|
|
|
2017-01-27 22:15:25 +00:00
|
|
|
parallel --results /tmp/par__49983-{}/ --header : -k echo ::: foo bar baz ::: A B C
|
2021-07-11 18:12:52 +00:00
|
|
|
cat /tmp/par_*_49983*/stdout
|
2018-10-22 22:46:38 +00:00
|
|
|
find /tmp/par_*_49983-* | LC_ALL=C sort
|
2017-01-27 22:15:25 +00:00
|
|
|
rm -rf /tmp/par_*_49983-*
|
|
|
|
}
|
|
|
|
|
2017-06-29 10:13:57 +00:00
|
|
|
par_incomplete_linebuffer() {
|
|
|
|
echo 'bug #51337: --lb does not kill jobs at sigpipe'
|
|
|
|
cat > /tmp/parallel--lb-test <<'_EOF'
|
|
|
|
#!/usr/bin/perl
|
|
|
|
|
|
|
|
while(1){ print ++$t,"\n"}
|
|
|
|
_EOF
|
|
|
|
chmod +x /tmp/parallel--lb-test
|
|
|
|
|
|
|
|
parallel --lb /tmp/parallel--lb-test ::: 1 | head
|
|
|
|
# Should be empty
|
|
|
|
ps aux | grep parallel[-]-lb-test
|
|
|
|
}
|
|
|
|
|
2018-04-22 14:28:01 +00:00
|
|
|
par_header_parens() {
|
|
|
|
echo 'bug #49538: --header and {= =}'
|
|
|
|
|
|
|
|
parallel --header : echo '{=v2=}{=v1 $_=Q($_)=}' ::: v1 K ::: v2 O
|
|
|
|
parallel --header : echo '{2}{=1 $_=Q($_)=}' ::: v2 K ::: v1 O
|
|
|
|
parallel --header : echo {var/.} ::: var sub/dir/file.ext
|
|
|
|
parallel --header : echo {var//} ::: var sub/dir/file.ext
|
|
|
|
parallel --header : echo {var/.} ::: var sub/dir/file.ext
|
|
|
|
parallel --header : echo {var/} ::: var sub/dir/file.ext
|
|
|
|
parallel --header : echo {var.} ::: var sub/dir/file.ext
|
|
|
|
}
|
|
|
|
|
|
|
|
par_pipe_compress_blocks() {
|
|
|
|
echo "### bug #41482: --pipe --compress blocks at different -j/seq combinations"
|
|
|
|
seq 1 | parallel -k -j2 --compress -N1 -L1 --pipe cat
|
|
|
|
echo echo 1-4 + 1-4
|
|
|
|
seq 4 | parallel -k -j3 --compress -N1 -L1 -vv echo
|
|
|
|
echo 4 times wc to stderr to stdout
|
|
|
|
(seq 4 | parallel -k -j3 --compress -N1 -L1 --pipe wc '>&2') 2>&1 >/dev/null
|
|
|
|
echo 1 2 3 4
|
|
|
|
seq 4 | parallel -k -j3 --compress echo
|
|
|
|
echo 1 2 3 4
|
|
|
|
seq 4 | parallel -k -j1 --compress echo
|
|
|
|
echo 1 2
|
|
|
|
seq 2 | parallel -k -j1 --compress echo
|
|
|
|
echo 1 2 3
|
|
|
|
seq 3 | parallel -k -j2 --compress -N1 -L1 --pipe cat
|
|
|
|
}
|
|
|
|
|
2018-10-22 22:46:38 +00:00
|
|
|
par_too_long_line_X() {
|
|
|
|
echo 'bug #54869: Long lines break'
|
|
|
|
seq 3000 | parallel -Xj1 'echo {} {} {} {} {} {} {} {} {} {} {} {} {} {} | wc'
|
|
|
|
}
|
2017-06-29 10:13:57 +00:00
|
|
|
|
2020-09-19 14:47:01 +00:00
|
|
|
par_test_cpu_detection_cpuinfo() {
|
|
|
|
pack() { zstd -19 | mmencode; }
|
2020-09-12 21:33:55 +00:00
|
|
|
unpack() { mmencode -u | zstd -d; }
|
|
|
|
export -f unpack
|
2020-09-19 14:47:01 +00:00
|
|
|
# ssh server cat /proc/cpuinfo | pack
|
2020-09-12 21:33:55 +00:00
|
|
|
|
|
|
|
cpu1() {
|
|
|
|
echo '2-8-8-8 Xeon 8 core server in Germany'
|
|
|
|
echo '
|
|
|
|
KLUv/QRYbRIARmlzIxBtqgDhSWTqT86MkL9zqf+EhavXzwbElKKZVR0oAgBg5J4gcQBiAGEA
|
|
|
|
sLnXDwczA4YzTNLcWTvx+utwzbFmQQYUDEZyZ60JhQYkubMk+Zi3NptQSECQAeUFvwJhFAiH
|
|
|
|
cDh4wAOAnBvxgAeAO2tjk1+UO2vBhWZkzZ31gC+26BM7BrfKhZVvkptwZ0HvoROSSzHkzqKz
|
|
|
|
e92kzALNss2vjU/N6N5c/Ep8Sms8b5+gcl8Xv41PO951/TZ/oW+kPnF0Z62WGmQJtiR3Flxq
|
|
|
|
4aE3sZPzVV5X7TNxxHofd9aaOGLIncP26pPPPW5Lp/vEbkHvS6djzJ3Vknyw8ZohD81Bjw7i
|
|
|
|
U67Vm6RyX7a7r8T6KlKH7J6GTmd9csYzTW+F/iQfmlN6eOm7Nt6N5csZI7r8OBxtd12fKltt
|
|
|
|
Od0jfCUPYXP96G+DH+ur491XtvvbfdpV9CrGP3btXaE7eoIRdA/MYrEsFE2jNIxCkSgUhkES
|
|
|
|
ZlmWZVEURUGSJEmYU+XGlZps8XQlJjPYpkofxVzgXV/jBN1LIagxprmzqtwopQfbw7AFMoAw
|
|
|
|
GMud1fzilGaDPeqj81GuFkZ/UVKXmFBz9EO5PsIncjT4pVpXTx5mux83IFADQJsOKpW46nns
|
|
|
|
Is7U2ZTFVYV3C3OmxEovTmU8sZyTYlYqcdTzmEU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
|
|
|
|
echo '1-4-4-4 x96 quad-core Android TV-box'
|
|
|
|
echo '
|
|
|
|
KLUv/QRY5QcAhlE1H1BnKwDIkoetw1FHvrd6TW5nqI4+EQedzut9ABQptb4rACoALAD72HTS
|
|
|
|
yk/im3vpzs7kbugyATqUkc6ORAG7AF+v3P8qKK0RiLPTzJzcmE4E9W9C+qMuDC+XM+FLV09h
|
|
|
|
E+lcd0VsFHoHV7lcXB2t29Uq88Yq8xA2UX5yb77KfaSkV6aEdHbosq+3Gs64G9qYPqX1GiuB
|
|
|
|
6cKRoYzvB4kBdLr1Je+rShcoKVYc2jpeAaUQZCHItkI6rJSUYZOhzs6B+5oNUHsIDIyIs8O9
|
|
|
|
i6S3AKF1dhYmDgA0xZA5Q837braqI67uHZjSlgNrgIOBQ8Q8pCcNnhe5YjIBX0edag==
|
|
|
|
' | unpack
|
|
|
|
}
|
|
|
|
cpu9() {
|
|
|
|
echo '1-6-6-6 Kramses 200 USD laptop 6-core'
|
|
|
|
echo '
|
|
|
|
KLUv/QRYlQcAgk8uH1AJrABITeNdwrPRAqt9X9oa+rr/FE0XsNM0A4oUUSIDBmKowyiQcm/F
|
|
|
|
1bpHYhKJN2Fil2uzj1AMCHmi+/CivJxl8wjF8EIlVtlpUwbbQgjFcONYdrmRTnyRTjxjT4OP
|
|
|
|
mm/LkVuvCdm5F7OevZiFVEfGPxo2fffUHUZGD5s+s6dxzOYK7XH4DUsn6j6caoBSEkDUkz9B
|
|
|
|
OTi8hVeAAhjSAFdvXeVIHxAInlxbujNlXkPpyffFqMtbiAIVAC1AFUAfSJgbUAKU9wNU9gNU
|
|
|
|
+QH1Gq2EwfCdq39vKWe7c6q/wBoyA0HbuS0w7lMlg1sHMAcaacWR
|
|
|
|
' | unpack
|
|
|
|
}
|
|
|
|
cpu10() {
|
|
|
|
echo '4-48-48-48 Dell R815 4 CPU 48-core'
|
|
|
|
echo '
|
|
|
|
KLUv/QRYRSEApj+vIjBLLADDcJR4ZOmSMcbRLoFyV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bu1cuGx5XSGVkSXEFeoGrlu2294ttv1gcEJoeIJIPGxfGWyxlEiQAYXQw0KHjdim
|
|
|
|
06c4zJwl7eT3XO6A14X/5rufaPdlO5g73vsyW+/ZzmjHMY79iY99NXwp5ztrX+FgV/auiy/7
|
|
|
|
nfW8Nl/b9T13mOlmuSmpCfVps+B6l9qInNxyptxH4D13eULQrbK1NaE+2KxbSoFBSiADCKLg
|
|
|
|
fbGJS5rL2Omcpyxu7rvh1eh3e2cmwr178WNRVMbZSoJ4FJWTKXcnKADAIKuqBxBI54gcFYp3
|
|
|
|
xUIMqhrUyHoLjYPwgszI7eGRdSUOFMYQlpP0pOoEAV0WM1zTXUey4OeJUEZtb+UNcgLSAYUj
|
|
|
|
iyXJQ3TVfIX50ANedGFbHwEc/JQzJup4YQ==
|
|
|
|
' | unpack
|
|
|
|
}
|
|
|
|
|
2020-09-12 21:33:55 +00:00
|
|
|
export -f $(compgen -A function | grep ^cpu)
|
2020-03-15 03:28:12 +00:00
|
|
|
|
|
|
|
test_one() {
|
2020-09-23 15:41:03 +00:00
|
|
|
eval $1 | head -n1
|
|
|
|
export PARALLEL_CPUINFO="$(eval $1 | tail -n +2)"
|
2020-03-15 03:28:12 +00:00
|
|
|
echo $(parallel --number-of-sockets) \
|
|
|
|
$(parallel --number-of-cores) \
|
|
|
|
$(parallel --number-of-threads) \
|
|
|
|
$(parallel --number-of-cpus)
|
|
|
|
}
|
|
|
|
export -f test_one
|
2020-09-23 15:41:03 +00:00
|
|
|
compgen -A function | grep ^cpu | sort | parallel -j0 -k test_one
|
2021-04-22 16:20:41 +00:00
|
|
|
rm ~/.parallel/tmp/sshlogin/*/cpuspec 2>/dev/null
|
2020-03-15 03:28:12 +00:00
|
|
|
}
|
|
|
|
|
2020-09-19 14:47:01 +00:00
|
|
|
par_test_cpu_detection_lscpu() {
|
|
|
|
pack() { zstd -19 | mmencode; }
|
|
|
|
unpack() { mmencode -u | zstd -d; }
|
|
|
|
export -f unpack
|
|
|
|
# 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RNJDWMgUASALDIelxSA43If9uHpvXHEbfAybA5yiTzjJGNsNEJhrP/trvE9thy4
|
|
|
|
EPWxBL9Ev+3Tc4V4y+yIoASj88gBPDh1YC0Hj+9SAIGlXIksTAVhZEDvaLMJEPRuqp2YAOQC
|
|
|
|
TScOHg0AZWaC3ta8uvJY+7RdpnWcJnqpGYJyWZn52M42vTHmkCoi6xGLgGI6qJBMGjmMBMaA
|
|
|
|
xU0EY9tRzDJQ4nY0BW6JnRuEi+6GBsRfsKN4C1hVzzGGYiil6i4wwSfBmRYAFSBTdAhduMYs
|
|
|
|
pN+yYcqIRXOpXTBSQCcPSsga9cCuhh7z/9NC2xMmKUr4tsTH
|
|
|
|
' | unpack
|
|
|
|
}
|
|
|
|
_cpu4() {
|
|
|
|
echo '1-2-2-2 dual core laptop(?)'
|
|
|
|
echo '
|
|
|
|
' | unpack
|
|
|
|
}
|
|
|
|
_cpu5() {
|
|
|
|
echo '2-24-48-24 24-core (maxwell?)'
|
|
|
|
echo '
|
|
|
|
' | unpack
|
|
|
|
}
|
|
|
|
_cpu6() {
|
|
|
|
echo '1-2-2-2 HP Laptop Compaq 6530b'
|
|
|
|
echo '
|
|
|
|
' | unpack
|
|
|
|
}
|
|
|
|
cpu7() {
|
|
|
|
echo '1-8-8-8 Huawei P Smart Octa-core (4x2.36 GHz Cortex-A53 & 4x1.7 GHz Cortex-A53)'
|
|
|
|
echo '
|
|
|
|
KLUv/QRoTQgAgk8yJCCN6AGBEUmyQvipyGwhCMTqQifa7nWt/lvbXsAxLGVACC2ABrswzRtD
|
|
|
|
KImUazOO/vUjml18lTF9qBAGEXY5CsYxMaQJmQvlLPmUUkqxNMwykSDxhEWqHCIfpf2OZQgg
|
|
|
|
ZdLvM+rIJC+G7aa00gJkwGCfTnbDLo5dzM83RJu1fUY7MBt7U8faIwxboCh+vj7I3PJBRTbW
|
|
|
|
eUzRSvacPOCG/0+BH2/nDe6XWOxqWOCfg7IwARWg3YwKnfyYol1NpDlj/LRLvvW/SHMoGAAr
|
|
|
|
Q5AWDg9qGEBiofABuk3KGsauTvhpnhsa5HVShxsS93JpFOfBzhP4ZgBCDQ0XCuEub/2VgAiV
|
|
|
|
mwwoAdUl+VI=
|
|
|
|
' | unpack
|
|
|
|
}
|
|
|
|
cpu8() {
|
|
|
|
echo '1-4-4-4 x96 quad-core Android TV-box'
|
|
|
|
echo '
|
|
|
|
KLUv/QRo/QgAtpE4JBCNWAHfG9LkksIm0BaMBALBz/jVBGlPVDQCo6NyBAUAwCBwEC4ALwAv
|
|
|
|
AE3Pdb/CdQp8qMWbgAkggTgKsm3Q4Oq6V+ENa+PHtSUIlBuYHrM3ylI/2hs93AgNJUKbo6OP
|
|
|
|
wb9x2qJDORYaBQnn2KA2qCXS+vDEqRwdtcTnrLIx5YhBMcoCQQ+1/s5JT34q++OePenb28ku
|
|
|
|
oTlh7mAtuGutJaBYGMsEguMR7F0CcdRCLp7AlVI7ohhGqqdtezZt2y92uj4zwajwcja9hKa3
|
|
|
|
k15PBt3hSVEfciy6hLiCefi5YmHRfBgggCQg1HBWDGNRBoJsaT4B1kZtNKSQAf5kC+J/a19p
|
|
|
|
9jscIBj33n2UBCmUphwBwqU/HBDKFhi+RQnSA8zN
|
|
|
|
' | unpack
|
|
|
|
}
|
|
|
|
_cpu9() {
|
|
|
|
echo '1-6-6-6 Kramses 200 USD laptop 6-core'
|
|
|
|
echo '
|
|
|
|
' | unpack
|
|
|
|
}
|
|
|
|
_cpu10() {
|
|
|
|
echo '4-48-48-48 Dell R815 4 CPU 48-core'
|
|
|
|
echo '
|
|
|
|
' | unpack
|
|
|
|
}
|
2020-09-23 15:41:03 +00:00
|
|
|
Venter_cpu11() {
|
2020-09-19 14:47:01 +00:00
|
|
|
echo '1-4-8-4 4-core/8 thread Lenovo T480'
|
|
|
|
echo '
|
|
|
|
' | unpack
|
|
|
|
}
|
|
|
|
cpu12() {
|
|
|
|
echo '4-64-64-64 Dell R815 4 CPU 64-core'
|
|
|
|
echo '
|
|
|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
ExcgQEik8g6fj08zd4EHssVA93AJ8C7xnA3qlYxXshyLBYN1XHECyZgjRUkKjzkkLOUQtuV4
|
|
|
|
YQqnBNP0ggo=
|
2020-09-23 15:41:03 +00:00
|
|
|
' | unpack
|
|
|
|
}
|
2020-12-07 15:24:54 +00:00
|
|
|
cpu15() {
|
|
|
|
echo '1-1-1-1 Intel(R) Celeron(R) M (eee900)'
|
|
|
|
echo '
|
|
|
|
KLUv/QRohQoANpVBJCDJVgAHS35yk/0LNr7il7y4NiXZTi5J2xh8EMPkH0ICUAugATkAOAA5
|
|
|
|
AFDzg//KBxEyshyKJFqSPScHvrD7GRyq62rk2xnH6ldBJBQHNqybEUHnKZJoMR7GO7S16rb9
|
|
|
|
LK0GBJfkrAs3+uHAsJHJKw7BdVNajAx8kU1wW0JWvkpugQDkdTq5CcuZ9Cq0yVtntJzZXpc6
|
|
|
|
ttWCsJoH7dvil9FXjm/cX6Zf942XV3RiikGCtXiciQQiTWo61iLRADRNY+EhPZR8lG5P1sJD
|
|
|
|
appGnczbZqUB6zW9exVt564cI78V+thnfmKZXxkzHRPjH23s3O4WruAE2y8ztjOKvtaOp8tv
|
|
|
|
j7I/mB0gQIaMujr8eNMPYIxoDLDgY+WX46hwjTmVzU7HpqEtYHxLTLzqx8jKta+0nIvY4e1q
|
|
|
|
oiCpQLqitFXU0Fyo+a4q4SvbmVMCr0burQ==
|
|
|
|
' | unpack
|
|
|
|
}
|
2020-09-19 14:47:01 +00:00
|
|
|
export -f $(compgen -A function | grep ^cpu)
|
|
|
|
|
|
|
|
test_one() {
|
2020-09-23 15:41:03 +00:00
|
|
|
eval $1 | head -n1
|
|
|
|
export PARALLEL_LSCPU="$(eval $1 | tail -n +2)"
|
2020-09-19 14:47:01 +00:00
|
|
|
echo $(parallel --number-of-sockets) \
|
|
|
|
$(parallel --number-of-cores) \
|
|
|
|
$(parallel --number-of-threads) \
|
|
|
|
$(parallel --number-of-cpus)
|
|
|
|
}
|
|
|
|
export -f test_one
|
2020-09-23 15:41:03 +00:00
|
|
|
compgen -A function | grep ^cpu | sort | parallel -j0 -k test_one
|
2021-03-23 21:11:02 +00:00
|
|
|
rm ~/.parallel/tmp/sshlogin/*/cpuspec 2>/dev/null
|
2020-09-19 14:47:01 +00:00
|
|
|
}
|
|
|
|
|
2020-03-15 03:28:12 +00:00
|
|
|
par_null_resume() {
|
|
|
|
echo '### --null --resume --jl'
|
|
|
|
log=/tmp/null-resume-$$.log
|
|
|
|
|
|
|
|
true > "$log"
|
|
|
|
printf "%s\n" a b c | parallel --resume -k --jl $log echo
|
|
|
|
printf "%s\n" a b c | parallel --resume -k --jl $log echo
|
|
|
|
true > "$log"
|
|
|
|
printf "%s\0" A B C | parallel --null --resume -k --jl $log echo
|
|
|
|
printf "%s\0" A B C | parallel --null --resume -k --jl $log echo
|
|
|
|
rm "$log"
|
|
|
|
}
|
|
|
|
|
2020-12-30 12:42:02 +00:00
|
|
|
par_pipepart_block() {
|
|
|
|
echo '### --pipepart --block -# (# < 0)'
|
|
|
|
|
|
|
|
seq 1000 > /run/shm/parallel$$
|
|
|
|
parallel -j2 -k --pipepart echo {#} :::: /run/shm/parallel$$
|
|
|
|
parallel -j2 -k --block -1 --pipepart echo {#}-2 :::: /run/shm/parallel$$
|
|
|
|
parallel -j2 -k --block -2 --pipepart echo {#}-4 :::: /run/shm/parallel$$
|
|
|
|
parallel -j2 -k --block -10 --pipepart echo {#}-20 :::: /run/shm/parallel$$
|
|
|
|
rm /run/shm/parallel$$
|
|
|
|
}
|
|
|
|
|
2020-03-15 03:28:12 +00:00
|
|
|
par_block_negative_prefix() {
|
|
|
|
tmp=`mktemp`
|
|
|
|
seq 100000 > $tmp
|
|
|
|
echo '### This should generate 10*2 jobs'
|
|
|
|
parallel -j2 -a $tmp --pipepart --block -0.01k -k md5sum | wc
|
|
|
|
rm $tmp
|
|
|
|
}
|
|
|
|
|
|
|
|
par_sql_colsep() {
|
|
|
|
echo '### SQL should add Vn columns for --colsep'
|
2020-12-07 15:24:54 +00:00
|
|
|
dburl=sqlite3:///%2ftmp%2fparallel-sql-colsep-$$/bar
|
|
|
|
parallel -k -C' ' --sqlandworker $dburl echo /{1}/{2}/{3}/{4}/ \
|
2020-03-15 03:28:12 +00:00
|
|
|
::: 'a A' 'b B' 'c C' ::: '1 11' '2 22' '3 33'
|
2020-06-22 22:34:52 +00:00
|
|
|
parallel -k -C' ' echo /{1}/{2}/{3}/{4}/ \
|
|
|
|
::: 'a A' 'b B' 'c C' ::: '1 11' '2 22' '3 33'
|
2020-12-07 15:24:54 +00:00
|
|
|
parallel -k -C' ' -N3 --sqlandworker $dburl echo \
|
2020-06-22 22:34:52 +00:00
|
|
|
::: 'a A' 'b B' 'c C' ::: '1 11' '2 22' '3 33' '4 44' '5 55' '6 66'
|
|
|
|
parallel -k -C' ' -N3 echo \
|
2020-03-15 03:28:12 +00:00
|
|
|
::: 'a A' 'b B' 'c C' ::: '1 11' '2 22' '3 33' '4 44' '5 55' '6 66'
|
2020-12-07 15:24:54 +00:00
|
|
|
rm /tmp/parallel-sql-colsep-$$
|
2019-10-21 19:18:32 +00:00
|
|
|
}
|
|
|
|
|
2017-01-27 22:15:25 +00:00
|
|
|
export -f $(compgen -A function | grep par_)
|
2018-10-22 22:46:38 +00:00
|
|
|
compgen -A function | grep par_ | LC_ALL=C sort |
|
2020-06-22 22:34:52 +00:00
|
|
|
parallel --timeout 1000% -j6 --tag -k --joblog /tmp/jl-`basename $0` '{} 2>&1' |
|
|
|
|
perl -pe 's:/usr/bin:/bin:g;'
|