mirror of
https://github.com/mikefarah/yq.git
synced 2024-11-14 07:08:06 +00:00
15 lines
195 B
Bash
Executable File
15 lines
195 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
go test
|
|
go build
|
|
|
|
# acceptance test
|
|
X=$(./yaml w sample.yaml b.c 3 | ./yaml r - b.c)
|
|
|
|
if [ $X != 3 ]
|
|
then
|
|
echo "Failed acceptance test: expected 2 but was $X"
|
|
exit 1
|
|
fi |