mirror of
https://github.com/Orange-OpenSource/hurl.git
synced 2024-11-30 00:37:52 +03:00
16 lines
387 B
Bash
16 lines
387 B
Bash
|
#!/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
|
||
|
|
||
|
|