2009-02-18 01:57:38 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2024-01-24 01:02:07 +00:00
|
|
|
# SPDX-FileCopyrightText: 2021-2024 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
|
|
|
|
|
2012-12-28 20:30:30 +00:00
|
|
|
# Simple jobs that never fails
|
2013-12-19 01:19:19 +00:00
|
|
|
# Each should be taking 3-10s and be possible to run in parallel
|
2012-12-28 20:30:30 +00:00
|
|
|
# I.e.: No race conditions, no logins
|
2014-04-19 08:11:32 +00:00
|
|
|
|
2024-01-21 06:53:12 +00:00
|
|
|
par__test_cpu_detection_topology() {
|
|
|
|
pack() { zstd -19 | mmencode; }
|
|
|
|
unpack() { mmencode -u | zstd -d; }
|
|
|
|
repack() { tmp=$(mktemp -d); cd "$tmp" && unpack | tar x && tar c . | pack; }
|
|
|
|
export -f unpack
|
|
|
|
# ssh s "(cd /sys/devices/system/cpu; tar c cpu*/topology)" | pack | repack
|
|
|
|
# repack due to: File shrank by 4093 bytes; padding with zeros
|
|
|
|
|
|
|
|
cpu18() {
|
|
|
|
echo '1-4-8-4 Lenovo E540 i7-4712MQ'
|
|
|
|
echo '
|
|
|
|
KLUv/QRoHAsAMk0mHWC1cQMAQXg43q4Vap89AAAg2t0lEnmtAQSEjEgBuozI2UgR9pHWQngK
|
|
|
|
UfLvBgNkXYcUWANgzlhLksiMpACVFKMlxdyBoBzuH4wVNf////+DNYGsu9jxACIOmi8qcyr2
|
|
|
|
VfXPsWY4Y1lN8enTCG1xQJKWKMlrxfx2gQyKKgT/Qgrp3ZglPWf41zw5MfGL8iTqruZzO4/Y
|
|
|
|
+EIQQ6CBmdKUxKC0WjPxHREMiWQkoKo7/XWAkGfsKr9OCaDqVAANMEBgH9mALjUBaAMWTA3I
|
|
|
|
p9MAD/jUHrIBUfUMMDmtwGw3FJAlZAHuHzs1ecDClA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NcHw/VgBeZQOCQB4sAK1s
|
|
|
|
gOzrUQFYzQbEwR2aAFzKBgBKHloAUmUDJvjRA/19vhiEAwBQNTU1NTU1NTU1NSDo0cbfhBPU
|
|
|
|
HRE0BP///1NVwQRtB/2D2YA4BEcKwHPZANz8UQGQygbwYh5AALaRDUhBWgDIsgE18MMEYFAb
|
|
|
|
4AwoeAAYZgPQ+9EFoJQNUJg8LACDsgE29OACMFg2gJp/OFb/RAsU/QEAKDU1NTU1EOBQJ/9t
|
|
|
|
6f21XxYPuNOdB1UA3pcNcIb6I1UAvCcbQKgGQgnA3csGBKGqByUA1C8bQP/qDygC8AUI6jiN
|
|
|
|
2w==
|
|
|
|
'
|
|
|
|
}
|
|
|
|
export -f $(compgen -A function | grep ^cpu)
|
|
|
|
|
|
|
|
test_one() {
|
|
|
|
eval $1 | head -n1
|
|
|
|
export PARALLEL_CPUPREFIX=$(mktemp -d)
|
|
|
|
cd "$PARALLEL_CPUPREFIX" && eval $1 | tail -n +2 | unpack | tar xf -
|
|
|
|
echo $(parallel --number-of-sockets) \
|
|
|
|
$(parallel --number-of-cores) \
|
|
|
|
$(parallel --number-of-threads) \
|
|
|
|
$(parallel --number-of-cpus)
|
|
|
|
rm -r "$PARALLEL_CPUPREFIX"
|
|
|
|
}
|
|
|
|
export -f test_one
|
|
|
|
compgen -A function | grep ^cpu | sort | parallel -j0 -k test_one
|
|
|
|
rm ~/.parallel/tmp/sshlogin/*/cpuspec 2>/dev/null
|
|
|
|
}
|
|
|
|
|
|
|
|
par__test_cpu_detection_cpuinfo() {
|
|
|
|
pack() { zstd -19 | mmencode; }
|
|
|
|
unpack() { mmencode -u | zstd -d; }
|
|
|
|
export -f unpack
|
|
|
|
# ssh server cat /proc/cpuinfo | pack
|
|
|
|
|
|
|
|
cpu1() {
|
|
|
|
echo '2-8-8-8 Xeon 8 core server in Germany'
|
|
|
|
echo '
|
|
|
|
KLUv/QRYbRIARmlzIxBtqgDhSWTqT86MkL9zqf+EhavXzwbElK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UbeJgLvCeDfKme6XjMMU0
|
|
|
|
X2nCfTDSHHswjXI4CJSDgsZXam4vRiJEQRD15Eqm8+cej4S574R19KcOX/KM3iyRvrHdfcab
|
|
|
|
d6yPdi7jbDC+M00HGgDJQBXgHVgYGFDCduKMmpHxiUzAByptDXwxQm8Orkb8MKwzCJ2GRGOh
|
|
|
|
S1UsIOebOfYk2efwPdf8XqtmFQx7uDu4QYQPJQq2DBQj
|
|
|
|
' | unpack
|
|
|
|
}
|
|
|
|
cpu7() {
|
|
|
|
echo '1-8-8-8 Huawei P Smart Octa-core (4x2.36 GHz Cortex-A53 & 4x1.7 GHz Cortex-A53)'
|
|
|
|
echo '
|
|
|
|
KLUv/QRYZQUAwkkgH1BnrABA24MVyJENxj4WLhwSzxygdYSSvS59MzORDgyGAoEto0jsDTHx
|
|
|
|
9XOWl0pYpXrUG5qMPlbneFtuptv5FMdasGcns3AXCd8HEEQylmN3Q5V+oUp/WRoo36uHPHs6
|
|
|
|
+wS+1kuCN9TLzdRNJHYM1hsSQAACYkE8JPWGOHaviyxTDgAkQAkMUAcDFIMBSmCAOhigGAwo
|
|
|
|
4Wbu07xD5gw177vZqo64sbtwFDXaE3w=
|
|
|
|
' | unpack
|
|
|
|
}
|
|
|
|
cpu8() {
|
|
|
|
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
|
|
|
|
i6S3AKF1dh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I6Fun12k2hdwd1/1X+
|
|
|
|
Qkm+XpR8h3hf4cSiFSH2CFcUYfBOMurom4OJXlHsS7Gu3stON766Vj7o2LrVur7KFo/HsizK
|
|
|
|
sjjOw+FwChiI0mgeR6PRNIvyLI7G8zQOA1EejcfjOI0HRHEcx2kaxtFolAUCaRjmeSDKszSY
|
|
|
|
JDFYiUkWT/dicgLZVOmjCp4PvOuDDnG6lzrHqtwopQfZehKmoUAKGvzilCaUyAo5rflihGi/
|
|
|
|
vsircIoLgvW9JWYX/XbxUWXguxljQLP2ahhqLa1tuS8r3LgmKNneSVpuawuAjKjxOKIMMozN
|
|
|
|
BAVJkkI6gETIqDoH8ik1TcCMERAi5sRS/A8FFS4dG3CFtZwlIk6YcimJDtgk5wR1XK4Zk8Un
|
|
|
|
sMVDxBNion/C2hcU+QlCJ9TqKYENn+w6gVqWVtxECfmm9FkYX4KDEonAOWU2hJsM6RMh0U0p
|
|
|
|
7+Zac3GHjyoclWW/p4WGjMjik0uVQdh2h0oi5FLuqKQfPYjKWrQQKCqYjDPIvFVSzilypEW1
|
|
|
|
nRlB9gFqeGTDqWsdgBaiLwZvZEI8R/Gn0z21lUPE919W+l3pW3zYoa67/7ma7JfvqXav1TPR
|
|
|
|
VPD4FxvYvY+QCPdXlYD+97NAYZox/vWovIVyerIbhrErTRTiye/tcPmHerjHhz10g4iteO9n
|
|
|
|
zdoA+1KxJ8/shJsDnYcJTIaXxS7ju0nnln2fbenY0DSGz5+q
|
|
|
|
' | unpack
|
|
|
|
}
|
|
|
|
export -f $(compgen -A function | grep ^cpu)
|
|
|
|
|
|
|
|
test_one() {
|
|
|
|
eval $1 | head -n1
|
|
|
|
export PARALLEL_CPUINFO="$(eval $1 | tail -n +2)"
|
|
|
|
echo $(parallel --number-of-sockets) \
|
|
|
|
$(parallel --number-of-cores) \
|
|
|
|
$(parallel --number-of-threads) \
|
|
|
|
$(parallel --number-of-cpus)
|
|
|
|
}
|
|
|
|
export -f test_one
|
|
|
|
compgen -A function | grep ^cpu | sort | parallel -j0 -k test_one
|
|
|
|
rm ~/.parallel/tmp/sshlogin/*/cpuspec 2>/dev/null
|
|
|
|
}
|
|
|
|
|
|
|
|
par__test_cpu_detection_lscpu() {
|
|
|
|
pack() { zstd -19 | mmencode; }
|
|
|
|
unpack() { mmencode -u | zstd -d; }
|
|
|
|
export -f unpack
|
|
|
|
# ssh server lscpu | pack
|
|
|
|
|
|
|
|
cpu1() {
|
|
|
|
echo '2-8-8-8 Xeon 8 core server in Germany'
|
|
|
|
echo '
|
|
|
|
KLUv/QRodQYA8solITAL5gF7YbnaqsSsYkliK98HHFiNI3FSwNumyBYOykA5Aew4x163Zw87
|
|
|
|
7XAqwtiSPYwAiCZa/8LET3hd+xO/ZCDAJQlLGEACjIF+VflN4KP1dFkhfg/zHeDC9Esbp39R
|
|
|
|
LyBo2lZJfWLmstJeIOmA2/WGWC23lWFWY1uv2rAKCd1SESOtGFYhITDsnsJDEK24vW70+1S0
|
|
|
|
SxQgQIII9QEdLfxiBElVRWsZDqgLA+oSr9kgrmS70kDZt2WvOkEnODfAiaJIAWgWoteFUwLs
|
|
|
|
8nwc
|
|
|
|
' | unpack
|
|
|
|
}
|
|
|
|
cpu2() {
|
|
|
|
echo '1-4-8-4 Core i7-3632QM Acer laptop'
|
|
|
|
echo '
|
|
|
|
KLUv/QRoxR8AukKICyngcGoTEJCWSciVLZJIKEXuzdZEplGI3JgV4DZJLMuEV2COJ8wwH2L4
|
|
|
|
BcEAsgChABMIwcjiqQJCoZiUW0AsFAUYGxxMCkBPd7MpzAYHDRQMCMYPfDKB0Xg0HgjoA0wq
|
|
|
|
D0ABQDr1HjHgLRmcMI9LU6eeZz9JPo1eNlAgeYTs5cQ7gkmFCMyCwjg6MSzIGWEChgHXYy5T
|
|
|
|
GS0VhsCDolnbn0/bw5PARDQVdVQpwnGHppbyxbLnVuePBucG5TNnZAwB85Syt+DZuhVCTBYl
|
|
|
|
PPsSYRyPO7Q6D4xGAAaQDLqHha8gkYB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2oqp91bRrfSekudcae89E1f
|
|
|
|
Clr3iI5xOJqyL6VtviSlPU9p7yTmb8tLUk+9aOKw98tiV4vxdVb2qdR25Ji66A2bjBK6DkWi
|
|
|
|
idsmTzUnP2Vfp0Sudoky8yHWX5T1J1vE7jP2wkh9QmFt9w7X8SrqNfmF8uxuK9lkhO9s4osy
|
|
|
|
9vUnI7yLcRNJDWMgUASALDIelxSA43If9uHpvXHEbfAybA5yiTzjJGNsNEJhrP/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
|
|
|
|
}
|
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iGy6wym6ow2+fOh7De2BiA65hfTBgShgjwlKbRSEq
|
|
|
|
jAKUQ0da4Q==
|
|
|
|
' | unpack
|
|
|
|
}
|
|
|
|
|
|
|
|
export -f $(compgen -A function | grep ^cpu)
|
|
|
|
|
|
|
|
test_one() {
|
|
|
|
eval $1 | head -n1
|
|
|
|
export PARALLEL_LSCPU="$(eval $1 | tail -n +2)"
|
|
|
|
echo $(parallel --number-of-sockets) \
|
|
|
|
$(parallel --number-of-cores) \
|
|
|
|
$(parallel --number-of-threads) \
|
|
|
|
$(parallel --number-of-cpus)
|
|
|
|
}
|
|
|
|
export -f test_one
|
|
|
|
compgen -A function | grep ^cpu | sort | parallel -j0 -k test_one
|
|
|
|
rm ~/.parallel/tmp/sshlogin/*/cpuspec 2>/dev/null
|
|
|
|
}
|
|
|
|
|
2023-11-25 18:58:14 +00:00
|
|
|
par_combineexec() {
|
|
|
|
combineexec() {
|
|
|
|
stderr=$(mktemp)
|
|
|
|
parallel --combineexec "$combo" "$@" 2>"$stderr"
|
|
|
|
# Redirected stderr should give no output
|
|
|
|
cat "$stderr"
|
|
|
|
rm "$stderr"
|
|
|
|
}
|
|
|
|
combo=$(mktemp)
|
|
|
|
|
|
|
|
echo '### Check that "--pipe -k" works'
|
|
|
|
combineexec -j 2 -k --pipe wc
|
|
|
|
seq 920000 | "$combo"
|
|
|
|
|
|
|
|
echo '### Check that "-k" is kept'
|
|
|
|
combineexec -k bash -c :::
|
|
|
|
"$combo" 'sleep 0.$RANDOM; echo 1' 'sleep 0.$RANDOM; echo 2' 'sleep 0.$RANDOM; echo 3'
|
|
|
|
|
|
|
|
echo '### Check that "--tagstring {1}" is kept'
|
|
|
|
combineexec --tagstring {1} -k perl -e :::
|
|
|
|
"$combo" 'print("1\n")' 'print("2\n")' 'print("3\n")'
|
|
|
|
}
|
|
|
|
|
2023-11-03 21:56:46 +00:00
|
|
|
par__argfile_plus() {
|
|
|
|
tmp=$(mktemp -d)
|
|
|
|
(
|
|
|
|
p() {
|
|
|
|
echo -- -a $1 $2 $3
|
|
|
|
stdout parallel -k -a $1 -a $2 -a $3 echo;
|
|
|
|
}
|
|
|
|
q() {
|
|
|
|
echo :::: $1 $2 $3
|
|
|
|
stdout parallel -k echo :::: $1 $2 $3;
|
|
|
|
}
|
|
|
|
cd "$tmp"
|
|
|
|
seq 3 > file
|
|
|
|
seq 4 6 > +file
|
|
|
|
seq 7 9 > ++file
|
|
|
|
|
|
|
|
p file +file ++file
|
|
|
|
p file +./file ++file
|
|
|
|
p file ./+file ++file
|
|
|
|
|
|
|
|
p file +file +./+file
|
|
|
|
p file +./file +./+file
|
|
|
|
p file ./+file +./+file
|
|
|
|
|
|
|
|
p file +file ./++file
|
|
|
|
p file +./file ./++file
|
|
|
|
p file ./+file ./++file
|
|
|
|
|
|
|
|
q file +file ++file
|
|
|
|
q file +./file ++file
|
|
|
|
q file ./+file ++file
|
|
|
|
|
|
|
|
q file +file +./+file
|
|
|
|
q file +./file +./+file
|
|
|
|
q file ./+file +./+file
|
|
|
|
|
|
|
|
q file +file ./++file
|
|
|
|
q file +./file ./++file
|
|
|
|
q file ./+file ./++file
|
|
|
|
|
|
|
|
seq 10 12 | p ./file ./++file -
|
|
|
|
seq 10 12 | p ./file +./+file +-
|
|
|
|
seq 10 12 | p ./file +- ./+file
|
|
|
|
)
|
|
|
|
rm -r "$tmp"
|
|
|
|
}
|
|
|
|
|
2024-01-21 06:53:12 +00:00
|
|
|
par__plus() {
|
|
|
|
echo '### --plus'
|
|
|
|
echo '(It is OK to start with extra / or end with extra .)'
|
|
|
|
parallel -k --plus echo {} = {+/}/{/} = {.}.{+.} = {+/}/{/.}.{+.} = \
|
|
|
|
{..}.{+..} = {+/}/{/..}.{+..} = {...}.{+...} = \
|
|
|
|
{+/}/{/...}.{+...} \
|
|
|
|
::: a a.b a.b.c a.b.c.d a/1 a.b/1.2 a.b.c/1.2.3 a.b.c.d/1.2.3.4 \
|
|
|
|
a. a.b. a.b.c. a.b.c.d. a/1. a.b/1.2. a.b.c/1.2.3. a.b.c.d/1.2.3.4. \
|
|
|
|
a.. a.b.. a.b.c.. a.b.c.d.. a./1. a.b./1.2.. \
|
|
|
|
a.b.c./1.2.3.. a.b.c.d./1.2.3.4.. \
|
|
|
|
|
|
|
|
echo '### Test {%...} {%%...} {#...} {##...}'
|
|
|
|
a=z.z.z.foo
|
|
|
|
echo ${a#z*z.}
|
|
|
|
parallel --plus echo {#z.*z.} ::: z.z.z.foo
|
|
|
|
echo ${a##z*z.}
|
|
|
|
parallel --plus echo {##z.*z.} ::: z.z.z.foo
|
|
|
|
|
|
|
|
a=foo.z.z.z
|
|
|
|
echo ${a%.z.z}
|
|
|
|
parallel --plus echo {%.z.z} ::: foo.z.z.z
|
|
|
|
echo ${a%%.z*z}
|
|
|
|
parallel --plus echo {%%.z.*z} ::: foo.z.z.z
|
|
|
|
|
|
|
|
parallel -k --plus echo {uniq} ::: A B C ::: A B C ::: A B C
|
|
|
|
parallel -k --plus echo {1uniq}+{2uniq}+{3uniq} ::: A B C ::: A B C ::: A B C
|
|
|
|
parallel -k --plus echo {choose_k} ::: A B C D ::: A B C D ::: A B C D
|
|
|
|
}
|
|
|
|
|
|
|
|
par__sql_colsep() {
|
|
|
|
echo '### SQL should add Vn columns for --colsep'
|
|
|
|
dburl=sqlite3:///%2ftmp%2fparallel-sql-colsep-$$/bar
|
|
|
|
parallel -k -C' ' --sqlandworker $dburl echo /{1}/{2}/{3}/{4}/ \
|
|
|
|
::: 'a A' 'b B' 'c C' ::: '1 11' '2 22' '3 33'
|
|
|
|
parallel -k -C' ' echo /{1}/{2}/{3}/{4}/ \
|
|
|
|
::: 'a A' 'b B' 'c C' ::: '1 11' '2 22' '3 33'
|
|
|
|
parallel -k -C' ' -N3 --sqlandworker $dburl echo \
|
|
|
|
::: 'a A' 'b B' 'c C' ::: '1 11' '2 22' '3 33' '4 44' '5 55' '6 66'
|
|
|
|
parallel -k -C' ' -N3 echo \
|
|
|
|
::: 'a A' 'b B' 'c C' ::: '1 11' '2 22' '3 33' '4 44' '5 55' '6 66'
|
|
|
|
rm /tmp/parallel-sql-colsep-$$
|
|
|
|
}
|
|
|
|
|
|
|
|
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::'
|
|
|
|
}
|
|
|
|
|
|
|
|
par__test_XI_mI() {
|
|
|
|
echo "### Test -I"
|
|
|
|
seq 1 10 | parallel -k 'seq 1 {} | parallel -k -I :: echo {} ::'
|
|
|
|
|
|
|
|
echo "### Test -X -I"
|
|
|
|
seq 1 10 | parallel -k 'seq 1 {} | parallel -j1 -X -k -I :: echo a{} b::'
|
|
|
|
|
|
|
|
echo "### Test -m -I"
|
|
|
|
seq 1 10 | parallel -k 'seq 1 {} | parallel -j1 -m -k -I :: echo a{} b::'
|
|
|
|
}
|
|
|
|
|
2022-04-29 23:48:26 +00:00
|
|
|
par_process_slot_var() {
|
|
|
|
echo '### bug #62310: xargs compatibility: --process-slot-var=name'
|
2023-07-21 02:33:22 +00:00
|
|
|
seq 0.1 0.4 1.8 |
|
2023-05-06 21:42:36 +00:00
|
|
|
parallel -n1 -kP4 --process-slot-var=name -q bash -c 'sleep $1; echo "$name"' _
|
2023-07-21 02:33:22 +00:00
|
|
|
seq 0.1 0.4 1.8 |
|
2022-04-29 23:48:26 +00:00
|
|
|
xargs -n1 -P4 --process-slot-var=name bash -c 'sleep $1; echo "$name"' _
|
2023-07-21 02:33:22 +00:00
|
|
|
seq 0.1 0.4 1.8 |
|
2023-05-06 21:42:36 +00:00
|
|
|
parallel -kP4 --process-slot-var=name sleep {}\; echo '$name'
|
2022-04-29 23:48:26 +00:00
|
|
|
}
|
|
|
|
|
2023-05-06 21:42:36 +00:00
|
|
|
par__prefix_for_L_n_N_s() {
|
2021-08-03 20:50:03 +00:00
|
|
|
echo Must give xxx000 args
|
|
|
|
seq 10000 | parallel -N 1k 'echo {} | wc -w' | sort
|
|
|
|
seq 10000 | parallel -n 1k 'echo {} | wc -w' | sort
|
|
|
|
echo Must give xxx000 lines
|
|
|
|
seq 1000000 | parallel -L 1k --pipe wc -l | sort
|
|
|
|
echo Must give max 1000 chars per line
|
|
|
|
seq 10000 | parallel -mj1 -s 1k 'echo {} | wc -w' | sort
|
|
|
|
}
|
|
|
|
|
2023-05-06 21:42:36 +00:00
|
|
|
par_parset() {
|
|
|
|
echo '### test parset'
|
|
|
|
(
|
|
|
|
. `which env_parallel.bash`
|
|
|
|
|
|
|
|
echo 'Put output into $myarray'
|
|
|
|
parset myarray -k seq 10 ::: 14 15 16
|
|
|
|
echo "${myarray[1]}"
|
|
|
|
|
|
|
|
echo 'Put output into vars "$seq, $pwd, $ls"'
|
|
|
|
parset "seq pwd ls" -k ::: "seq 10" pwd ls
|
|
|
|
echo "$seq"
|
|
|
|
|
|
|
|
echo 'Put output into vars ($seq, $pwd, $ls)':
|
|
|
|
into_vars=(seq pwd ls)
|
|
|
|
parset "${into_vars[*]}" -k ::: "seq 5" pwd ls
|
|
|
|
echo "$seq"
|
|
|
|
|
|
|
|
echo 'The commands to run can be an array'
|
|
|
|
cmd=("echo '<<joe \"double space\" cartoon>>'" "pwd")
|
|
|
|
parset data -k ::: "${cmd[@]}"
|
|
|
|
echo "${data[0]}"
|
|
|
|
echo "${data[1]}"
|
|
|
|
|
|
|
|
echo 'You cannot pipe into parset, but must use a tempfile'
|
|
|
|
seq 10 > /tmp/parset_input_$$
|
|
|
|
parset res -k echo :::: /tmp/parset_input_$$
|
|
|
|
echo "${res[0]}"
|
|
|
|
echo "${res[9]}"
|
|
|
|
rm /tmp/parset_input_$$
|
|
|
|
|
|
|
|
echo 'or process substitution'
|
|
|
|
parset res -k echo :::: <(seq 0 10)
|
|
|
|
echo "${res[0]}"
|
|
|
|
echo "${res[9]}"
|
|
|
|
|
|
|
|
echo 'Commands with newline require -0'
|
|
|
|
parset var -k -0 ::: 'echo "line1
|
|
|
|
line2"' 'echo "command2"'
|
|
|
|
echo "${var[0]}"
|
|
|
|
) | replace_tmpdir
|
|
|
|
}
|
|
|
|
|
|
|
|
par_parset2() {
|
|
|
|
echo '### parset into array'
|
|
|
|
(
|
|
|
|
. `which env_parallel.bash`
|
2024-01-21 06:53:12 +00:00
|
|
|
env_parallel --session
|
2023-05-06 21:42:36 +00:00
|
|
|
|
|
|
|
parset arr1 echo ::: foo bar baz
|
2024-01-21 06:53:12 +00:00
|
|
|
echo foo bar baz
|
2023-05-06 21:42:36 +00:00
|
|
|
echo ${arr1[0]} ${arr1[1]} ${arr1[2]}
|
|
|
|
|
|
|
|
echo '### parset into vars with comma'
|
|
|
|
parset comma3,comma2,comma1 echo ::: baz bar foo
|
2024-01-21 06:53:12 +00:00
|
|
|
echo foo bar baz
|
2023-05-06 21:42:36 +00:00
|
|
|
echo $comma1 $comma2 $comma3
|
|
|
|
|
|
|
|
echo '### parset into vars with space'
|
|
|
|
parset 'space3 space2 space1' echo ::: baz bar foo
|
2024-01-21 06:53:12 +00:00
|
|
|
echo foo bar baz
|
2023-05-06 21:42:36 +00:00
|
|
|
echo $space1 $space2 $space3
|
|
|
|
|
|
|
|
echo '### parset with newlines'
|
|
|
|
parset 'newline3 newline2 newline1' seq ::: 3 2 1
|
2024-01-21 06:53:12 +00:00
|
|
|
echo 1 1 2 1 2 3
|
2023-05-06 21:42:36 +00:00
|
|
|
echo "$newline1"
|
|
|
|
echo "$newline2"
|
|
|
|
echo "$newline3"
|
|
|
|
|
|
|
|
echo '### parset into indexed array vars'
|
|
|
|
parset 'myarray[6],myarray[5],myarray[4]' echo ::: baz bar foo
|
2024-01-21 06:53:12 +00:00
|
|
|
echo foo bar baz
|
2023-05-06 21:42:36 +00:00
|
|
|
echo ${myarray[*]}
|
2024-01-21 06:53:12 +00:00
|
|
|
echo foo bar bar
|
2023-05-06 21:42:36 +00:00
|
|
|
echo ${myarray[4]} ${myarray[5]} ${myarray[5]}
|
|
|
|
|
|
|
|
echo '### env_parset'
|
|
|
|
alias myecho='echo myecho "$myvar" "${myarr[1]}"'
|
|
|
|
myvar="myvar"
|
|
|
|
myarr=("myarr 0" "myarr 1" "myarr 2")
|
|
|
|
mynewline="`echo newline1;echo newline2;`"
|
|
|
|
env_parset arr1 myecho ::: foo bar baz
|
2024-01-21 06:53:12 +00:00
|
|
|
echo "myecho myvar myarr 1 foo myecho myvar myarr 1 bar myecho myvar myarr 1 baz"
|
2023-05-06 21:42:36 +00:00
|
|
|
echo "${arr1[0]} ${arr1[1]} ${arr1[2]}"
|
|
|
|
env_parset comma3,comma2,comma1 myecho ::: baz bar foo
|
2024-01-21 06:53:12 +00:00
|
|
|
echo "myecho myvar myarr 1 foo myecho myvar myarr 1 bar myecho myvar myarr 1 baz"
|
2023-05-06 21:42:36 +00:00
|
|
|
echo "$comma1 $comma2 $comma3"
|
|
|
|
env_parset 'space3 space2 space1' myecho ::: baz bar foo
|
2024-01-21 06:53:12 +00:00
|
|
|
echo "myecho myvar myarr 1 foo myecho myvar myarr 1 bar myecho myvar myarr 1 baz"
|
2023-05-06 21:42:36 +00:00
|
|
|
echo "$space1 $space2 $space3"
|
|
|
|
env_parset 'newline3 newline2 newline1' 'echo "$mynewline";seq' ::: 3 2 1
|
2024-01-21 06:53:12 +00:00
|
|
|
echo newline1 newline2 1 newline1 newline2 1 2 newline1 newline2 1 2 3
|
2023-05-06 21:42:36 +00:00
|
|
|
echo "$newline1"
|
|
|
|
echo "$newline2"
|
|
|
|
echo "$newline3"
|
|
|
|
env_parset 'myarray[6],myarray[5],myarray[4]' myecho ::: baz bar foo
|
2024-01-21 06:53:12 +00:00
|
|
|
echo "myecho myvar myarr 1 foo myecho myvar myarr 1 bar myecho myvar myarr 1 baz"
|
2023-05-06 21:42:36 +00:00
|
|
|
echo "${myarray[*]}"
|
2024-01-21 06:53:12 +00:00
|
|
|
echo "myecho myvar myarr 1 foo myecho myvar myarr 1 bar myecho myvar myarr 1 bar"
|
2023-05-06 21:42:36 +00:00
|
|
|
echo "${myarray[4]} ${myarray[5]} ${myarray[5]}"
|
|
|
|
|
|
|
|
echo 'bug #52507: parset arr1 -v echo ::: fails'
|
|
|
|
parset arr1 -v seq ::: 1 2 3
|
|
|
|
echo "${arr1[2]}"
|
|
|
|
) | replace_tmpdir
|
|
|
|
}
|
|
|
|
|
|
|
|
par__parset_assoc_arr() {
|
2021-07-11 14:59:27 +00:00
|
|
|
mytest=$(cat <<'EOF'
|
|
|
|
mytest() {
|
|
|
|
shell=`basename $SHELL`
|
|
|
|
echo 'parset into an assoc array'
|
|
|
|
. `which env_parallel.$shell`
|
|
|
|
parset "var1,var2 var3" echo ::: 'val 1' 'val 2' 'val 3'
|
|
|
|
echo "$var1 $var2 $var3"
|
|
|
|
parset array echo ::: 'val 1' 'val 2' 'val 3'
|
|
|
|
echo "${array[0]} ${array[1]} ${array[2]}"
|
|
|
|
typeset -A assoc
|
|
|
|
parset assoc echo ::: 'val 1' 'val 2' 'val 3'
|
|
|
|
echo "${assoc[val 1]} ${assoc[val 2]} ${assoc[val 3]}"
|
|
|
|
echo Bad var name
|
|
|
|
parset -badname echo ::: 'val 1' 'val 2' 'val 3'
|
|
|
|
echo Too few var names
|
|
|
|
parset v1,v2 echo ::: 'val 1' 'val 2' 'val 3'
|
|
|
|
echo "$v2"
|
|
|
|
echo Exit value
|
|
|
|
parset assoc exit ::: 1 0 0 1; echo $?
|
|
|
|
parset array exit ::: 1 0 0 1; echo $?
|
|
|
|
parset v1,v2,v3,v4 exit ::: 1 0 0 1; echo $?
|
|
|
|
echo Stderr to stderr
|
|
|
|
parset assoc ls ::: no-such-file
|
|
|
|
parset array ls ::: no-such-file
|
|
|
|
parset v1,v2 ls ::: no-such-file1 no-such-file2
|
|
|
|
}
|
|
|
|
EOF
|
|
|
|
)
|
|
|
|
parallel -k --tag --nonall -Sksh@lo,bash@lo,zsh@lo "$mytest;mytest 2>&1"
|
|
|
|
}
|
|
|
|
|
2021-04-22 16:20:41 +00:00
|
|
|
par_shebang() {
|
|
|
|
echo '### Test different shebangs'
|
|
|
|
gp() {
|
|
|
|
cat <<'EOF'
|
|
|
|
#!/usr/local/bin/parallel --shebang-wrap -k A={} /usr/bin/gnuplot
|
|
|
|
name=system("echo $A")
|
|
|
|
print name
|
|
|
|
EOF
|
|
|
|
true
|
|
|
|
}
|
|
|
|
oct() {
|
|
|
|
cat <<'EOF'
|
|
|
|
#!/usr/local/bin/parallel --shebang-wrap -k /usr/bin/octave -qf
|
|
|
|
arg_list = argv ();
|
|
|
|
filename = arg_list{1};
|
|
|
|
printf(filename);
|
|
|
|
printf("\n");
|
|
|
|
EOF
|
|
|
|
true
|
|
|
|
}
|
|
|
|
pl() {
|
|
|
|
cat <<'EOF'
|
|
|
|
#!/usr/local/bin/parallel --shebang-wrap -k /usr/bin/perl
|
|
|
|
print @ARGV,"\n";
|
|
|
|
EOF
|
|
|
|
true
|
|
|
|
}
|
|
|
|
py() {
|
|
|
|
cat <<'EOF'
|
|
|
|
#!/usr/local/bin/parallel --shebang-wrap -k /usr/bin/python3
|
|
|
|
import sys
|
|
|
|
print(str(sys.argv[1]))
|
|
|
|
EOF
|
|
|
|
true
|
|
|
|
}
|
|
|
|
r() {
|
|
|
|
cat <<'EOF'
|
|
|
|
#!/usr/local/bin/parallel --shebang-wrap -k /usr/bin/Rscript --vanilla --slave
|
|
|
|
options <- commandArgs(trailingOnly = TRUE)
|
|
|
|
options
|
|
|
|
EOF
|
|
|
|
true
|
|
|
|
}
|
|
|
|
rb() {
|
|
|
|
cat <<'EOF'
|
|
|
|
#!/usr/local/bin/parallel --shebang-wrap -k /usr/bin/ruby
|
|
|
|
p ARGV
|
|
|
|
EOF
|
|
|
|
true
|
|
|
|
}
|
|
|
|
sh() {
|
|
|
|
cat <<'EOF'
|
|
|
|
#!/usr/local/bin/parallel --shebang-wrap -k /bin/sh
|
|
|
|
echo "$@"
|
|
|
|
EOF
|
|
|
|
true
|
|
|
|
}
|
|
|
|
run() {
|
2022-05-22 08:36:45 +00:00
|
|
|
tmp=`mktemp`
|
2021-04-22 16:20:41 +00:00
|
|
|
"$@" > "$tmp"
|
|
|
|
chmod +x "$tmp"
|
|
|
|
"$tmp" A B C
|
|
|
|
rm "$tmp"
|
|
|
|
}
|
|
|
|
export -f run gp oct pl py r rb sh
|
|
|
|
|
2023-01-30 21:51:56 +00:00
|
|
|
parallel --tag -k run ::: gp oct pl py rb sh
|
|
|
|
# R fails if TMPDIR contains space
|
|
|
|
TMPDIR=/tmp
|
|
|
|
parallel --tag -k run ::: r
|
2021-04-22 16:20:41 +00:00
|
|
|
}
|
|
|
|
|
2021-03-23 21:11:02 +00:00
|
|
|
par_pipe_regexp() {
|
|
|
|
echo '### --pipe --regexp'
|
|
|
|
gen() {
|
|
|
|
cat <<EOF
|
|
|
|
A2, Start, 5
|
|
|
|
A2, 00100, 5
|
|
|
|
A2, 00200, 6
|
|
|
|
A2, 00300, 6
|
|
|
|
A2, Start, 7
|
|
|
|
A2, 00100, 7
|
|
|
|
A2, Start, 7
|
|
|
|
A2, 00200, 8
|
|
|
|
EOF
|
|
|
|
true
|
|
|
|
}
|
|
|
|
p="parallel --pipe --regexp -k"
|
|
|
|
gen | $p --recstart 'A\d+, Start' -N1 'echo Record;cat'
|
|
|
|
gen | $p --recstart '[A-Z]\d+, Start' -N1 'echo Record;cat'
|
|
|
|
gen | $p --recstart '.*, Start' -N1 'echo Record;cat'
|
|
|
|
echo '### Prepend first record with garbage'
|
|
|
|
(echo Garbage; gen) |
|
|
|
|
$p --recstart 'A\d+, Start' -N1 'echo Record;cat'
|
|
|
|
(echo Garbage; gen) |
|
|
|
|
$p --recstart '[A-Z]\d+, Start' -N1 'echo Record;cat'
|
|
|
|
(echo Garbage; gen) |
|
|
|
|
$p --recstart '.*, Start' -N1 'echo Record;cat'
|
|
|
|
}
|
|
|
|
|
2021-04-22 16:20:41 +00:00
|
|
|
par_pipe_regexp_non_quoted() {
|
|
|
|
echo '### --pipe --regexp non_quoted \n'
|
|
|
|
gen() {
|
|
|
|
cat <<EOF
|
|
|
|
Start
|
|
|
|
foo
|
|
|
|
End
|
|
|
|
Start
|
|
|
|
Start this line is a false Start line
|
|
|
|
End this line is a false End line
|
|
|
|
End
|
|
|
|
EOF
|
|
|
|
true
|
|
|
|
}
|
|
|
|
p="ppar --pipe --regexp -k"
|
|
|
|
p="parallel --pipe --regexp -k"
|
|
|
|
gen | $p --recend '' --recstart '^Start$' -N1 'echo :::Single record;cat'
|
|
|
|
gen | $p --recend '' --recstart 'Start\n' -N1 'echo :::Single record;cat'
|
|
|
|
gen | $p --recend '' --recstart 'Start
|
|
|
|
' -N1 'echo :::Single record;cat'
|
|
|
|
|
|
|
|
gen | $p --recend 'End$' --recstart '' -N1 'echo :::Single record;cat'
|
|
|
|
gen | $p --recend 'End\n' --recstart '' -N1 'echo :::Single record;cat'
|
|
|
|
gen | $p --recend 'End
|
|
|
|
' --recstart '' -N1 'echo :::Single record;cat'
|
|
|
|
}
|
|
|
|
|
2021-01-17 11:19:57 +00:00
|
|
|
par_delay_halt_soon() {
|
|
|
|
echo "bug #59893: --halt soon doesn't work with --delay"
|
|
|
|
seq 0 10 |
|
|
|
|
stdout parallel --delay 1 -uj2 --halt soon,fail=1 'sleep 0.{};echo {};exit {}'
|
|
|
|
}
|
|
|
|
|
2020-12-30 12:42:02 +00:00
|
|
|
par_show_limits() {
|
|
|
|
echo '### Test --show-limits'
|
|
|
|
(
|
|
|
|
(echo b; echo c; echo f) | parallel -k --show-limits echo {}ar
|
|
|
|
(echo b; echo c; echo f) | parallel -j1 -kX --show-limits -s 100 echo {}ar
|
|
|
|
echo "### BUG: empty lines with --show-limit"
|
|
|
|
echo | stdout parallel --show-limits
|
2022-02-17 21:39:01 +00:00
|
|
|
) | perl -pe 's/(\d+)\d\d\d/${1}xxx/'
|
2020-12-30 12:42:02 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
par_test_delimiter() {
|
|
|
|
echo "### Test : as delimiter. This can be confusing for uptime ie. --load";
|
|
|
|
export PARALLEL="--load 300%"
|
|
|
|
parallel -k --load 300% -d : echo ::: a:b:c
|
|
|
|
}
|
|
|
|
|
2020-11-22 15:22:54 +00:00
|
|
|
par_10000_m_X() {
|
|
|
|
echo '### Test -m with 10000 args'
|
|
|
|
seq 10000 | perl -pe 's/$/.gif/' |
|
|
|
|
parallel -j1 -km echo a{}b{.}c{.} |
|
|
|
|
parallel -k --pipe --tee ::: wc md5sum
|
|
|
|
}
|
|
|
|
|
2023-05-06 21:42:36 +00:00
|
|
|
par__10000_5_rpl_X() {
|
2020-11-22 15:22:54 +00:00
|
|
|
echo '### Test -X with 10000 args and 5 replacement strings'
|
2023-05-06 21:42:36 +00:00
|
|
|
gen() {
|
|
|
|
seq 10000 | perl -pe 's/$/.gif/'
|
|
|
|
}
|
|
|
|
gen | parallel -j1 -kX echo a{}b{.}c{.}{.}{} | wc -l
|
|
|
|
gen | parallel -j1 -kX echo a{}b{.}c{.}{.} | wc -l
|
|
|
|
gen | parallel -j1 -kX echo a{}b{.}c{.} | wc -l
|
|
|
|
gen | parallel -j1 -kX echo a{}b{.}c | wc -l
|
|
|
|
gen | parallel -j1 -kX echo a{}b | wc -l
|
2020-11-22 15:22:54 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
par_X_I_meta() {
|
|
|
|
echo '### Test -X -I with shell meta chars'
|
|
|
|
seq 10000 | parallel -j1 -I :: -X echo a::b::c:: | wc -l
|
|
|
|
seq 10000 | parallel -j1 -I '<>' -X echo 'a<>b<>c<>' | wc -l
|
|
|
|
seq 10000 | parallel -j1 -I '<' -X echo 'a<b<c<' | wc -l
|
|
|
|
seq 10000 | parallel -j1 -I '>' -X echo 'a>b>c>' | wc -l
|
|
|
|
}
|
|
|
|
|
2020-10-22 19:47:01 +00:00
|
|
|
par_delay() {
|
|
|
|
echo "### Test --delay"
|
|
|
|
seq 9 | /usr/bin/time -f %e parallel -j3 --delay 0.57 true {} 2>&1 |
|
|
|
|
perl -ne '$_ > 3.3 and print "More than 3.3 secs: OK\n"'
|
|
|
|
}
|
|
|
|
|
|
|
|
par_sshdelay() {
|
|
|
|
echo '### test --sshdelay'
|
|
|
|
stdout /usr/bin/time -f %e parallel -j0 --sshdelay 0.5 -S localhost true ::: 1 2 3 |
|
|
|
|
perl -ne 'print($_ > 1.30 ? "OK\n" : "Not OK\n")'
|
|
|
|
}
|
|
|
|
|
2022-03-09 22:03:26 +00:00
|
|
|
par_plus_slot_replacement() {
|
|
|
|
echo '### show {slot} {0%} {0#}'
|
|
|
|
parallel -k --plus 'sleep 0.{%};echo {slot}=$PARALLEL_JOBSLOT={%}' ::: A B C
|
2024-01-04 22:27:21 +00:00
|
|
|
doit() {
|
|
|
|
parallel -j15 -k --plus "$@" ::: {1..100} | sort -u
|
|
|
|
}
|
|
|
|
export -f doit
|
|
|
|
parallel doit ::: 'echo Seq: {0#} {#} {seq-1}*2={seq*2-2}' \
|
|
|
|
'sleep 0.{}; echo Slot: {0%} {%}={slot-1}+1'
|
2020-10-22 19:47:01 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
par_replacement_slashslash() {
|
|
|
|
echo '### Test {//}'
|
|
|
|
parallel -k echo {//} {} ::: a a/b a/b/c
|
|
|
|
parallel -k echo {//} {} ::: /a /a/b /a/b/c
|
|
|
|
parallel -k echo {//} {} ::: ./a ./a/b ./a/b/c
|
|
|
|
parallel -k echo {//} {} ::: a.jpg a/b.jpg a/b/c.jpg
|
|
|
|
parallel -k echo {//} {} ::: /a.jpg /a/b.jpg /a/b/c.jpg
|
|
|
|
parallel -k echo {//} {} ::: ./a.jpg ./a/b.jpg ./a/b/c.jpg
|
|
|
|
|
|
|
|
echo '### Test {1//}'
|
|
|
|
parallel -k echo {1//} {} ::: a a/b a/b/c
|
|
|
|
parallel -k echo {1//} {} ::: /a /a/b /a/b/c
|
|
|
|
parallel -k echo {1//} {} ::: ./a ./a/b ./a/b/c
|
|
|
|
parallel -k echo {1//} {} ::: a.jpg a/b.jpg a/b/c.jpg
|
|
|
|
parallel -k echo {1//} {} ::: /a.jpg /a/b.jpg /a/b/c.jpg
|
|
|
|
parallel -k echo {1//} {} ::: ./a.jpg ./a/b.jpg ./a/b/c.jpg
|
|
|
|
}
|
|
|
|
|
2020-08-22 23:31:39 +00:00
|
|
|
par_eta() {
|
|
|
|
echo '### Test of --eta'
|
|
|
|
seq 1 10 | stdout parallel --eta "sleep 1; echo {}" | wc -l
|
|
|
|
|
|
|
|
echo '### Test of --eta with no jobs'
|
2023-07-21 02:33:22 +00:00
|
|
|
stdout parallel --eta "sleep 1; echo {}" < /dev/null |
|
|
|
|
perl -pe 's,1:local / \d / \d,1:local / 9 / 9,'
|
2020-08-22 23:31:39 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
par_progress() {
|
|
|
|
echo '### Test of --progress'
|
|
|
|
seq 1 10 | stdout parallel --progress "sleep 1; echo {}" | wc -l
|
|
|
|
|
|
|
|
echo '### Test of --progress with no jobs'
|
2023-07-21 02:33:22 +00:00
|
|
|
stdout parallel --progress "sleep 1; echo {}" < /dev/null |
|
|
|
|
perl -pe 's,1:local / \d / \d,1:local / 9 / 9,'
|
2020-08-22 23:31:39 +00:00
|
|
|
}
|
|
|
|
|
2019-10-02 19:35:02 +00:00
|
|
|
par_tee_with_premature_close() {
|
|
|
|
echo '--tee --pipe should send all data to all commands'
|
|
|
|
echo 'even if a command closes stdin before reading everything'
|
2019-11-23 21:14:03 +00:00
|
|
|
echo 'tee with --output-error=warn-nopipe support'
|
2020-01-09 13:37:41 +00:00
|
|
|
correct="$(seq 1000000 | parallel -k --tee --pipe ::: wc head tail 'sleep 1')"
|
|
|
|
echo "$correct"
|
2019-11-23 21:14:03 +00:00
|
|
|
echo 'tee without --output-error=warn-nopipe support'
|
2023-01-30 21:51:56 +00:00
|
|
|
tmpdir=$(mktemp -d)
|
|
|
|
cat > "$tmpdir"/tee <<-EOF
|
2019-10-02 19:35:02 +00:00
|
|
|
#!/usr/bin/perl
|
|
|
|
|
|
|
|
if(grep /output-error=warn-nopipe/, @ARGV) {
|
|
|
|
exit(1);
|
|
|
|
}
|
|
|
|
exec "/usr/bin/tee", @ARGV;
|
|
|
|
EOF
|
2023-01-30 21:51:56 +00:00
|
|
|
chmod +x "$tmpdir"/tee
|
|
|
|
PATH="$tmpdir":$PATH
|
2019-10-02 19:35:02 +00:00
|
|
|
# This gives incomplete output due to:
|
|
|
|
# * tee not supporting --output-error=warn-nopipe
|
|
|
|
# * sleep closes stdin before EOF
|
2019-11-23 21:14:03 +00:00
|
|
|
# Depending on tee it may provide partial output or no output
|
2020-01-09 13:37:41 +00:00
|
|
|
wrong="$(seq 1000000 | parallel -k --tee --pipe ::: wc head tail 'sleep 1')"
|
|
|
|
if diff <(echo "$correct") <(echo "$wrong") >/dev/null; then
|
|
|
|
echo Wrong: They should not give the same output
|
|
|
|
else
|
|
|
|
echo OK
|
|
|
|
fi
|
2023-01-30 21:51:56 +00:00
|
|
|
rm "$tmpdir"/tee
|
|
|
|
rmdir "$tmpdir"
|
2019-10-02 19:35:02 +00:00
|
|
|
}
|
|
|
|
|
2019-05-05 23:06:48 +00:00
|
|
|
par_maxargs() {
|
|
|
|
echo '### Test -n and --max-args: Max number of args per line (only with -X and -m)'
|
|
|
|
|
|
|
|
(echo line 1;echo line 2;echo line 3) | parallel -k -n1 -m echo
|
|
|
|
(echo line 1;echo line 1;echo line 2) | parallel -k -n2 -m echo
|
|
|
|
(echo line 1;echo line 2;echo line 3) | parallel -k -n1 -X echo
|
|
|
|
(echo line 1;echo line 1;echo line 2) | parallel -k -n2 -X echo
|
|
|
|
(echo line 1;echo line 2;echo line 3) | parallel -k -n1 echo
|
|
|
|
(echo line 1;echo line 1;echo line 2) | parallel -k -n2 echo
|
|
|
|
(echo line 1;echo line 2;echo line 3) | parallel -k --max-args=1 -X echo
|
|
|
|
(echo line 1;echo line 2;echo line 3) | parallel -k --max-args 1 -X echo
|
|
|
|
(echo line 1;echo line 1;echo line 2) | parallel -k --max-args=2 -X echo
|
|
|
|
(echo line 1;echo line 1;echo line 2) | parallel -k --max-args 2 -X echo
|
|
|
|
(echo line 1;echo line 2;echo line 3) | parallel -k --max-args 1 echo
|
|
|
|
(echo line 1;echo line 1;echo line 2) | parallel -k --max-args 2 echo
|
|
|
|
}
|
|
|
|
|
|
|
|
par_jobslot_repl() {
|
|
|
|
echo 'bug #46232: {%} with --bar/--eta/--shuf or --halt xx% broken'
|
|
|
|
|
2021-10-03 18:31:55 +00:00
|
|
|
parallel -kj2 --delay 0.1 --bar 'sleep 0.2;echo {%}' ::: a b ::: c d e 2>/dev/null
|
|
|
|
parallel -kj2 --delay 0.1 --eta 'sleep 0.2;echo {%}' ::: a b ::: c d e 2>/dev/null
|
|
|
|
parallel -kj2 --delay 0.1 --shuf 'sleep 0.2;echo {%}' ::: a b ::: c d e 2>/dev/null
|
|
|
|
parallel -kj2 --delay 0.1 --halt now,fail=10% 'sleep 0.2;echo {%}' ::: a b ::: c d e
|
2019-05-05 23:06:48 +00:00
|
|
|
|
|
|
|
echo 'bug #46231: {%} with --pipepart broken. Should give 1+2'
|
|
|
|
|
|
|
|
seq 10000 > /tmp/num10000
|
2023-05-06 21:42:36 +00:00
|
|
|
parallel -k --pipepart -ka /tmp/num10000 --block 10k -j2 --delay 0.1 'sleep 0.2; echo {%}'
|
2019-05-05 23:06:48 +00:00
|
|
|
rm /tmp/num10000
|
|
|
|
}
|
|
|
|
|
|
|
|
par_distribute_args_at_EOF() {
|
|
|
|
echo '### Test distribute arguments at EOF to 2 jobslots'
|
|
|
|
seq 1 92 | parallel -j2 -kX -s 100 echo
|
|
|
|
|
|
|
|
echo '### Test distribute arguments at EOF to 5 jobslots'
|
|
|
|
seq 1 92 | parallel -j5 -kX -s 100 echo
|
|
|
|
|
|
|
|
echo '### Test distribute arguments at EOF to infinity jobslots'
|
|
|
|
seq 1 92 | parallel -j0 -kX -s 100 echo 2>/dev/null
|
|
|
|
|
|
|
|
echo '### Test -N is not broken by distribution - single line'
|
|
|
|
seq 9 | parallel -N 10 echo
|
|
|
|
|
|
|
|
echo '### Test -N is not broken by distribution - two lines'
|
|
|
|
seq 19 | parallel -k -N 10 echo
|
|
|
|
}
|
|
|
|
|
|
|
|
par_test_X_with_multiple_source() {
|
|
|
|
echo '### Test {} multiple times in different commands'
|
|
|
|
|
|
|
|
seq 10 | parallel -v -Xj1 echo {} \; echo {}
|
|
|
|
|
|
|
|
echo '### Test of -X {1}-{2} with multiple input sources'
|
|
|
|
|
|
|
|
parallel -j1 -kX echo {1}-{2} ::: a ::: b
|
|
|
|
parallel -j2 -kX echo {1}-{2} ::: a b ::: c d
|
|
|
|
parallel -j2 -kX echo {1}-{2} ::: a b c ::: d e f
|
|
|
|
parallel -j0 -kX echo {1}-{2} ::: a b c ::: d e f
|
|
|
|
|
|
|
|
echo '### Test of -X {}-{.} with multiple input sources'
|
|
|
|
|
|
|
|
parallel -j1 -kX echo {}-{.} ::: a ::: b
|
|
|
|
parallel -j2 -kX echo {}-{.} ::: a b ::: c d
|
|
|
|
parallel -j2 -kX echo {}-{.} ::: a b c ::: d e f
|
|
|
|
parallel -j0 -kX echo {}-{.} ::: a b c ::: d e f
|
|
|
|
}
|
|
|
|
|
2016-12-14 14:04:57 +00:00
|
|
|
par_slow_args_generation() {
|
|
|
|
echo '### Test slow arguments generation - https://savannah.gnu.org/bugs/?32834'
|
|
|
|
seq 1 3 | parallel -j1 "sleep 2; echo {}" | parallel -kj2 echo
|
|
|
|
}
|
|
|
|
|
2019-03-17 22:07:32 +00:00
|
|
|
par_kill_term() {
|
|
|
|
echo '### Are children killed if GNU Parallel receives TERM? There should be no sleep at the end'
|
2016-12-14 14:04:57 +00:00
|
|
|
|
|
|
|
parallel -q bash -c 'sleep 120 & pid=$!; wait $pid' ::: 1 &
|
|
|
|
T=$!
|
|
|
|
sleep 5
|
|
|
|
pstree $$
|
|
|
|
kill -TERM $T
|
|
|
|
sleep 1
|
|
|
|
pstree $$
|
2019-03-17 22:07:32 +00:00
|
|
|
}
|
|
|
|
|
2016-12-14 14:04:57 +00:00
|
|
|
par_kill_int_twice() {
|
|
|
|
echo '### Are children killed if GNU Parallel receives INT twice? There should be no sleep at the end'
|
|
|
|
|
|
|
|
parallel -q bash -c 'sleep 120 & pid=$!; wait $pid' ::: 1 &
|
|
|
|
T=$!
|
|
|
|
sleep 5
|
|
|
|
pstree $$
|
|
|
|
kill -INT $T
|
|
|
|
sleep 1
|
|
|
|
pstree $$
|
|
|
|
}
|
|
|
|
|
|
|
|
par_children_receive_sig() {
|
|
|
|
echo '### Do children receive --termseq signals'
|
|
|
|
|
|
|
|
show_signals() {
|
|
|
|
perl -e 'for(keys %SIG) { $SIG{$_} = eval "sub { print STDERR \"Got $_\\n\"; }";} while(1){sleep 1}';
|
|
|
|
}
|
|
|
|
export -f show_signals
|
|
|
|
echo | stdout parallel --termseq TERM,200,TERM,100,TERM,50,KILL,25 -u \
|
2018-02-22 19:43:33 +00:00
|
|
|
--timeout 1s show_signals
|
2016-12-14 14:04:57 +00:00
|
|
|
|
|
|
|
echo | stdout parallel --termseq INT,200,TERM,100,KILL,25 -u \
|
2018-02-22 19:43:33 +00:00
|
|
|
--timeout 1s show_signals
|
2016-12-14 14:04:57 +00:00
|
|
|
sleep 3
|
|
|
|
}
|
|
|
|
|
|
|
|
par_wrong_slot_rpl_resume() {
|
|
|
|
echo '### bug #47644: Wrong slot number replacement when resuming'
|
|
|
|
seq 0 20 |
|
2021-10-03 18:31:55 +00:00
|
|
|
parallel -kj 4 --delay 0.2 --joblog /tmp/parallel-bug-47558 \
|
|
|
|
'sleep 1; echo {%} {=$_==10 and exit =}'
|
2016-12-14 14:04:57 +00:00
|
|
|
seq 0 20 |
|
2021-10-03 18:31:55 +00:00
|
|
|
parallel -kj 4 --resume --delay 0.2 --joblog /tmp/parallel-bug-47558 \
|
|
|
|
'sleep 1; echo {%} {=$_==110 and exit =}'
|
2016-12-14 14:04:57 +00:00
|
|
|
}
|
|
|
|
|
2017-04-17 14:25:58 +00:00
|
|
|
par_multiline_commands() {
|
|
|
|
echo 'bug #50781: joblog format with multiline commands'
|
2018-01-03 08:03:16 +00:00
|
|
|
rm -f /tmp/jl.$$
|
2018-03-21 21:57:28 +00:00
|
|
|
parallel --jl /tmp/jl.$$ --timeout 2s 'sleep {}; echo {};
|
|
|
|
echo finish {}' ::: 1 2 4
|
|
|
|
parallel --jl /tmp/jl.$$ --timeout 5s --retry-failed 'sleep {}; echo {};
|
|
|
|
echo finish {}' ::: 1 2 4
|
2018-01-03 08:03:16 +00:00
|
|
|
rm -f /tmp/jl.$$
|
2017-04-17 14:25:58 +00:00
|
|
|
}
|
|
|
|
|
2017-06-22 11:35:58 +00:00
|
|
|
par_sqlworker_hostname() {
|
|
|
|
echo 'bug #50901: --sqlworker should use hostname in the joblog instead of :'
|
2023-07-21 02:33:22 +00:00
|
|
|
# Something like:
|
|
|
|
# :mysqlunittest mysql://tange:tange@localhost/tange
|
2018-01-03 08:03:16 +00:00
|
|
|
MY=:mysqlunittest
|
|
|
|
parallel --sqlmaster $MY/hostname echo ::: 1 2 3
|
|
|
|
parallel -k --sqlworker $MY/hostname
|
2017-06-22 11:35:58 +00:00
|
|
|
hostname=`hostname`
|
2018-01-03 08:03:16 +00:00
|
|
|
sql $MY 'select host from hostname;' |
|
2017-06-22 11:35:58 +00:00
|
|
|
perl -pe "s/$hostname/<hostname>/g"
|
|
|
|
}
|
|
|
|
|
2018-02-22 19:43:33 +00:00
|
|
|
par_delay_human_readable() {
|
|
|
|
# Test that you can use d h m s in --delay
|
|
|
|
parallel --delay 0.1s echo ::: a b c
|
|
|
|
parallel --delay 0.01m echo ::: a b c
|
|
|
|
}
|
|
|
|
|
|
|
|
par_exitval_signal() {
|
|
|
|
echo '### Test --joblog with exitval and Test --joblog with signal -- timing dependent'
|
|
|
|
rm -f /tmp/parallel_sleep
|
2019-05-05 23:06:48 +00:00
|
|
|
rm -f mysleep
|
2018-02-22 19:43:33 +00:00
|
|
|
cp /bin/sleep mysleep
|
|
|
|
chmod +x mysleep
|
|
|
|
parallel --joblog /tmp/parallel_joblog_signal \
|
|
|
|
'./mysleep {}' ::: 30 2>/dev/null &
|
|
|
|
parallel --joblog /tmp/parallel_joblog_exitval \
|
|
|
|
'echo foo >/tmp/parallel_sleep; ./mysleep {} && echo sleep was not killed=BAD' ::: 30 2>/dev/null &
|
|
|
|
while [ ! -e /tmp/parallel_sleep ] ; do
|
|
|
|
sleep 1
|
|
|
|
done
|
|
|
|
sleep 1
|
|
|
|
killall -6 mysleep
|
|
|
|
wait
|
|
|
|
grep -q 134 /tmp/parallel_joblog_exitval && echo exitval=128+6 OK
|
|
|
|
grep -q '[^0-9]6[^0-9]' /tmp/parallel_joblog_signal && echo signal OK
|
2019-05-05 23:06:48 +00:00
|
|
|
|
2018-02-22 19:43:33 +00:00
|
|
|
rm -f /tmp/parallel_joblog_exitval /tmp/parallel_joblog_signal
|
|
|
|
}
|
|
|
|
|
2019-02-24 00:16:40 +00:00
|
|
|
par_lb_mem_usage() {
|
|
|
|
long_line() {
|
|
|
|
perl -e 'print "x"x100_000_000'
|
|
|
|
}
|
|
|
|
export -f long_line
|
|
|
|
memusage() {
|
|
|
|
round=$1
|
|
|
|
shift
|
|
|
|
/usr/bin/time -v "$@" 2>&1 >/dev/null |
|
|
|
|
perl -ne '/Maximum resident set size .kbytes.: (\d+)/ and print $1,"\n"' |
|
|
|
|
perl -pe '$_ = int($_/'$round')."\n"'
|
|
|
|
}
|
|
|
|
# 1 line - RAM usage 1 x 100 MB
|
|
|
|
memusage 100000 parallel --lb ::: long_line
|
|
|
|
# 2 lines - RAM usage 1 x 100 MB
|
|
|
|
memusage 100000 parallel --lb ::: 'long_line; echo; long_line'
|
|
|
|
# 1 double length line - RAM usage 2 x 100 MB
|
|
|
|
memusage 100000 parallel --lb ::: 'long_line; long_line'
|
|
|
|
}
|
|
|
|
|
2016-12-14 14:04:57 +00:00
|
|
|
export -f $(compgen -A function | grep par_)
|
2024-01-21 06:53:12 +00:00
|
|
|
compgen -A function | G par_ "$@" | LC_ALL=C sort |
|
2020-01-12 08:14:21 +00:00
|
|
|
parallel --timeout 1000% -j6 --tag -k --joblog /tmp/jl-`basename $0` '{} 2>&1'
|