aboutsummaryrefslogtreecommitdiff
path: root/run_unittests.py
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2019-01-07 13:47:27 -0800
committerDylan Baker <dylan@pnwbakers.com>2019-02-11 12:50:32 -0800
commit5b896ed70bbf18e633bbeca442c90610e3d66a22 (patch)
tree1205d983b474f4e97eb596769f410cc6ffc399d6 /run_unittests.py
parentb50899419cb2de27af34e5a955695a61c2863c51 (diff)
downloadmeson-5b896ed70bbf18e633bbeca442c90610e3d66a22.zip
meson-5b896ed70bbf18e633bbeca442c90610e3d66a22.tar.gz
meson-5b896ed70bbf18e633bbeca442c90610e3d66a22.tar.bz2
allow setting directory locations in a native file
This allows the person running configure (either a developer, user, or distro maintainer) to keep a configuration of where various kinds of files should end up.
Diffstat (limited to 'run_unittests.py')
-rwxr-xr-xrun_unittests.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/run_unittests.py b/run_unittests.py
index a244bbd..2e2741f 100755
--- a/run_unittests.py
+++ b/run_unittests.py
@@ -5438,6 +5438,17 @@ class NativeFileTests(BasePlatformTests):
compiler = env.detect_swift_compiler()
self.assertEqual(compiler.version, '1.2345')
+ def test_native_file_dirs(self):
+ testcase = os.path.join(self.unit_test_dir, '54 native file override')
+ self.init(testcase, default_args=False,
+ extra_args=['--native-file', os.path.join(testcase, 'nativefile')])
+
+ def test_native_file_dirs_overriden(self):
+ testcase = os.path.join(self.unit_test_dir, '54 native file override')
+ self.init(testcase, default_args=False,
+ extra_args=['--native-file', os.path.join(testcase, 'nativefile'),
+ '-Ddef_libdir=liblib', '-Dlibdir=liblib'])
+
def unset_envs():
# For unit tests we must fully control all command lines