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:
parent
ff43fdccbe
commit
29138d737a
@ -1167,3 +1167,7 @@ subdir('contrib')
|
||||
if get_option('doc')
|
||||
subdir('doc')
|
||||
endif
|
||||
|
||||
if get_option('test')
|
||||
subdir('test')
|
||||
endif
|
||||
|
7
test/ecmascript/assert/assert.sh
Executable file
7
test/ecmascript/assert/assert.sh
Executable 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
12
test/meson.build
Normal 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
|
Loading…
Reference in New Issue
Block a user