Support passing args to the dockerized test runner

master
Tom Alexander 4 years ago
parent aa24f50dfa
commit 4856fb6d11
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE

@ -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"]

@ -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 "${@}"

@ -0,0 +1 @@
Through experimentation I have determined that DustJS erases all preceding whitespace (spaces, tabs, and newlines) but only trims trailing newlines.
Loading…
Cancel
Save