Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/regress/usr.bin/config Add a test to make sure loops are han...
details: https://anonhg.NetBSD.org/src/rev/3e89408a01a1
branches: trunk
changeset: 584870:3e89408a01a1
user: cube <cube%NetBSD.org@localhost>
date: Tue Oct 04 22:56:20 2005 +0000
description:
Add a test to make sure loops are handled properly.
diffstat:
regress/usr.bin/config/LOOP | 23 +++++++++++++++++++++++
regress/usr.bin/config/Makefile | 6 +++---
regress/usr.bin/config/support/conf/files | 10 ++++++++++
3 files changed, 36 insertions(+), 3 deletions(-)
diffs (68 lines):
diff -r a6d4221d1e45 -r 3e89408a01a1 regress/usr.bin/config/LOOP
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/regress/usr.bin/config/LOOP Tue Oct 04 22:56:20 2005 +0000
@@ -0,0 +1,23 @@
+include "arch/regress/conf/std.regress"
+maxusers 4
+file-system REGRESSFS
+
+master0 at root
+
+# The following definitions build a loop of 'looper' devices.
+# This tests how well the code that look for orphans handle loops.
+#
+# In that case, while the loopchild devices will always be seen in
+# time, the code has to make sure it reaches all the loopbaby
+# devices.
+
+looper0 at master0
+looper1 at looper0
+
+loopchild0 at looper0
+loopchild1 at looper1
+
+loopbaby0 at loopchild0
+loopbaby1 at loopchild1
+
+config regress root on ?
diff -r a6d4221d1e45 -r 3e89408a01a1 regress/usr.bin/config/Makefile
--- a/regress/usr.bin/config/Makefile Tue Oct 04 20:13:39 2005 +0000
+++ b/regress/usr.bin/config/Makefile Tue Oct 04 22:56:20 2005 +0000
@@ -1,9 +1,9 @@
-# $NetBSD: Makefile,v 1.2 2005/10/04 13:44:23 cube Exp $
+# $NetBSD: Makefile,v 1.3 2005/10/04 22:56:20 cube Exp $
# Those configurations only have to be understood by config(1) without
# errors.
-SIMPLE_SUCCESS= SHADOW_INSTANCE
+SIMPLE_SUCCESS= SHADOW_INSTANCE LOOP
SIMPLE_FAILURE= POSTPONED_ORPHAN
SIMPLE= ${SIMPLE_SUCCESS} ${SIMPLE_FAILURE}
@@ -43,7 +43,7 @@
${__conf__}-regress:
@mkdir -p compile/${__conf__}
- ${CONFIG_LINE.${__conf__}}
+ @${CONFIG_LINE.${__conf__}}
${__conf__}-clean:
@if [ -d compile/${__conf__} ]; then rm -Rf compile/${__conf__}; fi
diff -r a6d4221d1e45 -r 3e89408a01a1 regress/usr.bin/config/support/conf/files
--- a/regress/usr.bin/config/support/conf/files Tue Oct 04 20:13:39 2005 +0000
+++ b/regress/usr.bin/config/support/conf/files Tue Oct 04 22:56:20 2005 +0000
@@ -12,3 +12,13 @@
device child
attach child at hook
+
+device looper { }
+attach looper at master with looper_master
+attach looper at looper with looper_looper
+
+device loopchild { }
+attach loopchild at looper
+
+device loopbaby
+attach loopbaby at loopchild
Home |
Main Index |
Thread Index |
Old Index