diff options
author | Qyriad <qyriad@qyriad.me> | 2024-04-05 20:57:42 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@lix> | 2024-04-05 20:57:42 +0000 |
commit | 405e41e288768ed99002f7b1d7d68f41c6152c12 (patch) | |
tree | 2a73af58d42eb1b850544704ec93121eb8e1c9dd /tests | |
parent | 5081109592778d6026669db831758b61e5b43c33 (diff) | |
parent | 3f4c7a68f466584ba6ba7f3fb2c0937e01793974 (diff) |
Merge "meson: run repl characterization test" into main
Diffstat (limited to 'tests')
-rw-r--r-- | tests/functional/meson.build | 2 | ||||
-rw-r--r-- | tests/functional/repl_characterization/meson.build | 41 |
2 files changed, 43 insertions, 0 deletions
diff --git a/tests/functional/meson.build b/tests/functional/meson.build index 0ea0e4df5..37278167f 100644 --- a/tests/functional/meson.build +++ b/tests/functional/meson.build @@ -181,3 +181,5 @@ foreach script : functional_tests_scripts timeout : 300, ) endforeach + +subdir('repl_characterization') diff --git a/tests/functional/repl_characterization/meson.build b/tests/functional/repl_characterization/meson.build new file mode 100644 index 000000000..56410cfd2 --- /dev/null +++ b/tests/functional/repl_characterization/meson.build @@ -0,0 +1,41 @@ +repl_characterization_tester_sources = files( + 'repl_characterization.cc', + 'test-session.cc', +) + +repl_characterization_tester = executable( + 'test-repl-characterization', + repl_characterization_tester_sources, + dependencies : [ + liblixutil, + liblixutil_test_support, + sodium, + editline, + boost, + lowdown, + gtest, + ], + cpp_args : [ + f'-DNIX_BIN_DIR="@bindir@"', + ], + build_by_default : false, +) + +# TODO(Qyriad): better understand the repl characterization tests' preconditions +# so we can run this with the gtest protocol, without run-test.py. +test( + # test-repl-characterization.sh expects the tester executable to have this name, + # so this name it shall have. + 'repl-characterization-tests', + python, + args : [ + meson.project_source_root() / 'meson/run-test.py', + 'test-repl-characterization.sh', + ], + depends : [repl_characterization_tester], + env : { + '_NIX_TEST_UNIT_DATA': meson.current_build_dir() / 'data', + 'MESON_BUILD_ROOT': meson.project_build_root(), + }, + suite : 'installcheck', +) |