aboutsummaryrefslogtreecommitdiff
path: root/run_unittests.py
diff options
context:
space:
mode:
authorXavier Claessens <xavier.claessens@collabora.com>2021-02-20 12:04:01 -0500
committerXavier Claessens <xclaesse@gmail.com>2021-03-16 09:00:50 -0400
commit598e968993da58c89f773dc732c708a54b0ec8db (patch)
tree7aff62faa24d580ea64fdcf65922c7f0d109a712 /run_unittests.py
parent567c96b68b1dfe3cd6b52b0d26dfc78e5c0e6b76 (diff)
downloadmeson-598e968993da58c89f773dc732c708a54b0ec8db.zip
meson-598e968993da58c89f773dc732c708a54b0ec8db.tar.gz
meson-598e968993da58c89f773dc732c708a54b0ec8db.tar.bz2
Add `meson devenv` command and meson.add_devenv()
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 7e7ec93..dd59ceb 100755
--- a/run_unittests.py
+++ b/run_unittests.py
@@ -5579,6 +5579,17 @@ class AllPlatformTests(BasePlatformTests):
self.setconf('-Duse-sub=true')
self.build()
+ def test_devenv(self):
+ testdir = os.path.join(self.unit_test_dir, '91 devenv')
+ self.init(testdir)
+ self.build()
+
+ cmd = self.meson_command + ['devenv', '-C', self.builddir]
+ script = os.path.join(testdir, 'test-devenv.py')
+ app = os.path.join(self.builddir, 'app')
+ self._run(cmd + python_command + [script])
+ self.assertEqual('This is text.', self._run(cmd + [app]).strip())
+
class FailureTests(BasePlatformTests):
'''