* [PATCH] [VSP-Tests] tests: add pseudo platform test
@ 2018-01-15 16:47 Kieran Bingham
2018-01-15 16:49 ` Kieran Bingham
0 siblings, 1 reply; 2+ messages in thread
From: Kieran Bingham @ 2018-01-15 16:47 UTC (permalink / raw)
To: Laurent Pinchart; +Cc: linux-renesas-soc, Kieran Bingham
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>
---
tests/vsp-unit-test-0000.sh | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)
create mode 100755 tests/vsp-unit-test-0000.sh
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 ":"
--
2.7.4
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [PATCH] [VSP-Tests] tests: add pseudo platform test
2018-01-15 16:47 [PATCH] [VSP-Tests] tests: add pseudo platform test Kieran Bingham
@ 2018-01-15 16:49 ` Kieran Bingham
0 siblings, 0 replies; 2+ messages in thread
From: Kieran Bingham @ 2018-01-15 16:49 UTC (permalink / raw)
To: Kieran Bingham, Laurent Pinchart; +Cc: linux-renesas-soc
Ahem, ...
Not that it really matters but perhaps that should read 'add platform pseudo
test' instead.?
--
Kieran
On 15/01/18 16:47, Kieran Bingham wrote:
> 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>
> ---
> tests/vsp-unit-test-0000.sh | 20 ++++++++++++++++++++
> 1 file changed, 20 insertions(+)
> create mode 100755 tests/vsp-unit-test-0000.sh
>
> 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 ":"
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-01-15 16:49 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-01-15 16:47 [PATCH] [VSP-Tests] tests: add pseudo platform test Kieran Bingham
2018-01-15 16:49 ` Kieran Bingham
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox