summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortodd <todd@openbsd.org>2002-02-21 03:57:41 +0000
committertodd <todd@openbsd.org>2002-02-21 03:57:41 +0000
commit0b345b248d897bd5b4cfe77c72d596f759ab891d (patch)
treeee48eee87b436999ae36d113316aefe54dac2994
parent Typo and... (diff)
downloadwireguard-openbsd-0b345b248d897bd5b4cfe77c72d596f759ab891d.tar.xz
wireguard-openbsd-0b345b248d897bd5b4cfe77c72d596f759ab891d.zip
test ramdisk targets too
-rw-r--r--regress/etc/MAKEDEV/Makefile36
1 files changed, 22 insertions, 14 deletions
diff --git a/regress/etc/MAKEDEV/Makefile b/regress/etc/MAKEDEV/Makefile
index 484d7a4b5a2..b6d49c1c290 100644
--- a/regress/etc/MAKEDEV/Makefile
+++ b/regress/etc/MAKEDEV/Makefile
@@ -1,32 +1,40 @@
-# $OpenBSD: Makefile,v 1.10 2002/02/18 10:43:48 art Exp $
+# $OpenBSD: Makefile,v 1.11 2002/02/21 03:57:41 todd Exp $
MAKEDEVARCHS+=alpha amiga hp300 hppa i386 mac68k macppc mvme68k mvme88k
MAKEDEVARCHS+=mvmeppc sparc sparc64 sun3 vax
-ETCSRCDIR?= /usr/src/etc
+MAKEDEVTARGS+=all ramdisk
-# test separate targets, all, ramdisk/raminst, std, etc
+ETCSRCDIR?= /usr/src/etc
-REGRESSTARGETS=${MAKEDEVARCHS}
REGRESSSLOWTARGETS=${REGRESSTARGETS}
-${MAKEDEVARCHS}:
- @echo "====> ${.TARGET}"
- @exec ${SUDO} rm -rf test.${.TARGET}
- @exec mkdir -p -m 700 test.${.TARGET}
- @exec cp ${ETCSRCDIR}/etc.${.TARGET}/MAKEDEV test.${.TARGET}
- @exec ${SUDO} chown root.wheel test.${.TARGET}
- @cd test.${.TARGET}; time ${SUDO} sh ./MAKEDEV all || true; \
- time ${SUDO} sh ./MAKEDEV all || true; \
- ( ls -ln; ls -ln fd/; ls -ln altq/ ) | \
+# test separate targets, all, ramdisk/raminst, std, etc
+# t1 = all
+# t2 = ramdisk
+
+REGRESSTARGETS+= ${MAKEDEVARCHS}
+
+${REGRESSTARGETS}:
+. for _T in ${MAKEDEVTARGS}
+ @echo "====> ${_T}.${.TARGET}"
+ @exec ${SUDO} rm -rf test.${_T}.${.TARGET}
+ @exec mkdir -p -m 700 test.${_T}.${.TARGET}
+ @exec cp ${ETCSRCDIR}/etc.${.TARGET}/MAKEDEV test.${_T}.${.TARGET}
+ @exec ${SUDO} chown root.wheel test.${_T}.${.TARGET}
+ @cd test.${_T}.${.TARGET}; \
+ time ${SUDO} sh ./MAKEDEV ${_T} || true; \
+ time ${SUDO} sh ./MAKEDEV ${_T} || true; \
+ ( ls -ln; ls -ln fd/; ls -ln altq/ ) 2> /dev/null | \
awk '/^[bcps]/ {printf "%s %x.%x %x,%x%s\n",$$1,$$3,$$4,$$5,$$6,$$10} \
/^l/ {printf "%s %s.%s%s>%s\n",$$1,$$3,$$4,$$9,$$11}' | \
sort +5 -n | \
sed -e 's/rwx/7/g;s/rw-/6/g;s/r-x/5/g;s/r--/4/g' \
-e 's/-wx/3/g;s/-w-/2/g;s/--x/1/g;s/---/0/g' \
-e 's/^\([bcpsl]\)\([0-9][0-9]*\) /\2\1/' \
- > ../t1.${.TARGET}.out
+ > ../t1.${_T}.${.TARGET}.out
+.endfor
clean:
for f in ${MAKEDEVARCHS}; do rm -rf test.$$f; done