diff mbox series

[VSP-Tests:] tests: add pseudo platform test

Message ID 20180831102359.18335-1-kieran@bingham.xyz (mailing list archive)
State Not Applicable
Delegated to: Geert Uytterhoeven
Headers show
Series [VSP-Tests:] tests: add pseudo platform test | expand

Commit Message

Kieran Bingham Aug. 31, 2018, 10:23 a.m. UTC
From: Kieran Bingham <kieran.bingham@ideasonboard.com>

Provide an initial test which can run as part of the test suite.
This test will report the platform and kernel version, along with
the identified paths of required utilities.

This will aid in ensuring that required tools are available on a
running platform - and report the kernel and platform details in
any test suite output for clarification of results.

Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
---

This addition allows extra information to be recorded about the system
when running the tests in a batch (or in future automated testing)

Ideally - we would report the version of each tool as well, allowing any
issues to be fully recreated.


 tests/vsp-unit-test-0000.sh | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)
 create mode 100755 tests/vsp-unit-test-0000.sh
diff mbox series

Patch

diff --git a/tests/vsp-unit-test-0000.sh b/tests/vsp-unit-test-0000.sh
new file mode 100755
index 000000000000..144cfc677b32
--- /dev/null
+++ b/tests/vsp-unit-test-0000.sh
@@ -0,0 +1,20 @@ 
+#!/bin/sh
+
+# Report testing conditions
+
+model=`cat /sys/firmware/devicetree/base/model`
+
+echo "Test Conditions:"
+
+function check_all() {
+	echo "  Platform: " "$model"
+	echo "  Kernel release: " `uname -r`
+	echo "  convert: " `which convert`
+	echo "  compare: " `which compare`
+	echo "  killall: " `which killall`
+	echo "  raw2rgbpnm: " `which raw2rgbpnm`
+	echo "  stress: " `which stress`
+	echo "  yavta: " `which yavta`
+}
+
+check_all | column -ts ":"