mirror of
https://git.savannah.gnu.org/git/parallel.git
synced 2024-11-22 22:17:54 +00:00
252 lines
3.8 KiB
Plaintext
252 lines
3.8 KiB
Plaintext
### Test {.} and {}
|
||
### Test {.} with files that have no . but dir does
|
||
/tmp/test-of-{.}-parallel/subdir/file
|
||
/tmp/test-of-{.}-parallel/subdir/file{.}
|
||
ls 1-col.diff|wc;echo 1-col.diff
|
||
1 1 11
|
||
1-col.diff
|
||
ls 1-col.txt|wc;echo 1-col.txt
|
||
1 1 10
|
||
1-col.txt
|
||
ls 2-col.diff|wc;echo 2-col.diff
|
||
1 1 11
|
||
2-col.diff
|
||
ls 2-col.txt|wc;echo 2-col.txt
|
||
1 1 10
|
||
2-col.txt
|
||
ls a|wc;echo a
|
||
6 6 41
|
||
a
|
||
ls b|wc;echo b
|
||
4 4 26
|
||
b
|
||
ls \ä\¸\\å\›\½\ \(Zh\Å\<5C>nggu\Ã\³\)|wc;echo \ä\¸\\å\›\½\ \(Zh\Å\<5C>nggu\Ã\³\)
|
||
4 12 118
|
||
ä¸å›½ (ZhÅ<68>ngguó)
|
||
1 1-col.diff
|
||
1 1-col.txt
|
||
1 2-col.diff
|
||
1 2-col.txt
|
||
6 a
|
||
4 b
|
||
4 ä¸å›½ (ZhÅ<68>ngguó)
|
||
1 1-col.diff
|
||
1 1-col.txt
|
||
1 2-col.diff
|
||
1 2-col.txt
|
||
6 a
|
||
4 b
|
||
4 ä¸å›½ (ZhÅ<68>ngguó)
|
||
touch -- 1-col/abc-1-col-1-col
|
||
touch -- 1-col/abc-1-col-1-col.diff
|
||
touch -- 1-col/abc-1-col-1-col.txt
|
||
touch -- 2-col/abc-2-col-2-col
|
||
touch -- 2-col/abc-2-col-2-col.diff
|
||
touch -- 2-col/abc-2-col-2-col.txt
|
||
touch -- a/abc-a-a
|
||
touch -- b/abc-b-b
|
||
touch -- \ä\¸\\å\›\½\ \(Zh\Å\<5C>nggu\Ã\³\)/abc-\ä\¸\\å\›\½\ \(Zh\Å\<5C>nggu\Ã\³\)-\ä\¸\\å\›\½\ \(Zh\Å\<5C>nggu\Ã\³\)
|
||
rm -- 1-col/abc-1-col-1-col
|
||
rm -- 1-col/abc-1-col-1-col.diff
|
||
rm -- 1-col/abc-1-col-1-col.txt
|
||
rm -- 2-col/abc-2-col-2-col
|
||
rm -- 2-col/abc-2-col-2-col.diff
|
||
rm -- 2-col/abc-2-col-2-col.txt
|
||
rm -- a/abc-a-a
|
||
rm -- b/abc-b-b
|
||
rm -- \ä\¸\\å\›\½\ \(Zh\Å\<5C>nggu\Ã\³\)/abc-\ä\¸\\å\›\½\ \(Zh\Å\<5C>nggu\Ã\³\)-\ä\¸\\å\›\½\ \(Zh\Å\<5C>nggu\Ã\³\)
|
||
### Test compress
|
||
1 1
|
||
2 1
|
||
2 2
|
||
3 1
|
||
3 2
|
||
3 3
|
||
4 1
|
||
4 2
|
||
4 3
|
||
4 4
|
||
5 1
|
||
5 2
|
||
5 3
|
||
5 4
|
||
5 5
|
||
### Test compress - stderr
|
||
1 1
|
||
2 1
|
||
2 2
|
||
3 1
|
||
3 2
|
||
3 3
|
||
4 1
|
||
4 2
|
||
4 3
|
||
4 4
|
||
5 1
|
||
5 2
|
||
5 3
|
||
5 4
|
||
5 5
|
||
### Test weird regexp chars
|
||
a1b1^c1[.}c a2b2^c2[.}c a3b3^c3[.}c a4b4^c4[.}c a5b5^c5[.}c a6b6^c6[.}c
|
||
### Test -m
|
||
1foo bar joe.gif2foo bar joe3 Afoo bar joeBfoo bar joeC
|
||
1foo2foo3 1bar2bar3 1joe.gif2joe3 AfooBfooC AbarBbarC AjoeBjoeC
|
||
a1.gif 2.gif 3.gif 4.gif 5.gif 6.gifb1 2 3 4 5 6c1 2 3 4 5 6
|
||
a1.gifb1c1 a2.gifb2c2 a3.gifb3c3 a4.gifb4c4 a5.gifb5c5 a6.gifb6c6
|
||
### Test -m with 60000 args
|
||
cded9cd15e00550b08e57afc0172caa8 -
|
||
12 180000 1286718
|
||
### Test -X with 60000 args
|
||
12de4813eda45d364a51bef697eee299 -
|
||
13 120000 1586682
|
||
### Test -X with 60000 args and 5 expansions
|
||
19
|
||
15
|
||
13
|
||
10
|
||
7
|
||
### Test {.} does not repeat more than {}
|
||
a1.gifb1c1 abc a2.gifb2c2 abc a3.gifb3c3 abc a4.gifb4c4 abc a5.gifb5c5 abc
|
||
a6.gifb6c6 abc a7.gifb7c7 abc a8.gifb8c8 abc a9.gifb9c9 abc a10.gifb10c10
|
||
abc a11.gifb11c11 abc a12.gifb12c12 abc a13.gifb13c13 abc a14.gifb14c14
|
||
abc a15.gifb15c15 abc
|
||
a1.gif 2.gif 3.gif 4.gif 5.gif b1 2 3 4 5 c1 2 3 4 5
|
||
a6.gif 7.gif 8.gif 9.gif 10.gif b6 7 8 9 10 c6 7 8 9 10
|
||
a11.gif 12.gif 13.gif 14.gif b11 12 13 14 c11 12 13 14
|
||
a15.gif b15 c15
|
||
a1.gifb1c1 a2.gifb2c2 a3.gifb3c3 a4.gifb4c4 a5.gifb5c5 a6.gifb6c6
|
||
a7.gifb7c7 a8.gifb8c8 a9.gifb9c9 a10.gifb10c10 a11.gifb11c11 a12.gifb12c12
|
||
a13.gifb13c13 a14.gifb14c14 a15.gifb15c15
|
||
a1.gif 2.gif 3.gif 4.gif 5.gif 6.gif 7.gifb1 2 3 4 5 6 7c1 2 3 4 5 6 7
|
||
a8.gif 9.gif 10.gif 11.gif 12.gif 13.gifb8 9 10 11 12 13c8 9 10 11 12 13
|
||
a14.gif 15.gifb14 15c14 15
|
||
### Test -I with shell meta chars
|
||
9
|
||
9
|
||
9
|
||
9
|
||
### Test {.}
|
||
'a'
|
||
'a'
|
||
begin
|
||
1
|
||
2
|
||
3
|
||
4
|
||
5
|
||
6
|
||
7
|
||
8
|
||
9
|
||
10
|
||
11
|
||
12
|
||
13
|
||
14
|
||
15
|
||
16
|
||
17
|
||
18
|
||
19
|
||
20
|
||
21
|
||
22
|
||
23
|
||
24
|
||
25
|
||
26
|
||
27
|
||
28
|
||
29
|
||
30
|
||
end
|
||
### Test -I with -X and -m
|
||
1 1
|
||
2 1
|
||
2 2
|
||
3 1
|
||
3 2
|
||
3 3
|
||
4 1
|
||
4 2
|
||
4 3
|
||
4 4
|
||
5 1
|
||
5 2
|
||
5 3
|
||
5 4
|
||
5 5
|
||
6 1
|
||
6 2
|
||
6 3
|
||
6 4
|
||
6 5
|
||
6 6
|
||
7 1
|
||
7 2
|
||
7 3
|
||
7 4
|
||
7 5
|
||
7 6
|
||
7 7
|
||
8 1
|
||
8 2
|
||
8 3
|
||
8 4
|
||
8 5
|
||
8 6
|
||
8 7
|
||
8 8
|
||
9 1
|
||
9 2
|
||
9 3
|
||
9 4
|
||
9 5
|
||
9 6
|
||
9 7
|
||
9 8
|
||
9 9
|
||
10 1
|
||
10 2
|
||
10 3
|
||
10 4
|
||
10 5
|
||
10 6
|
||
10 7
|
||
10 8
|
||
10 9
|
||
10 10
|
||
a1 b1
|
||
a2 b1 b2
|
||
a3 b1 b2 b3
|
||
a4 b1 b2 b3 b4
|
||
a5 b1 b2 b3 b4 b5
|
||
a6 b1 b2 b3 b4 b5 b6
|
||
a7 b1 b2 b3 b4 b5 b6 b7
|
||
a8 b1 b2 b3 b4 b5 b6 b7 b8
|
||
a9 b1 b2 b3 b4 b5 b6 b7 b8 b9
|
||
a10 b1 b2 b3 b4 b5 b6 b7 b8 b9 b10
|
||
a1 b1
|
||
a2 b1 2
|
||
a3 b1 2 3
|
||
a4 b1 2 3 4
|
||
a5 b1 2 3 4 5
|
||
a6 b1 2 3 4 5 6
|
||
a7 b1 2 3 4 5 6 7
|
||
a8 b1 2 3 4 5 6 7 8
|
||
a9 b1 2 3 4 5 6 7 8 9
|
||
a10 b1 2 3 4 5 6 7 8 9 10
|
||
### Test -i
|
||
replace
|
||
### Test --replace
|
||
replace
|
||
### Test -t
|
||
echo bar
|
||
echo car
|
||
echo far
|
||
### Test --verbose
|
||
echo bar
|
||
echo car
|
||
echo far
|