1
0
mirror of https://github.com/rkd77/elinks.git synced 2025-02-02 15:09:23 -05:00
elinks/test/meson.build
Witold Filipczyk 29138d737a [meson] Added ecmascript tests
It does not work. Tests always succeed, but some should fail.
2024-06-01 21:24:56 +02:00

13 lines
472 B
Meson

if get_option('test')
h = run_command(meson.source_root()+'/test/ecmascript/assert/assert.sh')
tests = h.stdout().strip().split('\n')
foreach t : tests
name = t.split('/')[-1]
test(name, elinks, protocol: 'exitcode', is_parallel: false, workdir: meson.current_build_dir(),
args: ['--test', '1', '--eval', 'set ecmascript.enable = 1',
'--eval', 'set ecmascript.enable_console_log = 1',
'--eval', 'set ui.sessions.fork_on_start = 0',
t])
endforeach
endif