aboutsummaryrefslogtreecommitdiff
path: root/run_unittests.py
diff options
context:
space:
mode:
authorOleg B <code.viator@gmail.com>2020-12-13 17:32:52 +0300
committerGitHub <noreply@github.com>2020-12-13 16:32:52 +0200
commitb8052f9e50ce26f7f6914f0fe7d2a3b101ab14e9 (patch)
tree9f31603cddde514cd90f835e5a93e8d24323fd2a /run_unittests.py
parent7437d9862a16bab3fd0c025769d5928f2ed1548e (diff)
downloadmeson-b8052f9e50ce26f7f6914f0fe7d2a3b101ab14e9.zip
meson-b8052f9e50ce26f7f6914f0fe7d2a3b101ab14e9.tar.gz
meson-b8052f9e50ce26f7f6914f0fe7d2a3b101ab14e9.tar.bz2
Support native tests in crossbuild
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 84719d6..b9db708 100755
--- a/run_unittests.py
+++ b/run_unittests.py
@@ -7507,6 +7507,19 @@ class LinuxCrossArmTests(BaseLinuxCrossTests):
'-Dbuild.pkg_config_path=' + os.path.join(testdir, 'build_extra_path'),
'-Dpkg_config_path=' + os.path.join(testdir, 'host_extra_path'),
])
+
+ def test_run_native_test(self):
+ '''
+ https://github.com/mesonbuild/meson/issues/7997
+ check run native test in crossbuild without exe wrapper
+ '''
+ testdir = os.path.join(self.unit_test_dir, '88 run native test')
+ stamp_file = os.path.join(self.builddir, 'native_test_has_run.stamp')
+ self.init(testdir)
+ self.build()
+ self.assertPathDoesNotExist(stamp_file)
+ self.run_tests()
+ self.assertPathExists(stamp_file)
def should_run_cross_mingw_tests():