hurl/integration/ad_hoc.sh

16 lines
387 B
Bash
Raw Normal View History

2022-07-02 07:08:26 +03:00
#!/bin/bash
# add more tests
# that can be easily added in tests_ok/ and tests_failed/
echo "Check file not found error"
actual=$(hurl does_not_exist.hurl 2>&1)
expected="error: hurl: cannot access 'does_not_exist.hurl': No such file or directory"
if [ "$actual" != "$expected" ]; then
echo "Error differs:"
echo "actual: $actual"
echo "expected: $expected"
exit 1
fi