cram: Fixed MSYS2 expanding patterns as paths
This commit is contained in:
parent
8b62ac51b0
commit
d6b95f93b6
2 changed files with 29 additions and 28 deletions
|
@ -28,6 +28,7 @@ set(ENV{CRITERION_ALWAYS_SUCCEED} "1")
|
|||
set(ENV{CRITERION_SHORT_FILENAME} "1")
|
||||
set(ENV{CRITERION_JOBS} "1")
|
||||
set(ENV{CRITERION_DISABLE_TIME_MEASUREMENTS} "1")
|
||||
set(ENV{MSYS2_ARG_CONV_EXCL} "--filter=")
|
||||
|
||||
if (WIN32)
|
||||
if (ENV{MINGW} STREQUAL "")
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
Testing normal globs
|
||||
|
||||
$ simple.c.bin --filter '*/passing' --verbose
|
||||
$ simple.c.bin --filter='*/passing' --verbose
|
||||
[\x1b[0;34m----\x1b[0m] Criterion v2.2.1 (esc)
|
||||
[\x1b[0;34m====\x1b[0m] Running \x1b[0;34m2\x1b[0m tests from \x1b[0;33mmisc\x1b[0m: (esc)
|
||||
[\x1b[0;34mRUN \x1b[0m] misc::passing (esc)
|
||||
|
@ -8,7 +8,7 @@ Testing normal globs
|
|||
[\x1b[0;33mSKIP\x1b[0m] misc::failing: Test is disabled (esc)
|
||||
[\x1b[0;34m====\x1b[0m] \x1b[0;1mSynthesis: Tested: \x1b[0;34m1\x1b[0;1m | Passing: \x1b[0;32m1\x1b[0;1m | Failing: \x1b[0m0\x1b[0;1m | Crashing: \x1b[0m0\x1b[0;1m \x1b[0m (esc)
|
||||
|
||||
$ simple.c.bin --filter '*/pa?sing' --verbose
|
||||
$ simple.c.bin --filter='*/pa?sing' --verbose
|
||||
[\x1b[0;34m----\x1b[0m] Criterion v2.2.1 (esc)
|
||||
[\x1b[0;34m====\x1b[0m] Running \x1b[0;34m2\x1b[0m tests from \x1b[0;33mmisc\x1b[0m: (esc)
|
||||
[\x1b[0;34mRUN \x1b[0m] misc::passing (esc)
|
||||
|
@ -16,7 +16,7 @@ Testing normal globs
|
|||
[\x1b[0;33mSKIP\x1b[0m] misc::failing: Test is disabled (esc)
|
||||
[\x1b[0;34m====\x1b[0m] \x1b[0;1mSynthesis: Tested: \x1b[0;34m1\x1b[0;1m | Passing: \x1b[0;32m1\x1b[0;1m | Failing: \x1b[0m0\x1b[0;1m | Crashing: \x1b[0m0\x1b[0;1m \x1b[0m (esc)
|
||||
|
||||
$ simple.c.bin --filter 'misc/passing?' --verbose
|
||||
$ simple.c.bin --filter='misc/passing?' --verbose
|
||||
[\x1b[0;34m----\x1b[0m] Criterion v2.2.1 (esc)
|
||||
[\x1b[0;34m====\x1b[0m] Running \x1b[0;34m2\x1b[0m tests from \x1b[0;33mmisc\x1b[0m: (esc)
|
||||
[\x1b[0;34mRUN \x1b[0m] misc::passing (esc)
|
||||
|
@ -24,7 +24,7 @@ Testing normal globs
|
|||
[\x1b[0;33mSKIP\x1b[0m] misc::failing: Test is disabled (esc)
|
||||
[\x1b[0;34m====\x1b[0m] \x1b[0;1mSynthesis: Tested: \x1b[0;34m1\x1b[0;1m | Passing: \x1b[0;32m1\x1b[0;1m | Failing: \x1b[0m0\x1b[0;1m | Crashing: \x1b[0m0\x1b[0;1m \x1b[0m (esc)
|
||||
|
||||
$ simple.c.bin --filter 'misc/*' --verbose
|
||||
$ simple.c.bin --filter='misc/*' --verbose
|
||||
[\x1b[0;34m----\x1b[0m] Criterion v2.2.1 (esc)
|
||||
[\x1b[0;34m====\x1b[0m] Running \x1b[0;34m2\x1b[0m tests from \x1b[0;33mmisc\x1b[0m: (esc)
|
||||
[\x1b[0;34mRUN \x1b[0m] misc::failing (esc)
|
||||
|
@ -39,7 +39,7 @@ Testing normal globs
|
|||
|
||||
Testing character classes
|
||||
|
||||
$ simple.c.bin --filter 'misc/[pf]assing' --verbose
|
||||
$ simple.c.bin --filter='misc/[pf]assing' --verbose
|
||||
[\x1b[0;34m----\x1b[0m] Criterion v2.2.1 (esc)
|
||||
[\x1b[0;34m====\x1b[0m] Running \x1b[0;34m2\x1b[0m tests from \x1b[0;33mmisc\x1b[0m: (esc)
|
||||
[\x1b[0;34mRUN \x1b[0m] misc::passing (esc)
|
||||
|
@ -47,7 +47,7 @@ Testing character classes
|
|||
[\x1b[0;33mSKIP\x1b[0m] misc::failing: Test is disabled (esc)
|
||||
[\x1b[0;34m====\x1b[0m] \x1b[0;1mSynthesis: Tested: \x1b[0;34m1\x1b[0;1m | Passing: \x1b[0;32m1\x1b[0;1m | Failing: \x1b[0m0\x1b[0;1m | Crashing: \x1b[0m0\x1b[0;1m \x1b[0m (esc)
|
||||
|
||||
$ simple.c.bin --filter 'misc/[p-s]assing' --verbose
|
||||
$ simple.c.bin --filter='misc/[p-s]assing' --verbose
|
||||
[\x1b[0;34m----\x1b[0m] Criterion v2.2.1 (esc)
|
||||
[\x1b[0;34m====\x1b[0m] Running \x1b[0;34m2\x1b[0m tests from \x1b[0;33mmisc\x1b[0m: (esc)
|
||||
[\x1b[0;34mRUN \x1b[0m] misc::passing (esc)
|
||||
|
@ -55,14 +55,14 @@ Testing character classes
|
|||
[\x1b[0;33mSKIP\x1b[0m] misc::failing: Test is disabled (esc)
|
||||
[\x1b[0;34m====\x1b[0m] \x1b[0;1mSynthesis: Tested: \x1b[0;34m1\x1b[0;1m | Passing: \x1b[0;32m1\x1b[0;1m | Failing: \x1b[0m0\x1b[0;1m | Crashing: \x1b[0m0\x1b[0;1m \x1b[0m (esc)
|
||||
|
||||
$ simple.c.bin --filter 'misc/[!f]ailing' --verbose
|
||||
$ simple.c.bin --filter='misc/[!f]ailing' --verbose
|
||||
[\x1b[0;34m----\x1b[0m] Criterion v2.2.1 (esc)
|
||||
[\x1b[0;34m====\x1b[0m] Running \x1b[0;34m2\x1b[0m tests from \x1b[0;33mmisc\x1b[0m: (esc)
|
||||
[\x1b[0;33mSKIP\x1b[0m] misc::passing: Test is disabled (esc)
|
||||
[\x1b[0;33mSKIP\x1b[0m] misc::failing: Test is disabled (esc)
|
||||
[\x1b[0;34m====\x1b[0m] \x1b[0;1mSynthesis: Tested: \x1b[0;34m0\x1b[0;1m | Passing: \x1b[0;32m0\x1b[0;1m | Failing: \x1b[0m0\x1b[0;1m | Crashing: \x1b[0m0\x1b[0;1m \x1b[0m (esc)
|
||||
|
||||
$ simple.c.bin --filter 'misc/[p-f]ailing' --verbose
|
||||
$ simple.c.bin --filter='misc/[p-f]ailing' --verbose
|
||||
[\x1b[0;34m----\x1b[0m] Criterion v2.2.1 (esc)
|
||||
[\x1b[0;34m====\x1b[0m] Running \x1b[0;34m2\x1b[0m tests from \x1b[0;33mmisc\x1b[0m: (esc)
|
||||
[\x1b[0;34mRUN \x1b[0m] misc::failing (esc)
|
||||
|
@ -71,7 +71,7 @@ Testing character classes
|
|||
[\x1b[0;33mSKIP\x1b[0m] misc::passing: Test is disabled (esc)
|
||||
[\x1b[0;34m====\x1b[0m] \x1b[0;1mSynthesis: Tested: \x1b[0;34m1\x1b[0;1m | Passing: \x1b[0;32m0\x1b[0;1m | Failing: \x1b[0;31m1\x1b[0;1m | Crashing: \x1b[0m0\x1b[0;1m \x1b[0m (esc)
|
||||
|
||||
$ simple.c.bin --filter 'misc/[!azerty]assing' --verbose
|
||||
$ simple.c.bin --filter='misc/[!azerty]assing' --verbose
|
||||
[\x1b[0;34m----\x1b[0m] Criterion v2.2.1 (esc)
|
||||
[\x1b[0;34m====\x1b[0m] Running \x1b[0;34m2\x1b[0m tests from \x1b[0;33mmisc\x1b[0m: (esc)
|
||||
[\x1b[0;34mRUN \x1b[0m] misc::passing (esc)
|
||||
|
@ -85,7 +85,7 @@ Testing character classes
|
|||
|
||||
Testing extended globs
|
||||
|
||||
$ simple.c.bin --filter '!(*/passing)' --verbose
|
||||
$ simple.c.bin --filter='!(*/passing)' --verbose
|
||||
[\x1b[0;34m----\x1b[0m] Criterion v2.2.1 (esc)
|
||||
[\x1b[0;34m====\x1b[0m] Running \x1b[0;34m2\x1b[0m tests from \x1b[0;33mmisc\x1b[0m: (esc)
|
||||
[\x1b[0;34mRUN \x1b[0m] misc::failing (esc)
|
||||
|
@ -94,7 +94,7 @@ Testing extended globs
|
|||
[\x1b[0;33mSKIP\x1b[0m] misc::passing: Test is disabled (esc)
|
||||
[\x1b[0;34m====\x1b[0m] \x1b[0;1mSynthesis: Tested: \x1b[0;34m1\x1b[0;1m | Passing: \x1b[0;32m0\x1b[0;1m | Failing: \x1b[0;31m1\x1b[0;1m | Crashing: \x1b[0m0\x1b[0;1m \x1b[0m (esc)
|
||||
|
||||
$ simple.c.bin --filter '@(misc)/passing' --verbose
|
||||
$ simple.c.bin --filter='@(misc)/passing' --verbose
|
||||
[\x1b[0;34m----\x1b[0m] Criterion v2.2.1 (esc)
|
||||
[\x1b[0;34m====\x1b[0m] Running \x1b[0;34m2\x1b[0m tests from \x1b[0;33mmisc\x1b[0m: (esc)
|
||||
[\x1b[0;34mRUN \x1b[0m] misc::passing (esc)
|
||||
|
@ -103,7 +103,7 @@ Testing extended globs
|
|||
[\x1b[0;34m====\x1b[0m] \x1b[0;1mSynthesis: Tested: \x1b[0;34m1\x1b[0;1m | Passing: \x1b[0;32m1\x1b[0;1m | Failing: \x1b[0m0\x1b[0;1m | Crashing: \x1b[0m0\x1b[0;1m \x1b[0m (esc)
|
||||
|
||||
|
||||
$ simple.c.bin --filter '*(misc)/pa+(s)ing' --verbose
|
||||
$ simple.c.bin --filter='*(misc)/pa+(s)ing' --verbose
|
||||
[\x1b[0;34m----\x1b[0m] Criterion v2.2.1 (esc)
|
||||
[\x1b[0;34m====\x1b[0m] Running \x1b[0;34m2\x1b[0m tests from \x1b[0;33mmisc\x1b[0m: (esc)
|
||||
[\x1b[0;34mRUN \x1b[0m] misc::passing (esc)
|
||||
|
@ -112,7 +112,7 @@ Testing extended globs
|
|||
[\x1b[0;34m====\x1b[0m] \x1b[0;1mSynthesis: Tested: \x1b[0;34m1\x1b[0;1m | Passing: \x1b[0;32m1\x1b[0;1m | Failing: \x1b[0m0\x1b[0;1m | Crashing: \x1b[0m0\x1b[0;1m \x1b[0m (esc)
|
||||
|
||||
|
||||
$ simple.c.bin --filter 'misc/[pf]a@(ss|il)ing' --verbose
|
||||
$ simple.c.bin --filter='misc/[pf]a@(ss|il)ing' --verbose
|
||||
[\x1b[0;34m----\x1b[0m] Criterion v2.2.1 (esc)
|
||||
[\x1b[0;34m====\x1b[0m] Running \x1b[0;34m2\x1b[0m tests from \x1b[0;33mmisc\x1b[0m: (esc)
|
||||
[\x1b[0;34mRUN \x1b[0m] misc::failing (esc)
|
||||
|
@ -123,7 +123,7 @@ Testing extended globs
|
|||
[\x1b[0;34m====\x1b[0m] \x1b[0;1mSynthesis: Tested: \x1b[0;34m2\x1b[0;1m | Passing: \x1b[0;32m1\x1b[0;1m | Failing: \x1b[0;31m1\x1b[0;1m | Crashing: \x1b[0m0\x1b[0;1m \x1b[0m (esc)
|
||||
|
||||
|
||||
$ simple.c.bin --filter '!(*/failing|*/fail)' --verbose
|
||||
$ simple.c.bin --filter='!(*/failing|*/fail)' --verbose
|
||||
[\x1b[0;34m----\x1b[0m] Criterion v2.2.1 (esc)
|
||||
[\x1b[0;34m====\x1b[0m] Running \x1b[0;34m2\x1b[0m tests from \x1b[0;33mmisc\x1b[0m: (esc)
|
||||
[\x1b[0;34mRUN \x1b[0m] misc::passing (esc)
|
||||
|
@ -132,7 +132,7 @@ Testing extended globs
|
|||
[\x1b[0;34m====\x1b[0m] \x1b[0;1mSynthesis: Tested: \x1b[0;34m1\x1b[0;1m | Passing: \x1b[0;32m1\x1b[0;1m | Failing: \x1b[0m0\x1b[0;1m | Crashing: \x1b[0m0\x1b[0;1m \x1b[0m (esc)
|
||||
|
||||
|
||||
$ simple.c.bin --filter 'misc/?(passing)' --verbose
|
||||
$ simple.c.bin --filter='misc/?(passing)' --verbose
|
||||
[\x1b[0;34m----\x1b[0m] Criterion v2.2.1 (esc)
|
||||
[\x1b[0;34m====\x1b[0m] Running \x1b[0;34m2\x1b[0m tests from \x1b[0;33mmisc\x1b[0m: (esc)
|
||||
[\x1b[0;34mRUN \x1b[0m] misc::passing (esc)
|
||||
|
@ -140,7 +140,7 @@ Testing extended globs
|
|||
[\x1b[0;33mSKIP\x1b[0m] misc::failing: Test is disabled (esc)
|
||||
[\x1b[0;34m====\x1b[0m] \x1b[0;1mSynthesis: Tested: \x1b[0;34m1\x1b[0;1m | Passing: \x1b[0;32m1\x1b[0;1m | Failing: \x1b[0m0\x1b[0;1m | Crashing: \x1b[0m0\x1b[0;1m \x1b[0m (esc)
|
||||
|
||||
$ simple.c.bin --filter 'misc/?(passing|failing)' --verbose
|
||||
$ simple.c.bin --filter='misc/?(passing|failing)' --verbose
|
||||
[\x1b[0;34m----\x1b[0m] Criterion v2.2.1 (esc)
|
||||
[\x1b[0;34m====\x1b[0m] Running \x1b[0;34m2\x1b[0m tests from \x1b[0;33mmisc\x1b[0m: (esc)
|
||||
[\x1b[0;34mRUN \x1b[0m] misc::failing (esc)
|
||||
|
@ -150,7 +150,7 @@ Testing extended globs
|
|||
[\x1b[0;32mPASS\x1b[0m] misc::passing (esc)
|
||||
[\x1b[0;34m====\x1b[0m] \x1b[0;1mSynthesis: Tested: \x1b[0;34m2\x1b[0;1m | Passing: \x1b[0;32m1\x1b[0;1m | Failing: \x1b[0;31m1\x1b[0;1m | Crashing: \x1b[0m0\x1b[0;1m \x1b[0m (esc)
|
||||
|
||||
$ simple.c.bin --filter 'misc/*!(passing)' --verbose
|
||||
$ simple.c.bin --filter='misc/*!(passing)' --verbose
|
||||
[\x1b[0;34m----\x1b[0m] Criterion v2.2.1 (esc)
|
||||
[\x1b[0;34m====\x1b[0m] Running \x1b[0;34m2\x1b[0m tests from \x1b[0;33mmisc\x1b[0m: (esc)
|
||||
[\x1b[0;34mRUN \x1b[0m] misc::failing (esc)
|
||||
|
@ -166,21 +166,21 @@ Testing extended globs
|
|||
|
||||
Testing nested extglob patterns
|
||||
|
||||
$ simple.c.bin --filter '@(+(nest)ed)' --verbose
|
||||
$ simple.c.bin --filter='@(+(nest)ed)' --verbose
|
||||
[\x1b[0;34m----\x1b[0m] Criterion v2.2.1 (esc)
|
||||
[\x1b[0;34m====\x1b[0m] Running \x1b[0;34m2\x1b[0m tests from \x1b[0;33mmisc\x1b[0m: (esc)
|
||||
[\x1b[0;33mSKIP\x1b[0m] misc::passing: Test is disabled (esc)
|
||||
[\x1b[0;33mSKIP\x1b[0m] misc::failing: Test is disabled (esc)
|
||||
[\x1b[0;34m====\x1b[0m] \x1b[0;1mSynthesis: Tested: \x1b[0;34m0\x1b[0;1m | Passing: \x1b[0;32m0\x1b[0;1m | Failing: \x1b[0m0\x1b[0;1m | Crashing: \x1b[0m0\x1b[0;1m \x1b[0m (esc)
|
||||
|
||||
$ simple.c.bin --filter '?(*(a|b))' --verbose
|
||||
$ simple.c.bin --filter='?(*(a|b))' --verbose
|
||||
[\x1b[0;34m----\x1b[0m] Criterion v2.2.1 (esc)
|
||||
[\x1b[0;34m====\x1b[0m] Running \x1b[0;34m2\x1b[0m tests from \x1b[0;33mmisc\x1b[0m: (esc)
|
||||
[\x1b[0;33mSKIP\x1b[0m] misc::passing: Test is disabled (esc)
|
||||
[\x1b[0;33mSKIP\x1b[0m] misc::failing: Test is disabled (esc)
|
||||
[\x1b[0;34m====\x1b[0m] \x1b[0;1mSynthesis: Tested: \x1b[0;34m0\x1b[0;1m | Passing: \x1b[0;32m0\x1b[0;1m | Failing: \x1b[0m0\x1b[0;1m | Crashing: \x1b[0m0\x1b[0;1m \x1b[0m (esc)
|
||||
|
||||
$ simple.c.bin --filter 'misc/pa@(s|*(s))ing' --verbose
|
||||
$ simple.c.bin --filter='misc/pa@(s|*(s))ing' --verbose
|
||||
[\x1b[0;34m----\x1b[0m] Criterion v2.2.1 (esc)
|
||||
[\x1b[0;34m====\x1b[0m] Running \x1b[0;34m2\x1b[0m tests from \x1b[0;33mmisc\x1b[0m: (esc)
|
||||
[\x1b[0;34mRUN \x1b[0m] misc::passing (esc)
|
||||
|
@ -193,38 +193,38 @@ Testing nested extglob patterns
|
|||
|
||||
Testing malformed pattern
|
||||
|
||||
$ simple.c.bin --filter '?(malformed' --verbose
|
||||
$ simple.c.bin --filter='?(malformed' --verbose
|
||||
pattern error: Mismatching parenthesis
|
||||
[3]
|
||||
|
||||
$ simple.c.bin --filter '(malformed' --verbose
|
||||
$ simple.c.bin --filter='(malformed' --verbose
|
||||
pattern error: Unexpected character '('
|
||||
[3]
|
||||
|
||||
$ simple.c.bin --filter 'misc/passing)' --verbose
|
||||
$ simple.c.bin --filter='misc/passing)' --verbose
|
||||
pattern error: Unexpected character ')'
|
||||
[3]
|
||||
|
||||
$ simple.c.bin --filter 'misc/[' --verbose
|
||||
$ simple.c.bin --filter='misc/[' --verbose
|
||||
pattern error: Mismatching brackets.
|
||||
[3]
|
||||
|
||||
$ simple.c.bin --filter 'misc/[a-' --verbose
|
||||
$ simple.c.bin --filter='misc/[a-' --verbose
|
||||
pattern error: Mismatching brackets.
|
||||
[3]
|
||||
|
||||
$ simple.c.bin --filter '|pipe' --verbose
|
||||
$ simple.c.bin --filter='|pipe' --verbose
|
||||
pattern error: Unexpected character '|'
|
||||
[3]
|
||||
|
||||
|
||||
Testing special char escaping
|
||||
|
||||
$ simple.c.bin --filter '\!(escaped)' --verbose
|
||||
$ simple.c.bin --filter='\!(escaped)' --verbose
|
||||
pattern error: Unexpected character '('
|
||||
[3]
|
||||
|
||||
$ simple.c.bin --filter '\!escaped' --verbose
|
||||
$ simple.c.bin --filter='\!escaped' --verbose
|
||||
[\x1b[0;34m----\x1b[0m] Criterion v2.2.1 (esc)
|
||||
[\x1b[0;34m====\x1b[0m] Running \x1b[0;34m2\x1b[0m tests from \x1b[0;33mmisc\x1b[0m: (esc)
|
||||
[\x1b[0;33mSKIP\x1b[0m] misc::passing: Test is disabled (esc)
|
||||
|
|
Loading…
Add table
Reference in a new issue