mirror of
https://github.com/JakeHillion/object-introspection.git
synced 2024-09-19 11:09:05 +01:00
Integration test readme: Add example of how to run a single test
Also minor cleanup of gen_tests.py
This commit is contained in:
parent
425bb3fc24
commit
7c1b4c2a43
@ -12,14 +12,16 @@ additional options to aid debugging:
|
|||||||
- `--preserve` Do not clean up files generated by OID after tests are finished
|
- `--preserve` Do not clean up files generated by OID after tests are finished
|
||||||
- `--force` Run tests that have been marked as "skipped"
|
- `--force` Run tests that have been marked as "skipped"
|
||||||
|
|
||||||
1. Run a number of the integration tests in parallel:
|
e.g.
|
||||||
```ctest --test-dir build/test/integration -j$(nproc) [--tests-regex <regex>]```
|
```sh
|
||||||
|
build/test/integration/integration_test_runner --gtest_filter=OidIntegration.primitives_int --verbose
|
||||||
|
```
|
||||||
|
|
||||||
1. Run along with all tests with either of:
|
1. Run a number of the integration tests in parallel:
|
||||||
```
|
|
||||||
make test-devel
|
```sh
|
||||||
make test-static
|
ctest --test-dir build/test/integration -j$(nproc) [--tests-regex <regex>]
|
||||||
```
|
```
|
||||||
|
|
||||||
## Adding tests
|
## Adding tests
|
||||||
|
|
||||||
|
@ -238,7 +238,7 @@ def add_oid_integration_test(f, config, case_name, case):
|
|||||||
|
|
||||||
f.write(
|
f.write(
|
||||||
f"\n"
|
f"\n"
|
||||||
f'TEST_F(OidIntegration, {config["suite"]}_{case_name}) {{\n'
|
f"TEST_F(OidIntegration, {case_str}) {{\n"
|
||||||
f"{generate_skip(case, 'oid')}"
|
f"{generate_skip(case, 'oid')}"
|
||||||
f' std::string configOptions = R"--(\n'
|
f' std::string configOptions = R"--(\n'
|
||||||
f"{config_extra}\n"
|
f"{config_extra}\n"
|
||||||
@ -309,7 +309,7 @@ def add_oil_integration_test(f, config, case_name, case):
|
|||||||
|
|
||||||
f.write(
|
f.write(
|
||||||
f"\n"
|
f"\n"
|
||||||
f'TEST_F(OilIntegration, {config["suite"]}_{case_name}) {{\n'
|
f"TEST_F(OilIntegration, {case_str}) {{\n"
|
||||||
f"{generate_skip(case, 'oil')}"
|
f"{generate_skip(case, 'oil')}"
|
||||||
f" ba::io_context ctx;\n"
|
f" ba::io_context ctx;\n"
|
||||||
f" auto target = runOilTarget({{\n"
|
f" auto target = runOilTarget({{\n"
|
||||||
|
Loading…
Reference in New Issue
Block a user