aboutsummaryrefslogtreecommitdiff
path: root/run_unittests.py
diff options
context:
space:
mode:
authorXavier Claessens <xavier.claessens@collabora.com>2019-07-03 13:32:24 -0400
committerXavier Claessens <xavier.claessens@collabora.com>2019-07-10 15:01:18 -0400
commit12d4031f52a8c09014a840b2cf263478602618d0 (patch)
tree1db3d1a5008400e828f890e1e860d2724b4a4e79 /run_unittests.py
parent716140ddb4f108dac2c2395e24e9ca17d68593d5 (diff)
downloadmeson-12d4031f52a8c09014a840b2cf263478602618d0.zip
meson-12d4031f52a8c09014a840b2cf263478602618d0.tar.gz
meson-12d4031f52a8c09014a840b2cf263478602618d0.tar.bz2
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 d9281cf..c5a6d4f 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