2017-02-12 20:28:48 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2017-02-12 20:55:06 +00:00
|
|
|
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
|
|
|
|
2017-09-23 03:58:50 +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
|
2017-09-20 23:40:33 +00:00
|
|
|
fi
|
2017-12-17 22:11:08 +00:00
|
|
|
echo "acceptance tests passed"
|