Integrate contrib/netbsd-tests/bin/dd into the FreeBSD test suite as
bin/dd/tests Ensure fdescfs is mounted on /dev/fd/ for the length testcase as it's used in validating the characters read from /dev/zero MFC after: 2 weeks Sponsored by: EMC / Isilon Storage Division
This commit is contained in:
parent
a53f1fce3b
commit
36ace8a0d3
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=289487
@ -1,6 +1,8 @@
|
|||||||
# @(#)Makefile 8.1 (Berkeley) 5/31/93
|
# @(#)Makefile 8.1 (Berkeley) 5/31/93
|
||||||
# $FreeBSD$
|
# $FreeBSD$
|
||||||
|
|
||||||
|
.include <src.opts.mk>
|
||||||
|
|
||||||
PROG= dd
|
PROG= dd
|
||||||
SRCS= args.c conv.c conv_tab.c dd.c misc.c position.c
|
SRCS= args.c conv.c conv_tab.c dd.c misc.c position.c
|
||||||
|
|
||||||
@ -24,4 +26,8 @@ test: ${PROG} gen
|
|||||||
.endfor
|
.endfor
|
||||||
@rm -f gen
|
@rm -f gen
|
||||||
|
|
||||||
|
.if ${MK_TESTS} != "no"
|
||||||
|
SUBDIR+= tests
|
||||||
|
.endif
|
||||||
|
|
||||||
.include <bsd.prog.mk>
|
.include <bsd.prog.mk>
|
||||||
|
7
bin/dd/tests/Makefile
Normal file
7
bin/dd/tests/Makefile
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
# $FreeBSD$
|
||||||
|
|
||||||
|
NETBSD_ATF_TESTS_SH= dd_test
|
||||||
|
|
||||||
|
.include <netbsd-tests.test.mk>
|
||||||
|
|
||||||
|
.include <bsd.test.mk>
|
@ -44,6 +44,12 @@ length_head() {
|
|||||||
"the one expected to fail. (NetBSD PR bin/8521)"
|
"the one expected to fail. (NetBSD PR bin/8521)"
|
||||||
}
|
}
|
||||||
length_body() {
|
length_body() {
|
||||||
|
# Begin FreeBSD
|
||||||
|
if ! df /dev/fd | grep -q '^fdescfs'; then
|
||||||
|
atf_skip "fdescfs is not mounted on /dev/fd"
|
||||||
|
fi
|
||||||
|
# End FreeBSD
|
||||||
|
|
||||||
test_dd_length 512 \
|
test_dd_length 512 \
|
||||||
"dd if=/dev/zero of=/dev/fd/5 count=1 5>&1 >/dev/null 2>/dev/null"
|
"dd if=/dev/zero of=/dev/fd/5 count=1 5>&1 >/dev/null 2>/dev/null"
|
||||||
test_dd_length 512 \
|
test_dd_length 512 \
|
||||||
|
@ -12,6 +12,8 @@
|
|||||||
..
|
..
|
||||||
date
|
date
|
||||||
..
|
..
|
||||||
|
dd
|
||||||
|
..
|
||||||
expr
|
expr
|
||||||
..
|
..
|
||||||
ls
|
ls
|
||||||
|
Loading…
Reference in New Issue
Block a user