aboutsummaryrefslogtreecommitdiff
path: root/run_unittests.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2019-07-11 00:34:40 +0300
committerGitHub <noreply@github.com>2019-07-11 00:34:40 +0300
commit19cda6b7c96cc3a63796549764261306e1db94b4 (patch)
tree6d47683818b05b2eee6a9f9dfb92c92463ac26cc /run_unittests.py
parent30e42009c03cbb53e3462e1c4ee29af666474742 (diff)
parentd8b3af00aca3a2825d199367d588a4b24e5ab779 (diff)
downloadmeson-19cda6b7c96cc3a63796549764261306e1db94b4.zip
meson-19cda6b7c96cc3a63796549764261306e1db94b4.tar.gz
meson-19cda6b7c96cc3a63796549764261306e1db94b4.tar.bz2
Merge pull request #5606 from xclaesse/alias_target
Add alias_target() function
Diffstat (limited to 'run_unittests.py')
-rwxr-xr-xrun_unittests.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/run_unittests.py b/run_unittests.py
index 33174b1..56f2683 100755
--- a/run_unittests.py
+++ b/run_unittests.py
@@ -3747,6 +3747,19 @@ recommended as it is not supported on some platforms''')
testdir = os.path.join(self.unit_test_dir, '61 cmake parser')
self.init(testdir, extra_args=['-Dcmake_prefix_path=' + os.path.join(testdir, 'prefix')])
+ def test_alias_target(self):
+ if self.backend is Backend.vs:
+ # FIXME: This unit test is broken with vs backend, needs investigation
+ raise unittest.SkipTest('Skipping alias_target test with {} backend'.format(self.backend.name))
+ testdir = os.path.join(self.unit_test_dir, '62 alias target')
+ self.init(testdir)
+ self.build()
+ self.assertPathDoesNotExist(os.path.join(self.builddir, 'prog' + exe_suffix))
+ self.assertPathDoesNotExist(os.path.join(self.builddir, 'hello.txt'))
+ self.run_target('build-all')
+ self.assertPathExists(os.path.join(self.builddir, 'prog' + exe_suffix))
+ self.assertPathExists(os.path.join(self.builddir, 'hello.txt'))
+
class FailureTests(BasePlatformTests):
'''
Tests that test failure conditions. Build files here should be dynamically