aboutsummaryrefslogtreecommitdiffstats
path: root/debian
diff options
context:
space:
mode:
authorLibravatarUnit 193 <unit193@ubuntu.com>2018-10-16 01:13:13 -0400
committerLibravatarUnit 193 <unit193@ubuntu.com>2018-10-16 01:13:13 -0400
commit3dcd9b6c95dd3933c7c2e48bd4b40c991ba7b70f (patch)
tree9623b0c434218e71fac385cfc72fa5433a4b1fb1 /debian
parent98ca71a6480d5ccdb65972b393963120d671f52b (diff)
downloadinxi-3dcd9b6c95dd3933c7c2e48bd4b40c991ba7b70f.tar.bz2
inxi-3dcd9b6c95dd3933c7c2e48bd4b40c991ba7b70f.tar.xz
inxi-3dcd9b6c95dd3933c7c2e48bd4b40c991ba7b70f.tar.zst
Add basic autopkgtests.
Diffstat (limited to 'debian')
-rwxr-xr-xdebian/tests/basic-operation10
-rw-r--r--debian/tests/control2
2 files changed, 12 insertions, 0 deletions
diff --git a/debian/tests/basic-operation b/debian/tests/basic-operation
new file mode 100755
index 0000000..b1bf718
--- /dev/null
+++ b/debian/tests/basic-operation
@@ -0,0 +1,10 @@
+#!/usr/bin/perl
+use Test::Script;
+
+script_compiles('inxi', "script compiles");
+script_runs(['inxi', '--full'], "full output");
+script_runs(['inxi', '--version'], "version check");
+script_runs(['inxi', '--update'], { exit => 20 }, "update disabled");
+script_runs(['inxi', '--kvack'], { exit => 1 }, "error handling");
+
+done_testing;
diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644
index 0000000..3f0e21c
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,2 @@
+Tests: basic-operation
+Depends: @, libtest-script-perl