Make sure build is up to date before running tests.

pull/15/head
Jussi Pakkanen 12 years ago
parent f010ec624c
commit f4b49734e5
  1. 2
      backends.py

@ -360,7 +360,7 @@ class NinjaBackend(Backend):
script_root = self.environment.get_script_dir()
test_script = os.path.join(script_root, 'meson_test.py')
test_data = os.path.join(self.environment.get_scratch_dir(), 'meson_test_setup.dat')
elem = NinjaBuildElement('test', 'CUSTOM_COMMAND', '')
elem = NinjaBuildElement('test', 'CUSTOM_COMMAND', 'all')
elem.add_item('COMMAND', [sys.executable, test_script, test_data])
elem.add_item('DESC', 'Running test suite.')
elem.write(outfile)

Loading…
Cancel
Save