diff options
| author | Jilles Tjoelker <jilles@FreeBSD.org> | 2016-09-02 21:13:46 +0000 |
|---|---|---|
| committer | Jilles Tjoelker <jilles@FreeBSD.org> | 2016-09-02 21:13:46 +0000 |
| commit | 681e94f4d03f609ecaeaa8229fcfae31bb5311f0 (patch) | |
| tree | 21597f16e71dc3169065ee81bfed5008d61b56a1 /bin/sh/tests | |
| parent | 8f120c0db344cd4570d1b4e1c2271f052fc25edb (diff) | |
Notes
Diffstat (limited to 'bin/sh/tests')
| -rw-r--r-- | bin/sh/tests/builtins/Makefile | 3 | ||||
| -rw-r--r-- | bin/sh/tests/builtins/echo1.0 | 6 | ||||
| -rw-r--r-- | bin/sh/tests/builtins/echo2.0 | 7 | ||||
| -rw-r--r-- | bin/sh/tests/builtins/echo3.0 | 5 |
4 files changed, 21 insertions, 0 deletions
diff --git a/bin/sh/tests/builtins/Makefile b/bin/sh/tests/builtins/Makefile index bd23550324c2..b3e325507dd5 100644 --- a/bin/sh/tests/builtins/Makefile +++ b/bin/sh/tests/builtins/Makefile @@ -68,6 +68,9 @@ ${PACKAGE}FILES+= dot1.0 ${PACKAGE}FILES+= dot2.0 ${PACKAGE}FILES+= dot3.0 ${PACKAGE}FILES+= dot4.0 +${PACKAGE}FILES+= echo1.0 +${PACKAGE}FILES+= echo2.0 +${PACKAGE}FILES+= echo3.0 ${PACKAGE}FILES+= eval1.0 ${PACKAGE}FILES+= eval2.0 ${PACKAGE}FILES+= eval3.0 diff --git a/bin/sh/tests/builtins/echo1.0 b/bin/sh/tests/builtins/echo1.0 new file mode 100644 index 000000000000..75ed8fbbc45f --- /dev/null +++ b/bin/sh/tests/builtins/echo1.0 @@ -0,0 +1,6 @@ +# $FreeBSD$ + +# Not specified by POSIX. + +[ "`echo -n a b; echo c d; echo e f`" = "a bc d +e f" ] diff --git a/bin/sh/tests/builtins/echo2.0 b/bin/sh/tests/builtins/echo2.0 new file mode 100644 index 000000000000..254b5c4dca4f --- /dev/null +++ b/bin/sh/tests/builtins/echo2.0 @@ -0,0 +1,7 @@ +# $FreeBSD$ + +# Not specified by POSIX. + +a=`echo -e '\a\b\e\f\n\r\t\v\\\\\0041\c'; echo .` +b=`printf '\a\b\033\f\n\r\t\v\\\\!.'` +[ "$a" = "$b" ] diff --git a/bin/sh/tests/builtins/echo3.0 b/bin/sh/tests/builtins/echo3.0 new file mode 100644 index 000000000000..ff8f6c2f26e4 --- /dev/null +++ b/bin/sh/tests/builtins/echo3.0 @@ -0,0 +1,5 @@ +# $FreeBSD$ + +# Not specified by POSIX. + +[ "`echo -e 'a\cb' c; echo d`" = "ad" ] |
