mosquitto/test/apps/db_dump/test.py
Roger A. Light adea690b9d 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
2024-11-21 17:07:32 +00:00

17 lines
332 B
Python
Executable file

#!/usr/bin/env python3
import os
import pathlib
import sys
sys.path.insert(0, "../..")
import ptest
tests = []
for test_file in pathlib.Path(os.path.abspath(os.path.dirname(__file__))).glob('db-dump-*.py'):
tests.append((1, test_file.resolve()))
if __name__ == "__main__":
test = ptest.PTest()
test.run_tests(tests)