Last active
September 18, 2019 22:27
-
-
Save vchudnov-g/9530f13f53fd13dc03d7b443c4af981f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type: manifest/samples | |
schema_version: 3 | |
base: &common | |
env: 'java' | |
chdir: '{@manifest_dir}/../..' | |
basepath: '/tmp' | |
samples: | |
- <<: *common | |
path: '{basepath}/echo-me' | |
sample: 'first' | |
bin: echo mvn exec:java -q -D{sample} -Dexec.args="@args" | |
- <<: *common | |
path: '{basepath}/echo-me' | |
sample: 'second' | |
bin: "echo mvn exec:java -q -D{sample} -Dexec.args='@args'" | |
- <<: *common | |
path: '{basepath}/echo-me' | |
sample: 'third' | |
invocation: echo mvn exec:java -q -D{sample} -Dexec.args="@args" | |
- <<: *common | |
path: '{basepath}/echo-me' | |
sample: 'fourth' | |
invocation: "echo mvn exec:java -q -D{sample} -Dexec.args='@args'" | |
- <<: *common | |
path: '{basepath}/echo-me' | |
sample: 'fifth' | |
invocation: echo mvn exec:java -q -D{sample} -Dexec.args='@args' | |
--- | |
type: test/samples | |
schema_version: 1 | |
test: | |
suites: | |
- name: "Reproduce error" | |
setup: | |
- code: " " | |
teardown: | |
- code: " " | |
cases: | |
- name: "Quoted args" | |
spec: | |
- log: | |
- "Using manifest from {first:@manifest_source}" | |
- call: | |
sample: first | |
params: | |
content: | |
literal: alpha | |
text: | |
literal: "beta" | |
idea: | |
literal: gamma | |
- call: | |
sample: second | |
params: | |
content: | |
literal: alpha | |
text: | |
literal: "beta" | |
idea: | |
literal: gamma | |
- call: | |
sample: third | |
params: | |
content: | |
literal: alpha | |
text: | |
literal: "beta" | |
idea: | |
literal: gamma | |
- call: | |
sample: fourth | |
params: | |
content: | |
literal: alpha | |
text: | |
literal: "beta" | |
idea: | |
literal: gamma | |
- call: | |
sample: fifth | |
params: | |
content: | |
literal: alpha | |
text: | |
literal: "beta" | |
idea: | |
literal: gamma | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ sample-tester -v detailed /tmp/arg_quotes_132.yaml | |
RUNNING: Test environment: "" | |
RUNNING: Test suite: "Reproduce error" | |
PASSED: Test case: "Quoted args" | |
| | |
| ### Test case SETUP | |
| | |
| ### Test case TEST | |
| Using manifest from /tmp/arg_quotes_132.yaml | |
| | |
| # Calling: echo mvn exec:java -q -Dfirst -Dexec.args="--content="alpha" --idea="gamma" --text="beta"" /tmp/echo-me --content="alpha" --idea="gamma" --text="beta" | |
| mvn exec:java -q -Dfirst -Dexec.args=--content=alpha --idea=gamma --text=beta /tmp/echo-me --content=alpha --idea=gamma --text=beta | |
| | |
| # Calling: echo mvn exec:java -q -Dsecond -Dexec.args='--content="alpha" --idea="gamma" --text="beta"' /tmp/echo-me --content="alpha" --idea="gamma" --text="beta" | |
| mvn exec:java -q -Dsecond -Dexec.args=--content="alpha" --idea="gamma" --text="beta" /tmp/echo-me --content=alpha --idea=gamma --text=beta | |
| | |
| # Calling: echo mvn exec:java -q -Dthird -Dexec.args="--content="alpha" --idea="gamma" --text="beta"" | |
| mvn exec:java -q -Dthird -Dexec.args=--content=alpha --idea=gamma --text=beta | |
| | |
| # Calling: echo mvn exec:java -q -Dfourth -Dexec.args='--content="alpha" --idea="gamma" --text="beta"' | |
| mvn exec:java -q -Dfourth -Dexec.args=--content="alpha" --idea="gamma" --text="beta" | |
| | |
| # Calling: echo mvn exec:java -q -Dfifth -Dexec.args='--content="alpha" --idea="gamma" --text="beta"' | |
| mvn exec:java -q -Dfifth -Dexec.args=--content="alpha" --idea="gamma" --text="beta" | |
| | |
| ### Test case TEARDOWN | |
| | |
Tests passed |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment