1### Unit tests ################################################################# 2 3mock_js_resources_files = gnome.compile_resources('mock-js-resources', 4 'mock-js-resources.gresource.xml', c_name: 'mock_js_resources', 5 source_dir: '..') 6 7gjs_tests_sources = [ 8 'gjs-tests.cpp', 9 'gjs-test-common.cpp', 'gjs-test-common.h', 10 'gjs-test-utils.cpp', 'gjs-test-utils.h', 11 'gjs-test-call-args.cpp', 12 'gjs-test-coverage.cpp', 13 'gjs-test-rooting.cpp', 14 'gjs-test-no-introspection-object.cpp', 'gjs-test-no-introspection-object.h', 15] 16 17gjs_tests = executable('gjs-tests', gjs_tests_sources, mock_js_resources_files, 18 cpp_args: ['-DGJS_COMPILATION'] + directory_defines, 19 include_directories: top_include, dependencies: libgjs_dep) 20 21test('API tests', gjs_tests, args: ['--tap', '--keep-going', '--verbose'], 22 depends: gjs_private_typelib, env: tests_environment, protocol: 'tap', 23 suite: 'C') 24