1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00

[meson] Added ecmascript tests

It does not work. Tests always succeed, but some should fail.
This commit is contained in:
Witold Filipczyk 2024-06-01 21:24:56 +02:00
parent ff43fdccbe
commit 29138d737a
3 changed files with 23 additions and 0 deletions

View File

@ -1167,3 +1167,7 @@ subdir('contrib')
if get_option('doc') if get_option('doc')
subdir('doc') subdir('doc')
endif endif
if get_option('test')
subdir('test')
endif

View File

@ -0,0 +1,7 @@
#!/bin/sh
d=$(dirname "$0")
for i in $d/*.html; do
readlink -f "$i"
done

12
test/meson.build Normal file
View File

@ -0,0 +1,12 @@
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