yq/scripts/acceptance.sh

13 lines
217 B
Bash
Raw Normal View History

2017-02-12 20:28:48 +00:00
#!/bin/bash
set -e
2017-02-12 20:28:48 +00:00
# acceptance test
2017-12-17 22:11:08 +00:00
X=$(./yq w ./examples/sample.yaml b.c 3 | ./yq r - b.c)
2017-02-12 20:28:48 +00:00
if [[ $X != 3 ]]; then
2019-08-02 04:20:57 +00:00
echo "Failed acceptance test: expected 3 but was $X"
2017-02-12 20:28:48 +00:00
exit 1
fi
2017-12-17 22:11:08 +00:00
echo "acceptance tests passed"