meson/test cases
Paolo Bonzini 08a8043f19 interpreter: add feature.allowed()
This method simplifies the conversion of Feature objects to booleans.
Often, one has to use the "not" operator in order to treat "auto"
and "enabled" the same way.

"allowed()" also works well in conjunction with the require method that
is introduced in the next patch.  For example,

  if get_option('foo').require(host_machine.system() == 'windows').allowed() then
    src += ['foo.c']
    config.set10('HAVE_FOO', 1)
  endif

can be used instead of

  if host_machine.system() != 'windows'
    if get_option('foo').enabled()
      error('...')
    endif
  endif
  if not get_option('foo').disabled() then
    src += ['foo.c']
    config.set10('HAVE_FOO', 1)
  endif

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2021-05-31 16:01:57 +02:00
..
cmake tests/cmake: disable some tests that don't work correctly when cross compiling 2021-02-05 16:31:33 -08:00
common interpreter: add feature.allowed() 2021-05-31 16:01:57 +02:00
csharp test: merge installed_files.txt into test.json 2020-02-25 21:47:42 +01:00
cuda Strip host-compiler -std flag from NVCC line. 2021-03-28 20:12:45 +03:00
d compilers: Don't put split soname args in start groups 2020-03-11 09:27:10 -07:00
failing interpreter: Automatically add 'c' to languages when 'vala' is used 2021-05-19 23:28:17 +03:00
failing build One more unixy fix. 2021-03-17 12:02:05 +02:00
failing test [TAP] Fix TAP parser when test exits with status 2021-02-19 17:17:20 +02:00
fortran test:fortran:21: fix Windows by using configure_file(copy:) 2021-05-13 15:24:06 +03:00
fpga/1 simple Created an unstable module for IceStorm projects. 2018-02-02 20:05:31 +02:00
frameworks modules/gnome: Correctly handle generated sources for generate_gir 2021-05-28 08:47:11 -04:00
java dependency: Add JDK system dependency 2021-04-12 10:43:11 -07:00
keyval Print a warning when importing a stabilized module 2020-07-19 17:53:32 +03:00
linuxlike cmake: add PATH logic to preliminary dep check (fixes #8133) 2021-01-10 21:48:23 +00:00
nasm/1 configure file extract_all_sources: Also include generated object files 2018-11-02 21:40:04 +02:00
native Condense test directory names again. 2020-11-03 21:05:20 +02:00
objc Make objective C use C standard version. Closes #5495. 2021-05-11 22:47:17 +03:00
objcpp Make objective C use C standard version. Closes #5495. 2021-05-11 22:47:17 +03:00
osx test: merge installed_files.txt into test.json 2020-02-25 21:47:42 +01:00
python mass rewrite of string formatting to use f-strings everywhere 2021-03-04 17:16:11 -05:00
python3 mass rewrite of string formatting to use f-strings everywhere 2021-03-04 17:16:11 -05:00
rewrite Allow '//' as project function id due to git bash path conversion. 2021-01-12 17:42:57 +00:00
rust Add a rust test for internal c linkage 2021-05-18 09:34:36 -07:00
swift Xcode: make Swift projects work. 2021-04-25 15:35:13 +03:00
unit Condense test directory names. 2021-04-26 23:39:15 +01:00
vala Revert "Disable failing Cygwin GIR test." 2021-05-20 23:12:21 +01:00
warning Only emit warning about "native:" on projects with minimum required version 2020-07-28 19:51:58 +02:00
wasm compilers/mixins/emscripten: Implement thread support 2020-02-27 16:35:02 -08:00
windows various python neatness cleanups 2021-03-04 17:11:26 -05:00