diff options
author | Dylan Baker <dylan@pnwbakers.com> | 2019-05-20 10:59:26 -0700 |
---|---|---|
committer | Dylan Baker <dylan@pnwbakers.com> | 2019-05-20 10:59:26 -0700 |
commit | 27b6c62ffdf51fed9a55ecfdd4ed47ac2ea79c1e (patch) | |
tree | 010f35fd0c12841696ef15d4ccc9f7b820b2523d | |
parent | 4f347ef14abe715771724eb8889e8423409a90ff (diff) | |
download | meson-27b6c62ffdf51fed9a55ecfdd4ed47ac2ea79c1e.zip meson-27b6c62ffdf51fed9a55ecfdd4ed47ac2ea79c1e.tar.gz meson-27b6c62ffdf51fed9a55ecfdd4ed47ac2ea79c1e.tar.bz2 |
fixup! fixup! tests: Add test for Dependency.get_variable
-rw-r--r-- | test cases/common/219 dependency get_variable method/meson.build | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/test cases/common/219 dependency get_variable method/meson.build b/test cases/common/219 dependency get_variable method/meson.build index b4306b0..92b8704 100644 --- a/test cases/common/219 dependency get_variable method/meson.build +++ b/test cases/common/219 dependency get_variable method/meson.build @@ -15,9 +15,9 @@ else dep = dependency('zlib', method : 'pkg-config') assert(dep.get_pkgconfig_variable('prefix') == dep.get_variable(pkgconfig : 'prefix'), 'Got different values from get_pkgconfig_variable and get_variable(pkgconfig: )') - assert(dep.get_variable(pkgconfig : default, default : default) == default, + assert(dep.get_variable(pkgconfig : default, default_value : default) == default, 'pkg-config didnt get default when we should have.') - assert(dep.get_variable(pkgconfig : 'prefix', default : default) != default, + assert(dep.get_variable(pkgconfig : 'prefix', default_value : default) != default, 'pkg-config got default when we shouldnt have.') endif @@ -27,9 +27,9 @@ if not dep_ct.found() else assert(dep_ct.get_configtool_variable('has-rtti') == dep_ct.get_variable(configtool : 'has-rtti'), 'Got different values from get_configtool_variable and get_variable(configtool: )') - assert(dep_ct.get_variable(configtool : default, default : default) == default, + assert(dep_ct.get_variable(configtool : default, default_value : default) == default, 'config-tool didnt get default when we should have.') - assert(dep_ct.get_variable(configtool : 'has-rtti', default : default) != default, + assert(dep_ct.get_variable(configtool : 'has-rtti', default_value : default) != default, 'config-tool got default when we shouldnt have.') endif @@ -41,12 +41,12 @@ else assert((dep_cm.get_variable(cmake : 'LLVM_ENABLE_RTTI') == 'ON') == (dep_ct.get_variable(configtool : 'has-rtti') == 'YES'), 'RTTI information for cmake and config tools disagree') endif - assert(dep_cm.get_variable(cmake : default, default : default) == default, + assert(dep_cm.get_variable(cmake : default, default_value : default) == default, 'cmake didnt get default when we should have.') - assert(dep_cm.get_variable(cmake : 'LLVM_ENABLE_RTTI', default : default) != default, + assert(dep_cm.get_variable(cmake : 'LLVM_ENABLE_RTTI', default_value : default) != default, 'cmake config-tool got default when we shouldnt have.') endif idep = declare_dependency() -assert(idep.get_variable(pkgconfig : 'foo', cmake : 'foo', configtool : 'foo', default : default) == default, +assert(idep.get_variable(pkgconfig : 'foo', cmake : 'foo', configtool : 'foo', default_value : default) == default, 'Got something other than default from an internal dependency') |