| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 92fa4e0 commit 0dedecc
3 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -300,7 +300,7 @@ jstest: build-addons build-js-native-api-tests build-node-api-tests ## Runs addo | |||
| 300 | 300 | ||
| 301 | 301 | .PHONY: tooltest | |
| 302 | 302 | tooltest: | |
| 303 | - @$(PYTHON) test/tools/test-js2c.py | ||
| 303 | + @$(PYTHON) -m unittest discover -s ./test/tools | ||
| 304 | 304 | ||
| 305 | 305 | .PHONY: coverage-run-js | |
| 306 | 306 | coverage-run-js: | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,29 @@ | |||
| 1 | + import sys | ||
| 2 | + import os | ||
| 3 | + import unittest | ||
| 4 | + import subprocess | ||
| 5 | + | ||
| 6 | + | ||
| 7 | + class ConfigureTests(unittest.TestCase): | ||
| 8 | + def setUp(self): | ||
| 9 | + self.working_dir = os.path.abspath( | ||
| 10 | + os.path.join( | ||
| 11 | + os.path.dirname(__file__), | ||
| 12 | + '..', '..' | ||
| 13 | + ) | ||
| 14 | + ) | ||
| 15 | + | ||
| 16 | + def test_ninja(self): | ||
| 17 | + subprocess.check_call( | ||
| 18 | + './configure --ninja', | ||
| 19 | + cwd=self.working_dir, | ||
| 20 | + shell=True, | ||
| 21 | + stdout=subprocess.PIPE, | ||
| 22 | + stderr=subprocess.PIPE | ||
| 23 | + ) | ||
| 24 | + | ||
| 25 | + | ||
| 26 | + if (__name__ == '__main__' and | ||
| 27 | + sys.platform in ['linux', 'linux2', 'darwin', 'cygwin']): | ||
| 28 | + | ||
| 29 | + unittest.main() | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments