diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2021-07-13 10:34:21 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2021-07-13 15:42:46 +0200 |
commit | b5146c02effd53a8b71b2d10f95ecd2358f8241d (patch) | |
tree | 40a7939f658695beb90f43e3dd3eefc4d381a614 /run_unittests.py | |
parent | 5215f4fa9898b5f56227cac6548857937adda8d1 (diff) | |
download | meson-b5146c02effd53a8b71b2d10f95ecd2358f8241d.zip meson-b5146c02effd53a8b71b2d10f95ecd2358f8241d.tar.gz meson-b5146c02effd53a8b71b2d10f95ecd2358f8241d.tar.bz2 |
run_unittests: add test for passing symlinks to setup and test
Diffstat (limited to 'run_unittests.py')
-rwxr-xr-x | run_unittests.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/run_unittests.py b/run_unittests.py index e8f453d..05c63d5 100755 --- a/run_unittests.py +++ b/run_unittests.py @@ -6896,6 +6896,18 @@ class LinuxlikeTests(BasePlatformTests): pcfile = f.read() self.assertFalse('blub_blob_blib' in pcfile) + def test_symlink_builddir(self): + ''' + Test using a symlink as either the builddir for "setup" or + the argument for "-C". + ''' + testdir = os.path.join(self.common_test_dir, '1 trivial') + os.symlink(self.builddir, self.builddir + '-symlink') + self.change_builddir(self.builddir + '-symlink') + self.init(testdir) + self.build() + self._run(self.mtest_command) + def test_vala_c_warnings(self): ''' Test that no warnings are emitted for C code generated by Vala. This |