Commit 8344a062 authored by Christoph Haag's avatar Christoph Haag
Browse files

enable running tests with js60 and js68

parent 9c5c0c36
......@@ -7,7 +7,10 @@ project('gnome-shell-extension-xrdesktop',
datadir = get_option('datadir')
shelldir = join_paths(datadir, 'gnome-shell')
extensiondir = join_paths(shelldir, 'extensions')
js52 = find_program('js52', required: false)
js60 = find_program('js60', required: false)
js68 = find_program('js68', required: false)
uuid = 'xrdesktop-extension@collabora.com'
......
......@@ -5,12 +5,21 @@ install_data (extension_sources + extension_data,
install_dir: join_paths(extensiondir, uuid)
)
js = js68
if not js.found()
if js60.found()
js = js60
elif js52.found()
js = js52
endif
endif
foreach js_source : extension_sources
if (js52.found())
if (js.found())
path_array = '@0@'.format(js_source).split('/')
name = join_paths(path_array[-2], path_array[-1])
test('Checking syntax of ' + name, js52,
test('Checking syntax of ' + name, js,
args: ['-s', '-c', js_source],
workdir: meson.current_source_dir()
)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment