mirror of
https://git.savannah.gnu.org/git/parallel.git
synced 2024-11-30 01:47:56 +00:00
dd1a637822
Fixed up Polarhome tests. Passes testsuite.
335 lines
5.4 KiB
Plaintext
335 lines
5.4 KiB
Plaintext
### Test --spreadstdin - more procs than args
|
|
1
|
|
2
|
|
3
|
|
4
|
|
5
|
|
### Test --spreadstdin - more args than procs
|
|
1
|
|
2
|
|
3
|
|
4
|
|
5
|
|
6
|
|
7
|
|
8
|
|
9
|
|
10
|
|
3893
|
|
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 -
|
|
### Test --number-of-cpus
|
|
1
|
|
### Test --number-of-cores
|
|
2
|
|
### Test --use-cpus-instead-of-cores
|
|
Cores should complete first on machines with less than 4 physical CPUs
|
|
cores done
|
|
CPUs done
|
|
### Test --tag ::: a ::: b
|
|
a b stdout-a b
|
|
a b stderr-a b
|
|
### Test --tag ::: a b
|
|
a stdout-a
|
|
a stderr-a
|
|
b stdout-b
|
|
b stderr-b
|
|
### Test --tag -X ::: a b
|
|
a b stdout-a stdout-b
|
|
a b stderr-a stderr-b
|
|
### Test bash redirection <()
|
|
a
|
|
b
|
|
### Test bug https://savannah.gnu.org/bugs/index.php?33352
|
|
# md5sum - directly
|
|
350eda13a37912d755c9d733d149bdaf -
|
|
# parallel | md5sum
|
|
350eda13a37912d755c9d733d149bdaf -
|
|
# --recend ''
|
|
350eda13a37912d755c9d733d149bdaf -
|
|
# --recend '' --files
|
|
350eda13a37912d755c9d733d149bdaf -
|
|
# --recend '' --files --tmpdir
|
|
350eda13a37912d755c9d733d149bdaf -
|
|
# --recend '' --files --halt-on-error
|
|
350eda13a37912d755c9d733d149bdaf -
|
|
### Test of -j filename - non-existent file
|
|
Usage:
|
|
parallel [options] [command [arguments]] < list_of_arguments
|
|
parallel [options] [command [arguments]] (::: arguments|:::: argfile(s))...
|
|
cat ... | parallel --pipe [options] [command [arguments]]
|
|
|
|
-j n Run n jobs in parallel
|
|
-k Keep same order
|
|
-X Multiple arguments with context replace
|
|
--colsep regexp Split input on regexp for positional replacements
|
|
{} {.} {/} {/.} {#} Replacement strings
|
|
{3} {3.} {3/} {3/.} Positional replacement strings
|
|
|
|
-S sshlogin Example: foo@server.example.com
|
|
--slf .. Use ~/.parallel/sshloginfile as the list of sshlogins
|
|
--trc {}.bar Shorthand for --transfer --return {}.bar --cleanup
|
|
--onall Run the given command with argument on all sshlogins
|
|
--nonall Run the given command with no arguments on all sshlogins
|
|
|
|
--pipe Split stdin (standard input) to multiple jobs.
|
|
--recend str Record end separator for --pipe.
|
|
--recstart str Record start separator for --pipe.
|
|
|
|
See 'man parallel' for details
|
|
|
|
When using GNU Parallel for a publication please cite:
|
|
|
|
O. Tange (2011): GNU Parallel - The Command-Line Power Tool,
|
|
;login: The USENIX Magazine, February 2011:42-47.
|
|
parallel: Error: Parsing of --jobs/-j/--max-procs/-P failed.
|
|
### Test of -j filename
|
|
sleep 6
|
|
sleep 8
|
|
sleep 10
|
|
sleep 5
|
|
sleep 4
|
|
### Test ::::
|
|
### Change --arg-file-sep
|
|
1 5
|
|
2 6
|
|
3 7
|
|
4 8
|
|
5 9
|
|
6 10
|
|
7 11
|
|
8 12
|
|
9 13
|
|
10 14
|
|
1 15
|
|
1 5
|
|
2 6
|
|
3 7
|
|
4 8
|
|
5 9
|
|
6 10
|
|
7 11
|
|
8 12
|
|
9 13
|
|
10 14
|
|
1 15
|
|
1 5
|
|
2 6
|
|
3 7
|
|
4 8
|
|
5 9
|
|
6 10
|
|
7 11
|
|
8 12
|
|
9 13
|
|
10 14
|
|
1 15
|
|
1 5
|
|
2 6
|
|
3 7
|
|
4 8
|
|
5 9
|
|
6 10
|
|
7 11
|
|
8 12
|
|
9 13
|
|
10 14
|
|
1 15
|
|
### Test xapply --max-replace-args
|
|
2 1 0
|
|
5 4 3
|
|
7 6
|
|
### Test -N
|
|
1 2 3
|
|
4 5
|
|
### Test -N with 0
|
|
0 1 2
|
|
3 4 5
|
|
6 7
|
|
### Test :::: on nonexistent
|
|
parallel: Error: Cannot open input file `nonexistent': No such file or directory.
|
|
### Test :::: two files
|
|
1 5
|
|
2 6
|
|
3 7
|
|
4 8
|
|
5 9
|
|
6 10
|
|
7 11
|
|
8 12
|
|
9 13
|
|
10 14
|
|
1 15
|
|
### Test -d, ::::
|
|
a1 5b
|
|
a2 6b
|
|
a3 7b
|
|
a
|
|
8
|
|
b
|
|
### Test -d, :::: one file too much
|
|
a1 5b
|
|
a2 6b
|
|
a3 7b
|
|
a
|
|
8
|
|
b
|
|
### Bug: did not quote
|
|
> b
|
|
### Quote test triplet 1
|
|
echo a
|
|
a
|
|
echo b
|
|
b
|
|
echo a
|
|
a
|
|
echo b
|
|
b
|
|
echo a
|
|
a
|
|
echo b
|
|
b
|
|
### Quote test triplet 2
|
|
echo echo\ a
|
|
echo a
|
|
echo echo\ b
|
|
echo b
|
|
echo echo\ a
|
|
echo a
|
|
echo echo\ b
|
|
echo b
|
|
echo echo\ a
|
|
echo a
|
|
echo echo\ b
|
|
echo b
|
|
### Quoting if there is a command and 2 arg files
|
|
echo echo\ a echo\ b
|
|
echo a echo b
|
|
### Quoting if there is a command and 2 arg files of uneven length
|
|
echo echo\ a echo\ b
|
|
echo a echo b
|
|
echo a1 echo\ b
|
|
a1 echo b
|
|
### Quoting if there is no command and 2 arg files
|
|
echo a echo b
|
|
a echo b
|
|
### Quoting if there is no command and 2 arg files of uneven length
|
|
echo a echo b
|
|
a echo b
|
|
echo a1 echo b
|
|
a1 echo b
|
|
### Test multiple -a
|
|
echo b a
|
|
b a
|
|
echo b a
|
|
b a
|
|
### Multiple -a: An unused file
|
|
echo b a
|
|
b a
|
|
echo b a
|
|
b a
|
|
### Multiple -a: nonexistent
|
|
parallel: Error: Cannot open input file `nonexist': No such file or directory.
|
|
parallel: Error: Cannot open input file `nonexist': No such file or directory.
|
|
### Test {#.}
|
|
echo c-ext b-withext a-noext
|
|
c-ext b-withext a-noext
|
|
### Tests that failed for OO-rewrite
|
|
1
|
|
2
|
|
3
|
|
4
|
|
5
|
|
6
|
|
7
|
|
8
|
|
9
|
|
10
|
|
done
|
|
a
|
|
a
|
|
a1b1^c1[.}c
|
|
### BUG: The length for -X is not close to max (131072)
|
|
1 12821 131060
|
|
### BUG: empty lines with --show-limit
|
|
Maximal size of command: 131071
|
|
Maximal used size of command: 131071
|
|
|
|
Execution of will continue now, and it will try to read its input
|
|
and run commands; if this is not what you wanted to happen, please
|
|
press CTRL-D or CTRL-C
|
|
### Test -N
|
|
1 2 3
|
|
4 5
|
|
### Test --arg-file-sep with files of different lengths
|
|
1 3
|
|
1 4
|
|
### Test respect -s
|
|
echo 1 22 333
|
|
1 22 333
|
|
echo 4444
|
|
4444
|
|
echo 55555
|
|
55555
|
|
echo 666666
|
|
666666
|
|
echo 7777777
|
|
7777777
|
|
echo 88888888
|
|
88888888
|
|
echo 999999999
|
|
999999999
|
|
### Test eof string after :::
|
|
foo
|
|
### Test -C and --trim rl
|
|
a_b_c_{4}
|
|
a_b_c_d
|
|
### Test empty input
|
|
### Test -m
|
|
1
|
|
2
|
|
### Test :::
|
|
1
|
|
### Test context_replace
|
|
'a'
|
|
### Test -N2 {2}
|
|
arg1:1 seq:1 arg2:2
|
|
arg1:3 seq:2 arg2:4
|
|
### Test -E (should only output foo ole)
|
|
foo ole
|
|
foo ole
|
|
### Test -r (should only output foo ole bar\nquux)
|
|
foo ole bar
|
|
quux
|
|
### Test of tab as colsep
|
|
abc def
|
|
ghi jkl
|
|
abc def
|
|
ghi jkl
|
|
### Test of -j filename with file content changing
|
|
sleep 3.3
|
|
sleep 1
|
|
sleep 1
|
|
sleep 1
|
|
sleep 1
|
|
sleep 1
|
|
sleep 1
|
|
sleep 1.5
|
|
sleep 1.5
|
|
sleep 1.5
|
|
sleep 1.5
|
|
sleep 1
|
|
sleep 1
|
|
sleep 1
|
|
sleep 1
|
|
sleep 1
|