yq/scripts/acceptance.sh

13 lines
226 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
2020-11-13 03:07:11 +00:00
X=$(./yq e '.b.c |= 3' ./examples/sample.yaml | ./yq e '.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"