Support passing args to the dockerized test runner
parent
aa24f50dfa
commit
4856fb6d11
@ -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.
|
@ -0,0 +1 @@
|
||||
{"name": "Bob"}
|
@ -0,0 +1,9 @@
|
||||
|
||||
|
||||
|
||||
|
||||
Hello {name}!
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue