View | Details | Raw Unified | Return to bug 220587 | Differences between
and this patch

Collapse All | Expand All

(-)b/bin/sh/tests/Makefile (+1 lines)
Lines 6-11 TESTS_SUBDIRS+= builtins Link Here
6
TESTS_SUBDIRS+=	errors
6
TESTS_SUBDIRS+=	errors
7
TESTS_SUBDIRS+=	execution
7
TESTS_SUBDIRS+=	execution
8
TESTS_SUBDIRS+=	expansion
8
TESTS_SUBDIRS+=	expansion
9
TESTS_SUBDIRS+=	invocation
9
TESTS_SUBDIRS+=	parameters
10
TESTS_SUBDIRS+=	parameters
10
TESTS_SUBDIRS+=	parser
11
TESTS_SUBDIRS+=	parser
11
TESTS_SUBDIRS+=	set-e
12
TESTS_SUBDIRS+=	set-e
(-)b/bin/sh/tests/invocation/Makefile (+15 lines)
Added Link Here
1
# $FreeBSD$
2
3
PACKAGE=	tests
4
5
TESTSDIR=	${TESTSBASE}/bin/sh/${.CURDIR:T}
6
7
.PATH: ${.CURDIR:H}
8
ATF_TESTS_SH=	functional_test
9
10
${PACKAGE}FILES+=	sh-ac1.0
11
${PACKAGE}FILES+=	sh-c1.0
12
${PACKAGE}FILES+=	sh-ca1.0
13
${PACKAGE}FILES+=	sh-fca1.0
14
15
.include <bsd.test.mk>
(-)b/bin/sh/tests/invocation/sh-ac1.0 (+7 lines)
Added Link Here
1
# $FreeBSD$
2
# Test that attached options before c are processed
3
4
case `${SH} -ac 'echo $-:$0' moo` in
5
*a*:moo) true ;;
6
*) false ;;
7
esac
(-)b/bin/sh/tests/invocation/sh-c1.0 (+4 lines)
Added Link Here
1
# $FreeBSD$
2
# Test that -c executes command_string with the given name and arg
3
4
${SH} -c 'echo $0 $@' moo foo | grep -qx -- "moo foo"
(-)b/bin/sh/tests/invocation/sh-ca1.0 (+7 lines)
Added Link Here
1
# $FreeBSD$
2
# Test that attached options after c are processed
3
4
case `${SH} -ca 'echo $-:$0' moo` in
5
*a*:moo) true ;;
6
*) false ;;
7
esac
(-)b/bin/sh/tests/invocation/sh-fca1.0 (+7 lines)
Added Link Here
1
# $FreeBSD$
2
# Test that attached options before and after c are processed
3
4
case `${SH} -fca 'echo $-:$-:$0:$@' foo -bar` in
5
*f*:*a*:foo:-bar) true ;;
6
*) false ;;
7
esac
(-)b/etc/mtree/BSD.tests.dist (+2 lines)
Lines 39-44 Link Here
39
            ..
39
            ..
40
            expansion
40
            expansion
41
            ..
41
            ..
42
            invocation
43
            ..
42
            parameters
44
            parameters
43
            ..
45
            ..
44
            parser
46
            parser

Return to bug 220587