mirror of
https://github.com/Orange-OpenSource/hurl.git
synced 2024-12-24 19:42:07 +03:00
Add additional script for ad-hoc tests
This commit is contained in:
parent
b5ddf8a9dc
commit
1017dffdf1
1
.github/workflows/test.yml
vendored
1
.github/workflows/test.yml
vendored
@ -76,6 +76,7 @@ jobs:
|
|||||||
./test_curl_commands.sh $(find ./tests_failed -maxdepth 1 -type f -name '*.curl' ! -name '*windows*')
|
./test_curl_commands.sh $(find ./tests_failed -maxdepth 1 -type f -name '*.curl' ! -name '*windows*')
|
||||||
./test_html_output.py tests_failed/*.html
|
./test_html_output.py tests_failed/*.html
|
||||||
xmllint --noout tests_failed/*.html
|
xmllint --noout tests_failed/*.html
|
||||||
|
./ad_hoc.sh
|
||||||
./report.sh
|
./report.sh
|
||||||
- name: Archive production artifacts
|
- name: Archive production artifacts
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
|
15
integration/ad_hoc.sh
Executable file
15
integration/ad_hoc.sh
Executable file
@ -0,0 +1,15 @@
|
|||||||
|
#!/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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user