0
0
mirror of https://github.com/rkd77/elinks.git synced 2025-06-30 22:19:29 -04:00

[meson] Added bool test-js. Refs #361

Default enabled, but requires also Dtest=true
Not every test environment has access to terminal.
AFAIK, elinks needs terminal, js tests depend on elinks binary.
This commit is contained in:
Witold Filipczyk 2025-01-13 18:42:19 +01:00
parent e66e00d469
commit 765ccd406f
2 changed files with 2 additions and 1 deletions

View File

@ -1206,6 +1206,6 @@ if get_option('doc')
subdir('doc')
endif
if get_option('test')
if get_option('test') and get_option('test-js')
subdir('test/js/assert')
endif

View File

@ -73,6 +73,7 @@ option('mujs', type: 'boolean', value: false, description: 'use mujs library')
option('codepoint', type: 'boolean', value: true, description: 'whether check codepoints on Linux console')
option('test', type: 'boolean', value: false, description: 'whether build test programs')
option('test-mailcap', type: 'boolean', value: false, description: 'whether build test mailcap program')
option('test-js', type: 'boolean', value: true, description: 'whether to test js, requires also test to be enabled')
option('doc', type: 'boolean', value: true, description: 'whether build documentation')
option('docdir', type: 'string', value: '', description: 'Documentation installation directory. Default $prefix/share/doc/elinks.')
option('apidoc', type: 'boolean', value: true, description: 'whether to generate API docs with doxygen')