mirror of
https://gitee.com/mirrors_adrian-thurston/yq.git
synced 2026-01-15 07:53:35 +08:00
13 lines
217 B
Bash
Executable File
13 lines
217 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
# acceptance test
|
|
X=$(./yq w ./examples/sample.yaml b.c 3 | ./yq r - b.c)
|
|
|
|
if [[ $X != 3 ]]; then
|
|
echo "Failed acceptance test: expected 2 but was $X"
|
|
exit 1
|
|
fi
|
|
echo "acceptance tests passed"
|