diff options
Diffstat (limited to 'busybox/testsuite/grep')
6 files changed, 16 insertions, 0 deletions
diff --git a/busybox/testsuite/grep/egrep-is-not-case-insensitive b/busybox/testsuite/grep/egrep-is-not-case-insensitive new file mode 100644 index 0000000..8816073 --- /dev/null +++ b/busybox/testsuite/grep/egrep-is-not-case-insensitive @@ -0,0 +1,2 @@ +# FEATURE: CONFIG_FEATURE_GREP_EGREP_ALIAS +test x`echo foo | busybox egrep FOO` = x diff --git a/busybox/testsuite/grep/egrep-supports-extended-regexps b/busybox/testsuite/grep/egrep-supports-extended-regexps new file mode 100644 index 0000000..6ef8b91 --- /dev/null +++ b/busybox/testsuite/grep/egrep-supports-extended-regexps @@ -0,0 +1,2 @@ +# FEATURE: CONFIG_FEATURE_GREP_EGREP_ALIAS +echo foo | busybox egrep fo+ diff --git a/busybox/testsuite/grep/grep-handles-binary-files b/busybox/testsuite/grep/grep-handles-binary-files new file mode 100644 index 0000000..edb2042 --- /dev/null +++ b/busybox/testsuite/grep/grep-handles-binary-files @@ -0,0 +1 @@ +echo -e '\0foo' | busybox grep foo diff --git a/busybox/testsuite/grep/grep-handles-multiple-regexps b/busybox/testsuite/grep/grep-handles-multiple-regexps new file mode 100644 index 0000000..5c1b8de --- /dev/null +++ b/busybox/testsuite/grep/grep-handles-multiple-regexps @@ -0,0 +1 @@ +echo foo | busybox grep -e foo -e bar diff --git a/busybox/testsuite/grep/grep-is-also-egrep b/busybox/testsuite/grep/grep-is-also-egrep new file mode 100644 index 0000000..2e6977c --- /dev/null +++ b/busybox/testsuite/grep/grep-is-also-egrep @@ -0,0 +1,2 @@ +# FEATURE: CONFIG_FEATURE_GREP_EGREP_ALIAS +echo foo | busybox egrep foo diff --git a/busybox/testsuite/grep/grep-matches-NUL b/busybox/testsuite/grep/grep-matches-NUL new file mode 100644 index 0000000..082bd87 --- /dev/null +++ b/busybox/testsuite/grep/grep-matches-NUL @@ -0,0 +1,8 @@ +set +e +echo -e '\0' | busybox grep . +if [ $? != 0 ] ; then + exit 0; +fi + +exit 1; + |