diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-04 11:31:34 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-04 11:31:34 +0000 |
commit | 36aa6978a99be5a5327580a81301d5743db72857 (patch) | |
tree | cb4c507db130d28a6a3e8ee3f72b6f56176f57cf /debian/jstest/run-tests | |
parent | Adding upstream version 5.3.0. (diff) | |
download | sphinx-debian.tar.xz sphinx-debian.zip |
Adding debian version 5.3.0-4.debian/5.3.0-4debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/jstest/run-tests')
-rwxr-xr-x | debian/jstest/run-tests | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/debian/jstest/run-tests b/debian/jstest/run-tests new file mode 100755 index 0000000..95ab1e8 --- /dev/null +++ b/debian/jstest/run-tests @@ -0,0 +1,37 @@ +#!/usr/bin/python3 + +import os +import sys + +import jstest + +class t1: + search_term = 'example' + n_results = 83 + n_links = 83 + n_highlights = 98 + +class t2: + search_term = 'examples' + n_results = 74 + n_links = 74 + n_highlights = 17 + +class t3: + search_term = 'graph' + n_results = 33 + n_links = 33 + n_highlights = 125 + +if __name__ == '__main__': + if not os.getenv('DISPLAY'): + raise RuntimeError('These tests require access to an X server') + [build_directory] = sys.argv[1:] + build_directory = os.path.abspath(build_directory) + n_failures = 0 + for testcase in t1, t2, t3: + failures = jstest.test_directory(build_directory, testcase).failures + n_failures += len(failures) + sys.exit(n_failures > 0) + +# vim:ts=4 sw=4 et |