#!/bin/bash setUp() { rm test*.yml || true } testOutputJsonDeprecated() { cat >test.yml <test.yml <test.yml <test.yml <test.yml <test.yml <test.yml <test.yml <test.yml <test.yml <test.yml <test.yml <test.yml < cat EOM X=$(./yq e --output-format=xml test.yml) assertEquals "$expected" "$X" X=$(./yq ea --output-format=xml test.yml) assertEquals "$expected" "$X" } testOutputXmlShort() { cat >test.yml < cat EOM X=$(./yq e --output-format=x test.yml) assertEquals "$expected" "$X" X=$(./yq ea --output-format=x test.yml) assertEquals "$expected" "$X" } testOutputXmComplex() { cat >test.yml < cat dog EOM X=$(./yq e --output-format=x test.yml) assertEquals "$expected" "$X" X=$(./yq ea --output-format=x test.yml) assertEquals "$expected" "$X" } testLuaOutputPretty() { cat >test.yml <test.yml <