Move some more cases to regtest v2 (#474)

* move more cases to regtest-v2 framework
* fix platform-dependent invocations in REPL regtest cases
* fix a failing-on-Windows case
* reg-test/cases-pending-windows/repl/README.txt
* defer a failing-on-Windows suite
This commit is contained in:
John Kerl 2021-04-04 16:23:13 +01:00 committed by GitHub
parent 149f24dc5a
commit 2c810e6971
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
1481 changed files with 5922 additions and 7920 deletions

View file

@ -0,0 +1 @@
mlr --from reg-test/input/s.dkvp put 'NR == 2 { $z = 100 }'

View file

@ -0,0 +1,4 @@
a=pan,b=pan,i=1,x=0.3467901443380824,y=0.7268028627434533
a=eks,b=pan,i=2,x=0.7586799647899636,y=0.5221511083334797,z=100
a=wye,b=wye,i=3,x=0.20460330576630303,y=0.33831852551664776
a=eks,b=wye,i=4,x=0.38139939387114097,y=0.13418874328430463

View file

@ -0,0 +1 @@
mlr --from reg-test/input/s.dkvp put 'NR != 2 { $z = 100 }'

View file

@ -0,0 +1,4 @@
a=pan,b=pan,i=1,x=0.3467901443380824,y=0.7268028627434533,z=100
a=eks,b=pan,i=2,x=0.7586799647899636,y=0.5221511083334797
a=wye,b=wye,i=3,x=0.20460330576630303,y=0.33831852551664776,z=100
a=eks,b=wye,i=4,x=0.38139939387114097,y=0.13418874328430463,z=100

View file

@ -0,0 +1 @@
mlr --opprint put ' $x > 0.5; $z = "flag"' reg-test/input/abixy

View file

@ -0,0 +1,11 @@
a b i x y z
pan pan 1 0.3467901443380824 0.7268028627434533 flag
eks pan 2 0.7586799647899636 0.5221511083334797 flag
wye wye 3 0.20460330576630303 0.33831852551664776 flag
eks wye 4 0.38139939387114097 0.13418874328430463 flag
wye pan 5 0.5732889198020006 0.8636244699032729 flag
zee pan 6 0.5271261600918548 0.49322128674835697 flag
eks zee 7 0.6117840605678454 0.1878849191181694 flag
zee wye 8 0.5985540091064224 0.976181385699006 flag
hat wye 9 0.03144187646093577 0.7495507603507059 flag
pan wye 10 0.5026260055412137 0.9526183602969864 flag

View file

@ -0,0 +1 @@
mlr --opprint put ' !($x > 0.5); $z = "flag"' reg-test/input/abixy

View file

@ -0,0 +1,11 @@
a b i x y z
pan pan 1 0.3467901443380824 0.7268028627434533 flag
eks pan 2 0.7586799647899636 0.5221511083334797 flag
wye wye 3 0.20460330576630303 0.33831852551664776 flag
eks wye 4 0.38139939387114097 0.13418874328430463 flag
wye pan 5 0.5732889198020006 0.8636244699032729 flag
zee pan 6 0.5271261600918548 0.49322128674835697 flag
eks zee 7 0.6117840605678454 0.1878849191181694 flag
zee wye 8 0.5985540091064224 0.976181385699006 flag
hat wye 9 0.03144187646093577 0.7495507603507059 flag
pan wye 10 0.5026260055412137 0.9526183602969864 flag

View file

@ -0,0 +1 @@
mlr --opprint put 'filter $x > 0.5; $z = "flag"' reg-test/input/abixy

View file

@ -0,0 +1,7 @@
a b i x y z
eks pan 2 0.7586799647899636 0.5221511083334797 flag
wye pan 5 0.5732889198020006 0.8636244699032729 flag
zee pan 6 0.5271261600918548 0.49322128674835697 flag
eks zee 7 0.6117840605678454 0.1878849191181694 flag
zee wye 8 0.5985540091064224 0.976181385699006 flag
pan wye 10 0.5026260055412137 0.9526183602969864 flag

View file

@ -0,0 +1 @@
mlr --opprint put ' $x > 0.5 {$z = "flag"}' reg-test/input/abixy

View file

@ -0,0 +1,21 @@
a b i x y
pan pan 1 0.3467901443380824 0.7268028627434533
a b i x y z
eks pan 2 0.7586799647899636 0.5221511083334797 flag
a b i x y
wye wye 3 0.20460330576630303 0.33831852551664776
eks wye 4 0.38139939387114097 0.13418874328430463
a b i x y z
wye pan 5 0.5732889198020006 0.8636244699032729 flag
zee pan 6 0.5271261600918548 0.49322128674835697 flag
eks zee 7 0.6117840605678454 0.1878849191181694 flag
zee wye 8 0.5985540091064224 0.976181385699006 flag
a b i x y
hat wye 9 0.03144187646093577 0.7495507603507059
a b i x y z
pan wye 10 0.5026260055412137 0.9526183602969864 flag

View file

@ -0,0 +1 @@
mlr --opprint put 'filter !($x > 0.5); $z = "flag"' reg-test/input/abixy

View file

@ -0,0 +1,5 @@
a b i x y z
pan pan 1 0.3467901443380824 0.7268028627434533 flag
wye wye 3 0.20460330576630303 0.33831852551664776 flag
eks wye 4 0.38139939387114097 0.13418874328430463 flag
hat wye 9 0.03144187646093577 0.7495507603507059 flag

View file

@ -0,0 +1 @@
mlr --opprint put ' !($x > 0.5) {$z = "flag"}' reg-test/input/abixy

View file

@ -0,0 +1,21 @@
a b i x y z
pan pan 1 0.3467901443380824 0.7268028627434533 flag
a b i x y
eks pan 2 0.7586799647899636 0.5221511083334797
a b i x y z
wye wye 3 0.20460330576630303 0.33831852551664776 flag
eks wye 4 0.38139939387114097 0.13418874328430463 flag
a b i x y
wye pan 5 0.5732889198020006 0.8636244699032729
zee pan 6 0.5271261600918548 0.49322128674835697
eks zee 7 0.6117840605678454 0.1878849191181694
zee wye 8 0.5985540091064224 0.976181385699006
a b i x y z
hat wye 9 0.03144187646093577 0.7495507603507059 flag
a b i x y
pan wye 10 0.5026260055412137 0.9526183602969864

View file

@ -0,0 +1 @@
mlr --opprint put '$y = sub($x, "e.*l", "")' reg-test/input/sub.dat

View file

@ -0,0 +1,5 @@
x y
hello ho
HELLO HELLO
world world
WORLD WORLD

View file

@ -0,0 +1 @@
mlr --opprint put '$y = sub($x, "e.*l"i, "")' reg-test/input/sub.dat

View file

@ -0,0 +1,5 @@
x y
hello ho
HELLO HO
world world
WORLD WORLD

View file

@ -0,0 +1 @@
mlr --opprint put '$y = sub($x, "e.*"."l", "")' reg-test/input/sub.dat

View file

@ -0,0 +1,5 @@
x y
hello ho
HELLO HELLO
world world
WORLD WORLD

View file

@ -0,0 +1 @@
mlr --opprint put '$y = sub($x, "e.*l", "y123y")' reg-test/input/sub.dat

View file

@ -0,0 +1,5 @@
x y
hello hy123yo
HELLO HELLO
world world
WORLD WORLD

View file

@ -0,0 +1 @@
mlr --opprint put '$y = sub($x, "e.*l"i, "y123y")' reg-test/input/sub.dat

View file

@ -0,0 +1,5 @@
x y
hello hy123yo
HELLO Hy123yO
world world
WORLD WORLD

View file

@ -0,0 +1 @@
mlr --opprint put '$y = sub($x, "e.*"."l", "y123y")' reg-test/input/sub.dat

View file

@ -0,0 +1,5 @@
x y
hello hy123yo
HELLO HELLO
world world
WORLD WORLD

View file

@ -0,0 +1 @@
mlr --opprint put '$y = sub($x, "([hg])e.*l(.)", "y\1y123\2y")' reg-test/input/sub.dat

View file

@ -0,0 +1,5 @@
x y
hello yhy123oy
HELLO HELLO
world world
WORLD WORLD

View file

@ -0,0 +1 @@
mlr --opprint put '$y = sub($x, "([hg])e.*l.", "y\1y123\2y")' reg-test/input/sub.dat

View file

@ -0,0 +1,5 @@
x y
hello yhy123y
HELLO HELLO
world world
WORLD WORLD

View file

@ -0,0 +1 @@
mlr --opprint put '$y = sub($x, "([hg])e.*l(.)", "y\1y123.y")' reg-test/input/sub.dat

View file

@ -0,0 +1,5 @@
x y
hello yhy123.y
HELLO HELLO
world world
WORLD WORLD

View file

@ -0,0 +1 @@
mlr --opprint put '$y = sub($x, "a", "aa")' reg-test/input/gsub.dat

View file

@ -0,0 +1,7 @@
x y
lmnop lmnop
abcdefg aabcdefg
ababbabbba aababbabbba
LMNOP LMNOP
ABCDEFG ABCDEFG
ABABBABBBA ABABBABBBA

View file

@ -0,0 +1 @@
mlr --opprint put '$y = gsub($x, "a", "aa")' reg-test/input/gsub.dat

View file

@ -0,0 +1,7 @@
x y
lmnop lmnop
abcdefg aabcdefg
ababbabbba aabaabbaabbbaa
LMNOP LMNOP
ABCDEFG ABCDEFG
ABABBABBBA ABABBABBBA

View file

@ -0,0 +1 @@
mlr --opprint put '$y = gsub($x, "A", "Aa")' reg-test/input/gsub.dat

View file

@ -0,0 +1,7 @@
x y
lmnop lmnop
abcdefg abcdefg
ababbabbba ababbabbba
LMNOP LMNOP
ABCDEFG AaBCDEFG
ABABBABBBA AaBAaBBAaBBBAa

View file

@ -0,0 +1 @@
mlr --opprint put '$y = gsub($x, "a"i, "Aa")' reg-test/input/gsub.dat

View file

@ -0,0 +1,7 @@
x y
lmnop lmnop
abcdefg Aabcdefg
ababbabbba AabAabbAabbbAa
LMNOP LMNOP
ABCDEFG AaBCDEFG
ABABBABBBA AaBAaBBAaBBBAa

View file

@ -0,0 +1 @@
mlr --opprint put '$y = gsub($x, "A"i, "Aa")' reg-test/input/gsub.dat

View file

@ -0,0 +1,7 @@
x y
lmnop lmnop
abcdefg Aabcdefg
ababbabbba AabAabbAabbbAa
LMNOP LMNOP
ABCDEFG AaBCDEFG
ABABBABBBA AaBAaBBAaBBBAa

View file

@ -0,0 +1 @@
mlr --opprint put '$y = gsub($x, "a(.)", "aa\1\1\1")' reg-test/input/gsub.dat

View file

@ -0,0 +1,7 @@
x y
lmnop lmnop
abcdefg aabbbcdefg
ababbabbba aabbbaabbbbaabbbbba
LMNOP LMNOP
ABCDEFG ABCDEFG
ABABBABBBA ABABBABBBA

View file

@ -0,0 +1 @@
mlr --opprint put '$y = sub($x, "a", "")' reg-test/input/gsub.dat

View file

@ -0,0 +1,7 @@
x y
lmnop lmnop
abcdefg bcdefg
ababbabbba babbabbba
LMNOP LMNOP
ABCDEFG ABCDEFG
ABABBABBBA ABABBABBBA

View file

@ -0,0 +1 @@
mlr --opprint put '$y = gsub($x, "a", "")' reg-test/input/gsub.dat

View file

@ -0,0 +1,7 @@
x y
lmnop lmnop
abcdefg bcdefg
ababbabbba bbbbbb
LMNOP LMNOP
ABCDEFG ABCDEFG
ABABBABBBA ABABBABBBA

View file

@ -0,0 +1 @@
mlr --opprint put '$y = gsub($x, "A", "")' reg-test/input/gsub.dat

View file

@ -0,0 +1,7 @@
x y
lmnop lmnop
abcdefg abcdefg
ababbabbba ababbabbba
LMNOP LMNOP
ABCDEFG BCDEFG
ABABBABBBA BBBBBB

View file

@ -0,0 +1 @@
mlr --opprint put '$y = gsub($x, "a"i, "")' reg-test/input/gsub.dat

View file

@ -0,0 +1,7 @@
x y
lmnop lmnop
abcdefg bcdefg
ababbabbba bbbbbb
LMNOP LMNOP
ABCDEFG BCDEFG
ABABBABBBA BBBBBB

View file

@ -0,0 +1 @@
mlr --opprint put '$y = gsub($x, "A"i, "")' reg-test/input/gsub.dat

View file

@ -0,0 +1,7 @@
x y
lmnop lmnop
abcdefg bcdefg
ababbabbba bbbbbb
LMNOP LMNOP
ABCDEFG BCDEFG
ABABBABBBA BBBBBB

View file

@ -0,0 +1 @@
mlr --oxtab cat reg-test/input/subtab.dkvp

View file

@ -0,0 +1,11 @@
x afoob
x a\tb
x a\\tb
x a b
z
x

View file

@ -0,0 +1 @@
mlr --oxtab put -f reg-test/input/subtab1.mlr reg-test/input/subtab.dkvp

View file

@ -0,0 +1,16 @@
x afoob
y afoob
x a\tb
y a\tb
x a\\tb
y a\\tb
x a b
y aTABb
z
x
y

View file

@ -0,0 +1 @@
mlr --oxtab put -f reg-test/input/subtab2.mlr reg-test/input/subtab.dkvp

View file

@ -0,0 +1,16 @@
x afoob
y afoob
x a\tb
y aTABb
x a\\tb
y a\TABb
x a b
y a b
z
x
y

View file

@ -0,0 +1 @@
mlr --oxtab put -f reg-test/input/subtab3.mlr reg-test/input/subtab.dkvp

View file

@ -0,0 +1,16 @@
x afoob
y afoob
x a\tb
y a\tb
x a\\tb
y a\\tb
x a b
y a b
z
x
y

View file

@ -0,0 +1 @@
mlr --oxtab put -f reg-test/input/subtab4.mlr reg-test/input/subtab.dkvp

View file

@ -0,0 +1,16 @@
x afoob
y afoob
x a\tb
y a b
x a\\tb
y a\ b
x a b
y a b
z
x
y

View file

@ -0,0 +1 @@
mlr --opprint put '$y = ssub($x, "HE", "")' reg-test/input/sub.dat

Some files were not shown because too many files have changed in this diff Show more