forked from nodejs/node
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Updated the tooltest target to run unittest module - Renamed test/tools/test-js2c.py to be discoverable by unittest module - Added test class for `configure` shell script - Added a test to ensure `configure` script exits with status code zero when passed the `--ninja` flag Closes nodejs#29415
- Loading branch information
1 parent
d247a8e
commit 08b5e13
Showing
3 changed files
with
30 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import sys | ||
import os | ||
import unittest | ||
import subprocess | ||
|
||
|
||
class ConfigureTests(unittest.TestCase): | ||
def setUp(self): | ||
self.working_dir = os.path.abspath( | ||
os.path.join( | ||
os.path.dirname(__file__), | ||
'..', '..' | ||
) | ||
) | ||
|
||
def test_ninja(self): | ||
subprocess.check_call( | ||
'./configure --ninja', | ||
cwd=self.working_dir, | ||
shell=True, | ||
stdout=subprocess.PIPE, | ||
stderr=subprocess.PIPE | ||
) | ||
|
||
|
||
if (__name__ == '__main__' and | ||
sys.platform in ['linux', 'linux2', 'darwin', 'cygwin']): | ||
|
||
unittest.main() |
File renamed without changes.