Support passing args to the dockerized test runner
This commit is contained in:
parent
aa24f50dfa
commit
4856fb6d11
@ -23,4 +23,4 @@ USER duster
|
||||
RUN git clean -dfxq
|
||||
RUN cargo build
|
||||
RUN npm link dustjs-linkedin
|
||||
CMD /home/duster/duster/js/run_compliance_suite.bash
|
||||
ENTRYPOINT ["/home/duster/duster/js/run_compliance_suite.bash"]
|
||||
|
9
js/run_dockerized_compliance_suite.bash
Executable file
9
js/run_dockerized_compliance_suite.bash
Executable file
@ -0,0 +1,9 @@
|
||||
#!/usr/bin/env bash
|
||||
#
|
||||
# Runs the full suite of tests against LinkedIn DustJS and duster to compare the result
|
||||
set -euo pipefail
|
||||
IFS=$'\n\t'
|
||||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
|
||||
cd "$DIR/../"
|
||||
docker build -t duster . && docker run --rm -i -t duster "${@}"
|
1
js/test_cases/surrounding_whitespace/README.md
Normal file
1
js/test_cases/surrounding_whitespace/README.md
Normal file
@ -0,0 +1 @@
|
||||
Through experimentation I have determined that DustJS erases all preceding whitespace (spaces, tabs, and newlines) but only trims trailing newlines.
|
1
js/test_cases/surrounding_whitespace/input1.json
Normal file
1
js/test_cases/surrounding_whitespace/input1.json
Normal file
@ -0,0 +1 @@
|
||||
{"name": "Bob"}
|
9
js/test_cases/surrounding_whitespace/main.dust
Normal file
9
js/test_cases/surrounding_whitespace/main.dust
Normal file
@ -0,0 +1,9 @@
|
||||
|
||||
|
||||
|
||||
|
||||
Hello {name}!
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user