mirror of
https://github.com/Orange-OpenSource/hurl.git
synced 2024-12-21 10:01:34 +03:00
99b811fa70
Decode hurlfmt output and error stream as text supports both UTF-8 and UTF-16, both with and with BOM Add optional os-specific expected error file
31 lines
837 B
Python
Executable File
31 lines
837 B
Python
Executable File
#!/usr/bin/env python3
|
|
import sys
|
|
import glob
|
|
import test_echo
|
|
import test_lint
|
|
import test_format
|
|
import test_hurl
|
|
|
|
|
|
def get_files(glob_expr):
|
|
return sorted([f.replace('\\', '/') for f in glob.glob(glob_expr)])
|
|
|
|
def main():
|
|
# Static run (without server)
|
|
[test_echo.test(f) for f in get_files('tests/*.hurl') + get_files('tests_error_lint/*.hurl')]
|
|
[test_format.test('json', f) for f in get_files('tests/*.hurl')]
|
|
[test_format.test('html', f) for f in get_files('tests/*.hurl')]
|
|
[test_lint.test(f) for f in get_files('tests_error_lint/*.hurl')]
|
|
[test_hurl.test(f) for f in get_files('tests_error_parser/*.hurl')]
|
|
|
|
# Dynamic run (with server)
|
|
[test_hurl.test(f) for f in get_files('tests/*.hurl') + get_files('ssl/*.hurl')]
|
|
|
|
print('test integration ok!')
|
|
|
|
|
|
if __name__ == '__main__':
|
|
main()
|
|
|
|
|