Table Of Contents
Table Of Contents

inet.test.smoke

This module provides functionality for smoke testing of multiple simulations.

The main function is run_smoke_tests(). It allows running multiple smoke tests matching the provided filter criteria. Smoke tests check if simulations run without crashing and terminate properly.

Classes

SmokeTestTask

Represents a simulation test task that can be run (and re-run) without providing additional parameters.

Functions

get_smoke_test_tasks([cpu_time_limit, run_number])

Returns multiple smoke test tasks matching the provided filter criteria. The returned tasks can be run by calling

run_smoke_tests(**kwargs)

Runs one or more smoke tests that match the provided filter criteria.

Module Contents

inet.test.smoke.get_smoke_test_tasks(cpu_time_limit='1s', run_number=0, **kwargs)

Returns multiple smoke test tasks matching the provided filter criteria. The returned tasks can be run by calling the run method.

Parameters:

kwargs (dict) – The filter criteria parameters are inherited from the get_simulation_tasks method.

Returns (MultipleSimulationTestTasks):

an object that contains a list of SimulationTestTask objects matching the provided filter criteria. The result can be run (and re-run) without providing additional parameters.

inet.test.smoke.run_smoke_tests(**kwargs)

Runs one or more smoke tests that match the provided filter criteria.

Parameters:

kwargs (dict) – The filter criteria parameters are inherited from the get_smoke_test_tasks() function.

Returns (MultipleTestTaskResults):

an object that contains a list of SimulationTestTaskResult objects. Each object describes the result of running one test task.