From 598e968993da58c89f773dc732c708a54b0ec8db Mon Sep 17 00:00:00 2001 From: Xavier Claessens Date: Sat, 20 Feb 2021 12:04:01 -0500 Subject: Add `meson devenv` command and meson.add_devenv() --- run_unittests.py | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'run_unittests.py') 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): ''' -- cgit v1.1