aboutsummaryrefslogtreecommitdiff
path: root/run_unittests.py
diff options
context:
space:
mode:
Diffstat (limited to 'run_unittests.py')
-rwxr-xr-xrun_unittests.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/run_unittests.py b/run_unittests.py
index cf30276..8df0001 100755
--- a/run_unittests.py
+++ b/run_unittests.py
@@ -73,6 +73,9 @@ class LinuxlikeTests(unittest.TestCase):
def build(self):
self.output += subprocess.check_output(self.ninja_command)
+ def run_target(self, target):
+ self.output += subprocess.check_output(self.ninja_command + [target])
+
def setconf(self, arg):
self.output += subprocess.check_output(self.mconf_command + [arg, self.builddir])
@@ -173,5 +176,10 @@ class LinuxlikeTests(unittest.TestCase):
self.assertEqual(intro[0]['install_filename'], '/usr/local/libtest/libstat.a')
self.assertEqual(intro[1]['install_filename'], '/usr/local/bin/prog')
+ def test_run_target_files_path(self):
+ testdir = os.path.join(self.common_test_dir, '58 run target')
+ self.init(testdir)
+ self.run_target('check_exists')
+
if __name__ == '__main__':
unittest.main()