Merge ~alextu/plainbox-provider-pc-sanity:add-autopkgtest into plainbox-provider-pc-sanity:master

Proposed by Alex Tu
Status: Merged
Merged at revision: 2620b2fc8b2a6fe2d85c0726d78eb1da6977bc85
Proposed branch: ~alextu/plainbox-provider-pc-sanity:add-autopkgtest
Merge into: plainbox-provider-pc-sanity:master
Diff against target: 94 lines (+31/-5)
9 files modified
README.md (+12/-0)
autopkgtest.sh (+7/-0)
debian/changelog (+2/-1)
debian/tests/checkbox-cli-list (+2/-0)
debian/tests/control (+2/-0)
debian/tests/help (+2/-0)
debian/tests/info-attachment-cert-automated (+2/-0)
debian/tests/pc-sanity-smoke-test (+2/-0)
dev/null (+0/-4)
Reviewer Review Type Date Requested Status
Yuan-Chen Cheng (community) Approve
Shih-Yuan Lee Pending
jeremyszu Pending
OEM Solutions Group: Engineers Pending
Review via email: mp+392735@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Alex Tu (alextu) wrote :

# to build testbed
$ ./autopkgtest.sh build
https://paste.ubuntu.com/p/Qszs7vqRhc/

# to run autopkgtest
$ ./autopkgtest.sh
https://paste.ubuntu.com/p/kCQSg2RxPW/

Revision history for this message
Yuan-Chen Cheng (ycheng-twn) wrote :

LGTM

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/README.md b/README.md
2new file mode 100644
3index 0000000..1974c32
4--- /dev/null
5+++ b/README.md
6@@ -0,0 +1,12 @@
7+# Plainbox Provider for pc sanity
8+
9+This provider contains test cases and a test plan for pc sanity testing.
10+
11+It depends on packages from ppa:checkbox-dev/ppa in build time.
12+The launchpad recipe build it daily : https://code.launchpad.net/~oem-solutions-engineers/+recipe/plainbox-provider-pc-sanity-daily-1
13+
14+## Run autopkgtest to check build time and installation time sanity.
15+ - build testbed
16+$ `.autopkgtest.sh build`
17+ - run autopkgtest against current source.
18+$ `.autopkgtest.sh`
19diff --git a/README.rst b/README.rst
20deleted file mode 100644
21index 702788e..0000000
22--- a/README.rst
23+++ /dev/null
24@@ -1,4 +0,0 @@
25-Plainbox Provider for Kernel SRU testing
26-========================================
27-
28-This provider contains test cases and a test plan for pc sanity testing.
29diff --git a/autopkgtest.sh b/autopkgtest.sh
30new file mode 100755
31index 0000000..3d8737d
32--- /dev/null
33+++ b/autopkgtest.sh
34@@ -0,0 +1,7 @@
35+#!/bin/bash
36+
37+if [ "build" = "$1" ]; then
38+ autopkgtest-build-lxd images:ubuntu/focal/amd64
39+else
40+ autopkgtest -U --setup-commands="sudo apt-get install -y wget snapd software-properties-common && add-apt-repository -y -u -s ppa:checkbox-dev/ppa && export DEBIAN_FRONTEND=noninteractive" --shell-fail -- lxd autopkgtest/ubuntu/focal/amd64
41+fi
42diff --git a/debian/changelog b/debian/changelog
43index ab58c86..33f8f33 100644
44--- a/debian/changelog
45+++ b/debian/changelog
46@@ -1,6 +1,7 @@
47-plainbox-provider-pc-sanity (1.0.0ubuntu1) UNRELEASED; urgency=medium
48+plainbox-provider-pc-sanity (1.0.1) UNRELEASED; urgency=medium
49
50 * fix build error.
51+ * add autopkgtest to check build and installation time error.
52
53 -- Alex Tu <alex.tu@canonical.com> Mon, 19 Oct 2020 18:43:35 +0800
54
55diff --git a/debian/tests/checkbox-cli-list b/debian/tests/checkbox-cli-list
56new file mode 100755
57index 0000000..8290b79
58--- /dev/null
59+++ b/debian/tests/checkbox-cli-list
60@@ -0,0 +1,2 @@
61+#!/bin/sh
62+checkbox-cli list | grep pc-sanity-smoke-test
63diff --git a/debian/tests/control b/debian/tests/control
64new file mode 100644
65index 0000000..45035b3
66--- /dev/null
67+++ b/debian/tests/control
68@@ -0,0 +1,2 @@
69+Tests: help, checkbox-cli-list
70+Depends: @, prepare-checkbox-sanity
71diff --git a/debian/tests/help b/debian/tests/help
72new file mode 100755
73index 0000000..3a2c83a
74--- /dev/null
75+++ b/debian/tests/help
76@@ -0,0 +1,2 @@
77+#!/bin/sh
78+checkbox-run-plan --help
79diff --git a/debian/tests/info-attachment-cert-automated b/debian/tests/info-attachment-cert-automated
80new file mode 100755
81index 0000000..17cc24d
82--- /dev/null
83+++ b/debian/tests/info-attachment-cert-automated
84@@ -0,0 +1,2 @@
85+#!/bin/sh
86+checkbox-run-plan info-attachment-cert-automated -b
87diff --git a/debian/tests/pc-sanity-smoke-test b/debian/tests/pc-sanity-smoke-test
88new file mode 100755
89index 0000000..fc3ce63
90--- /dev/null
91+++ b/debian/tests/pc-sanity-smoke-test
92@@ -0,0 +1,2 @@
93+#!/bin/sh
94+checkbox-run-plan pc-sanity-smoke-test -b

Subscribers

People subscribed via source and target branches