diff options
author | yanxk <yanxk.fnst@fujitsu.com> | 2022-09-03 16:24:32 +0800 |
---|---|---|
committer | Xinkuan Yan <yanxk.fnst@fujitsu.com> | 2022-12-02 00:56:09 +0000 |
commit | 85e3c12681faca0519ca995a82feeb7709397ca2 (patch) | |
tree | ff4cff2addafab155353175e45b61e50a1840e52 /tests/crashme/spec.json | |
parent | ef29f9077a89038525e20a517d972453f2cc4d62 (diff) |
agl-test-framework: add test 'crashme'
'agl-test' modified, now, usr would not run dangerous
tests like this 'crashme' unless they do self selection
by '-m' pytest option. Set default to 'not dangerous'.
a new marker 'dangerous' has been add to the pytest.ini.
add new method into the agl_test_base.py, to help get path
of the 'spec.json', this file help stress tests like 'crashme'
to run under different stress levels.
for run_tests.py, modifications focus on how to run 'crashme'
under that different levels.
new marker 'order' would always ensure this 'crashme' test to
be placed as the so called 'last' test of all.
Bug-AGL: SPEC-4345
Signed-off-by: yanxk <yanxk.fnst@fujitsu.com>
Change-Id: Icb36d7c5c52430d89787f4373a2852b1b03ec8a6
Diffstat (limited to 'tests/crashme/spec.json')
-rw-r--r-- | tests/crashme/spec.json | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/crashme/spec.json b/tests/crashme/spec.json new file mode 100644 index 0000000..0d47b8c --- /dev/null +++ b/tests/crashme/spec.json @@ -0,0 +1,20 @@ +{ + "stress_level_low": { + "NBYTES": "+2000", + "SRAND": "666", + "NTRIES": "100", + "NSUB": "00:15:00" + }, + "stress_level_mid": { + "NBYTES": "+3000", + "SRAND": "666", + "NTRIES": "150", + "NSUB": "00:30:00" + }, + "stress_level_high": { + "NBYTES": "+8000", + "SRAND": "666", + "NTRIES": "800", + "NSUB": "01:00:00" + } +} |