From 572dfb8e78323b9837f7c5e3369ee233a440b8f2 Mon Sep 17 00:00:00 2001 From: Chen Qi Date: Wed, 21 Nov 2018 10:19:28 +0800 Subject: testsuite: check CONFIG_DESKTOP before using 'od -t' The '-t' option for od is enabled by CONFIG_DESKTOP. So check this config before using 'od -t' in test cases. Signed-off-by: Chen Qi Signed-off-by: Denys Vlasenko --- testsuite/echo/echo-prints-dash | 1 + testsuite/echo/echo-prints-non-opts | 1 + testsuite/echo/echo-prints-slash-zero | 2 +- testsuite/echo/echo-prints-slash_00041 | 2 +- testsuite/echo/echo-prints-slash_0041 | 2 +- testsuite/echo/echo-prints-slash_041 | 2 +- testsuite/echo/echo-prints-slash_41 | 2 +- 7 files changed, 7 insertions(+), 5 deletions(-) (limited to 'testsuite') diff --git a/testsuite/echo/echo-prints-dash b/testsuite/echo/echo-prints-dash index ddcdbadf7..f1f31a034 100644 --- a/testsuite/echo/echo-prints-dash +++ b/testsuite/echo/echo-prints-dash @@ -1 +1,2 @@ +# FEATURE: CONFIG_DESKTOP test "`busybox echo - | od -t x1 | head -n 1`" = "0000000 2d 0a" diff --git a/testsuite/echo/echo-prints-non-opts b/testsuite/echo/echo-prints-non-opts index c7d1e201a..4e642a143 100644 --- a/testsuite/echo/echo-prints-non-opts +++ b/testsuite/echo/echo-prints-non-opts @@ -1 +1,2 @@ +# FEATURE: CONFIG_DESKTOP test "`busybox echo -neEZ | od -t x1 | head -n 1`" = "0000000 2d 6e 65 45 5a 0a" diff --git a/testsuite/echo/echo-prints-slash-zero b/testsuite/echo/echo-prints-slash-zero index d97ed8e66..948f899da 100644 --- a/testsuite/echo/echo-prints-slash-zero +++ b/testsuite/echo/echo-prints-slash-zero @@ -1,3 +1,3 @@ -# FEATURE: CONFIG_FEATURE_FANCY_ECHO +# FEATURE: CONFIG_FEATURE_FANCY_ECHO CONFIG_DESKTOP test "`busybox echo -e -n 'msg\n\0' | od -t x1 | head -n 1`" = "0000000 6d 73 67 0a 00" diff --git a/testsuite/echo/echo-prints-slash_00041 b/testsuite/echo/echo-prints-slash_00041 index 9cffabde0..7ea217bc5 100644 --- a/testsuite/echo/echo-prints-slash_00041 +++ b/testsuite/echo/echo-prints-slash_00041 @@ -1,3 +1,3 @@ -# FEATURE: CONFIG_FEATURE_FANCY_ECHO +# FEATURE: CONFIG_FEATURE_FANCY_ECHO CONFIG_DESKTOP test "`busybox echo -ne '\00041z' | od -t x1 | head -n 1`" = "0000000 04 31 7a" diff --git a/testsuite/echo/echo-prints-slash_0041 b/testsuite/echo/echo-prints-slash_0041 index b07429dfd..941faca08 100644 --- a/testsuite/echo/echo-prints-slash_0041 +++ b/testsuite/echo/echo-prints-slash_0041 @@ -1,3 +1,3 @@ -# FEATURE: CONFIG_FEATURE_FANCY_ECHO +# FEATURE: CONFIG_FEATURE_FANCY_ECHO CONFIG_DESKTOP test "`busybox echo -ne '\0041z' | od -t x1 | head -n 1`" = "0000000 21 7a" diff --git a/testsuite/echo/echo-prints-slash_041 b/testsuite/echo/echo-prints-slash_041 index 1d70cec92..60cbfca3d 100644 --- a/testsuite/echo/echo-prints-slash_041 +++ b/testsuite/echo/echo-prints-slash_041 @@ -1,3 +1,3 @@ -# FEATURE: CONFIG_FEATURE_FANCY_ECHO +# FEATURE: CONFIG_FEATURE_FANCY_ECHO CONFIG_DESKTOP test "`busybox echo -ne '\041z' | od -t x1 | head -n 1`" = "0000000 21 7a" diff --git a/testsuite/echo/echo-prints-slash_41 b/testsuite/echo/echo-prints-slash_41 index 6d8999b4e..afd7c36d1 100644 --- a/testsuite/echo/echo-prints-slash_41 +++ b/testsuite/echo/echo-prints-slash_41 @@ -1,3 +1,3 @@ -# FEATURE: CONFIG_FEATURE_FANCY_ECHO +# FEATURE: CONFIG_FEATURE_FANCY_ECHO CONFIG_DESKTOP test "`busybox echo -ne '\41z' | od -t x1 | head -n 1`" = "0000000 21 7a" -- cgit v1.2.3