add regression tests for stuff recently fixed.

This commit is contained in:
christos 2008-12-21 00:24:06 +00:00
parent 9ac082db6c
commit dab49f36c7
5 changed files with 35 additions and 2 deletions

View File

@ -1,6 +1,6 @@
# $NetBSD: Makefile,v 1.15 2008/02/08 20:04:50 christos Exp $
# $NetBSD: Makefile,v 1.16 2008/12/21 00:24:06 christos Exp $
# missing: libexec sbin usr.sbin share
SUBDIR+= gnu include lib libexec sys usr.bin
SUBDIR+= bin gnu include lib libexec sys usr.bin
.include <bsd.subdir.mk>

5
regress/bin/Makefile Normal file
View File

@ -0,0 +1,5 @@
# $NetBSD: Makefile,v 1.10 2008/12/21 00:24:07 christos Exp $
SUBDIR+= sh
.include <bsd.subdir.mk>

12
regress/bin/sh/Makefile Normal file
View File

@ -0,0 +1,12 @@
# $NetBSD: Makefile,v 1.13 2008/12/21 00:24:07 christos Exp $
.include <bsd.sys.mk>
TESTS != echo [a-z]*
regress:
. for i in ${TESTS}
${.CURDIR}/$i
. endfor
.include <bsd.subdir.mk>

8
regress/bin/sh/var1 Executable file
View File

@ -0,0 +1,8 @@
#!/bin/sh
line='/foo/bar/*/baz'
if [ "/foo/bar/" != ${line%%\**}"" ]
then
echo broken
exit 1
fi

8
regress/bin/sh/waitjob Executable file
View File

@ -0,0 +1,8 @@
#!/bin/sh
sleep 3 &
sleep 1 &
wait %1
[ $? = 0 ] || echo fail1
wait %2
[ $? = 0 ] || echo fail2