diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2022-07-26 05:11:33 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2022-07-26 05:11:33 +0000 |
commit | a751023422eadf87cd8d6484878193a4914a9d85 (patch) | |
tree | 3fca0ae6325173fc2583e7d88abe4c38e6193277 /tests/README | |
parent | Adding upstream version 2.0. (diff) | |
download | nvme-cli-a751023422eadf87cd8d6484878193a4914a9d85.tar.xz nvme-cli-a751023422eadf87cd8d6484878193a4914a9d85.zip |
Adding upstream version 2.1~rc0.upstream/2.1_rc0
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'tests/README')
-rw-r--r-- | tests/README | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/README b/tests/README index b6a4d77..14b24e5 100644 --- a/tests/README +++ b/tests/README @@ -67,10 +67,10 @@ nvmetests test_*. 3. Based on the requirement one can inherit TestNVMe or TestNVMeIO class. - 4. Write test precondition code into __init__. Make sure you are calling - super class __init__. - 5. Write test post condition code into __del__. Make sure you are calling - super class __del__. + 4. Write test precondition code into setUp. Make sure you are calling + super class setUp. + 5. Write test post condition code into tearDown. Make sure you are calling + super class tearDown. 6. Before writing a new function have a look into TestNVMe to see if it can be reused. 7. Once testcase is ready make sure :- @@ -83,9 +83,9 @@ nvmetests 4. Running testcases with framework ----------------------------------- - 1. Running single testcase with nose2 :- - $ nose2 --verbose nvme_writezeros_test - $ nose2 --verbose nvme_read_write_test + 1. Running single testcase (in the source tree) with nose2 :- + $ nose2 --verbose --start-dir tests nvme_writezeros_test + $ nose2 --verbose --start-dir tests nvme_read_write_test - 2. Running all the testcases with ninja :- + 2. Running all the testcases (in the build root directory) with ninja :- $ ninja test -C .build |