sponge(1): fix my tests
Reviewed by: kevans
This commit is contained in:
parent
95639a80ef
commit
8d4a7aab40
@ -712,6 +712,8 @@
|
|||||||
..
|
..
|
||||||
soelim
|
soelim
|
||||||
..
|
..
|
||||||
|
sponge
|
||||||
|
..
|
||||||
stat
|
stat
|
||||||
..
|
..
|
||||||
tail
|
tail
|
||||||
|
@ -148,6 +148,7 @@ SUBDIR= alias \
|
|||||||
soelim \
|
soelim \
|
||||||
sort \
|
sort \
|
||||||
split \
|
split \
|
||||||
|
sponge \
|
||||||
stat \
|
stat \
|
||||||
stdbuf \
|
stdbuf \
|
||||||
strings \
|
strings \
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
# $FreeBSD$
|
# $FreeBSD$
|
||||||
|
|
||||||
PACKAGE= ${TESTBASE}/usr.bin/sponge
|
PACKAGE= tests
|
||||||
|
|
||||||
TESTSDIR= ${TESTSBASE}/usr.bin/sponge/tests
|
TESTSDIR= ${TESTSBASE}/usr.bin/sponge
|
||||||
|
|
||||||
ATF_TESTS_SH= cp_test
|
ATF_TESTS_SH= sponge_test
|
||||||
|
|
||||||
.include <bsd.test.mk>
|
.include <bsd.test.mk>
|
||||||
|
@ -33,7 +33,7 @@ simple_body() {
|
|||||||
printf 'a\nd\ne\n' >| y
|
printf 'a\nd\ne\n' >| y
|
||||||
sort x | sponge x
|
sort x | sponge x
|
||||||
|
|
||||||
atf_check -s exit:0 -o empty -e empty 'sort x | sponge x'
|
atf_check -s exit:0 -o empty -e empty -x 'sort x | sponge x'
|
||||||
|
|
||||||
if ! cmp -s x y; then
|
if ! cmp -s x y; then
|
||||||
echo "x and y differ, but they should be equal"
|
echo "x and y differ, but they should be equal"
|
||||||
|
Loading…
Reference in New Issue
Block a user