diff options
| author | Sylvain Pineau <sylvain.pineau@canonical.com> | 2017-09-26 10:27:20 +0200 |
|---|---|---|
| committer | Sylvain Pineau <sylvain.pineau@canonical.com> | 2017-09-26 10:27:20 +0200 |
| commit | 78012795b553ba0b5ad0c2977d80d8f16831ae00 (patch) | |
| tree | 72bc986d7b32d1de0d6c34fc66c30dab133a8de1 /units/smoke | |
| parent | 2515d92d9abd6f8fb7d13b6647e9d1f9a9a88061 (diff) | |
Import plainbox-provider-checkbox_0.40.0~rc2.orig.tar.gzupstream-0.40.0_rc2patched-0.40.0_rc2-1
Diffstat (limited to 'units/smoke')
| -rw-r--r-- | units/smoke/jobs.pxu | 51 | ||||
| -rw-r--r-- | units/smoke/test-plan.pxu | 30 |
2 files changed, 81 insertions, 0 deletions
diff --git a/units/smoke/jobs.pxu b/units/smoke/jobs.pxu new file mode 100644 index 0000000..0e16299 --- /dev/null +++ b/units/smoke/jobs.pxu @@ -0,0 +1,51 @@ +plugin: shell +id: smoke/true +command: true +_description: + Check success result from shell test case + +plugin: shell +id: smoke/false +command: false +_description: + Check failed result from shell test case + +plugin: shell +id: smoke/dependency/good +depends: smoke/true +command: true +_description: + Check job is executed when dependency succeeds + +plugin: shell +id: smoke/dependency/bad +depends: smoke/false +command: true +_description: + Check job result is set to uninitiated when dependency fails + +plugin: shell +id: smoke/requirement/good +requires: package.name == "checkbox" +command: true +_description: + Check job is executed when requirements are met + +plugin: shell +id: smoke/requirement/bad +requires: package.name == "unknown-package" +command: true +_description: + Check job result is set to "not required on this system" when requirements are not met + +plugin: manual +id: smoke/manual +_description: + PURPOSE: + This test checks that the manual plugin works fine + STEPS: + 1. Add a comment + 2. Set the result as passed + VERIFICATION: + Check that in the report the result is passed and the comment is displayed + diff --git a/units/smoke/test-plan.pxu b/units/smoke/test-plan.pxu new file mode 100644 index 0000000..bcd69c6 --- /dev/null +++ b/units/smoke/test-plan.pxu @@ -0,0 +1,30 @@ +id: smoke +_name: All Smoke Tests +unit: test plan +_description: + This is an example test plan to start from. + To use, copy this file and add the jobs you want to run to the copy. Delete + these comments. DO NOT delete the first 9 jobs in tis file. + They are resource gathering jobs and are necessary to do any testing at all. +include: + cpuinfo + cdimage + dmi + dpkg + efi + environment + gconf + lsb + meminfo + module + package + device + uname + smoke/true + smoke/false + smoke/dependency/good + smoke/dependency/bad + smoke/requirement/good + smoke/requirement/bad + smoke/manual + |
