summaryrefslogtreecommitdiffstats
path: root/rpm/rootfs-scripts/resource/tests/rpm_01.sh
diff options
context:
space:
mode:
authorduerpei <duep.fnst@fujitsu.com>2022-07-14 14:17:13 +0800
committerduerpei <duep.fnst@fujitsu.com>2022-07-14 14:17:13 +0800
commit761c64f22b8a6c1202a2c9caafda36e154e81d41 (patch)
treebcde3881bed4d48b2b05aff9d8a2990d11445909 /rpm/rootfs-scripts/resource/tests/rpm_01.sh
parent8e0004e1d751dce49b97b00d65519c92609a213a (diff)
qa-test-misc: demo code submissionneedlefish_13.93.0needlefish/13.93.013.93.0
Submit the test scripts of rpm and glib2, and the file of LICENSE and README Bug-AGL: SPEC-4345 Signed-off-by: duerpei <duep.fnst@fujitsu.com> Change-Id: I2e2311d2864285c4c5da3309486b2e1fa8adc2ec
Diffstat (limited to 'rpm/rootfs-scripts/resource/tests/rpm_01.sh')
-rw-r--r--rpm/rootfs-scripts/resource/tests/rpm_01.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/rpm/rootfs-scripts/resource/tests/rpm_01.sh b/rpm/rootfs-scripts/resource/tests/rpm_01.sh
new file mode 100644
index 0000000..6ab9e3d
--- /dev/null
+++ b/rpm/rootfs-scripts/resource/tests/rpm_01.sh
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+# The testscript checks the following options of the command file
+# 1) Option help
+
+test="rpm01"
+
+if rpm --help | grep .*Usage.*
+then
+ echo " -> $test: TEST-PASS"
+else
+ echo " -> $test: TEST-FAIL"
+fi;