Skip to content

Latest commit

 

History

History
44 lines (32 loc) · 968 Bytes

File metadata and controls

44 lines (32 loc) · 968 Bytes

Smoke Tests

Smoke tests are the most basic tests — they check if simulations run without crashing and terminate properly.

Python API

# Run smoke tests for all simulations from the default project
run_smoke_tests()

# Run for a specific project and config
run_smoke_tests(simulation_project=aloha_project,
                config_filter="PureAlohaExperiment")

Example output:

[6/7] . -c TandemQueueExperiment -r 3 PASS
[5/7] . -c TandemQueueExperiment -r 2 PASS
...
[2/7] . -c Fifo2 PASS
Multiple smoke test results: PASS, summary: 7 PASS in 0:00:01.117562

Re-running tests

r = run_smoke_tests(simulation_project=aloha_project,
                    config_filter="PureAlohaExperiment")

# Re-run all smoke tests from the last result
r = r.rerun()

# Re-run only the failed tests
r = r.get_fail_results().rerun()

Command Line

opp_run_smoke_tests --load "/home/user/workspace/omnetpp/**/*.opp" -p fifo