Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <Qi.Chen@windriver.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
- Loading branch information
1 parent
71df2d3
commit 572dfb8
Showing
7 changed files
with
7 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
# FEATURE: CONFIG_DESKTOP | ||
test "`busybox echo - | od -t x1 | head -n 1`" = "0000000 2d 0a" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
# FEATURE: CONFIG_DESKTOP | ||
test "`busybox echo -neEZ | od -t x1 | head -n 1`" = "0000000 2d 6e 65 45 5a 0a" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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" |