-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Combine all ptest tests into a single run, for speed.
Old `make ptest` locally: 1m34 New `make ptest` locally: 55s Doesn't work on CI for some reason, so actually disabled for `make ptest`. Use ./run_tests.py instead
- Loading branch information
Showing
13 changed files
with
106 additions
and
53 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#!/usr/bin/env python3 | ||
|
||
import inspect | ||
import os | ||
import sys | ||
|
||
sys.path.insert(0, "test") | ||
|
||
import ptest | ||
import test.apps.ctrl.test as p_ctrl | ||
import test.apps.db_dump.test as p_db_dump | ||
import test.apps.passwd.test as p_passwd | ||
import test.apps.signal.test as p_signal | ||
import test.broker.test as p_broker | ||
import test.client.test as p_client | ||
import test.lib.test as p_lib | ||
|
||
test = ptest.PTest() | ||
test.add_tests(p_client.tests, "test/client") | ||
test.add_tests(p_lib.tests, "test/lib") | ||
test.add_tests(p_ctrl.tests, "test/apps/ctrl") | ||
test.add_tests(p_db_dump.tests, "test/apps/db_dump") | ||
test.add_tests(p_passwd.tests, "test/apps/ctrl") | ||
test.add_tests(p_signal.tests, "test/apps/signal") | ||
test.add_tests(p_broker.tests, "test/broker") | ||
|
||
test.run() |
Empty file.
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 |
---|---|---|
@@ -1,13 +1,16 @@ | ||
#!/usr/bin/env python3 | ||
|
||
import mosq_test_helper | ||
import os | ||
import pathlib | ||
import sys | ||
sys.path.insert(0, "../..") | ||
import ptest | ||
|
||
tests = [] | ||
|
||
for test_file in pathlib.Path('.').glob('db-dump-*.py'): | ||
for test_file in pathlib.Path(os.path.abspath(os.path.dirname(__file__))).glob('db-dump-*.py'): | ||
tests.append((1, test_file.resolve())) | ||
|
||
test = ptest.PTest() | ||
test.run_tests(tests) | ||
if __name__ == "__main__": | ||
test = ptest.PTest() | ||
test.run_tests(tests) |
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 |
---|---|---|
@@ -1,13 +1,16 @@ | ||
#!/usr/bin/env python3 | ||
|
||
import mosq_test_helper | ||
import os | ||
import pathlib | ||
import sys | ||
sys.path.insert(0, "../..") | ||
import ptest | ||
|
||
tests = [] | ||
|
||
for test_file in pathlib.Path('.').glob('passwd-*.py'): | ||
for test_file in pathlib.Path(os.path.abspath(os.path.dirname(__file__))).glob('passwd-*.py'): | ||
tests.append((1, test_file.resolve())) | ||
|
||
test = ptest.PTest() | ||
test.run_tests(tests) | ||
if __name__ == "__main__": | ||
test = ptest.PTest() | ||
test.run_tests(tests) |
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 |
---|---|---|
@@ -1,13 +1,16 @@ | ||
#!/usr/bin/env python3 | ||
|
||
import mosq_test_helper | ||
import os | ||
import pathlib | ||
import sys | ||
sys.path.insert(0, "../..") | ||
import ptest | ||
|
||
tests = [] | ||
|
||
for test_file in pathlib.Path('.').glob('signal-*.py'): | ||
for test_file in pathlib.Path(os.path.abspath(os.path.dirname(__file__))).glob('signal-*.py'): | ||
tests.append((1, test_file.resolve())) | ||
|
||
test = ptest.PTest() | ||
test.run_tests(tests) | ||
if __name__ == "__main__": | ||
test = ptest.PTest() | ||
test.run_tests(tests) |
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
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
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
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