From 358e076f1a57c96a6e57a45646495cd6e93e7e31 Mon Sep 17 00:00:00 2001 From: phk Date: Fri, 27 Sep 2002 22:20:53 +0000 Subject: Update to match current kernel code. Fix a couple of reference data which were found to be in error. Sponsored by: DARPA & NAI Labs. --- tools/regression/geom/GLib/Makefile | 4 +- tools/regression/geom/Test/T013/ref.conf | 260 +++++++++++++++--------------- tools/regression/geom/Test/T013/testprg.c | 1 - tools/regression/geom/Test/T014/ref.conf | 140 ++++++++-------- tools/regression/geom/geom_sim.h | 5 +- 5 files changed, 207 insertions(+), 203 deletions(-) (limited to 'tools') diff --git a/tools/regression/geom/GLib/Makefile b/tools/regression/geom/GLib/Makefile index 758cf67..cfa8d04 100644 --- a/tools/regression/geom/GLib/Makefile +++ b/tools/regression/geom/GLib/Makefile @@ -1,7 +1,9 @@ # $FreeBSD$ LIB= G -SRCS= geom.c geom_bsd.c geom_simdev.c geom_dump.c geom_event.c geom_io.c \ +SRCS= geom.c geom_aes.c geom_bsd.c geom_simdev.c geom_dump.c \ + geom_event.c geom_gpt.c \ + geom_io.c \ geom_kernsim.c geom_mbr.c geom_simdisk.c geom_enc.c \ geom_simdisk_xml.c geom_slice.c geom_subr.c subr_sbuf.c \ geom_sunlabel.c geom_pc98.c diff --git a/tools/regression/geom/Test/T013/ref.conf b/tools/regression/geom/Test/T013/ref.conf index 0fb60b1..675034a 100644 --- a/tools/regression/geom/Test/T013/ref.conf +++ b/tools/regression/geom/Test/T013/ref.conf @@ -1,225 +1,225 @@ $FreeBSD$ - + DEV-class - - + + da2c 3 - - - + + + r0w0e0 - - + + da2b 3 - - - + + + r0w0e0 - - + + da2a 3 - - - + + + r0w0e0 - - + + da1f 3 - - - + + + r0w0e0 - - + + da1e 3 - - - + + + r0w0e0 - - + + da1c 3 - - - + + + r0w0e0 - - + + da1b 3 - - - + + + r0w0e0 - - + + da1a 3 - - - + + + r0w0e0 - - + + da0c 3 - - - + + + r0w0e0 - - + + da0b 3 - - - + + + r0w0e0 - - + + da0a 3 - - - + + + r0w0e0 - - + + da2 2 - - - + + + r0w0e0 - - + + da1 2 - - - + + + r0w0e0 - - + + da0 2 - - - + + + r0w0e0 - + MBREXT - + MBR - + BSD - - + + da2 2 64 8192 - - - + + + r0w0e0 - - + + r0w0e0 da2c 2 74027520 144585 - 0 - 0 + 4211343360 + 8225280 - - + + r0w0e0 da2b 1 4178442240 8161020 - 2194844813312 - 4286806276 + 32901120 + 64260 - - + + r0w0e0 da2a 0 24675840 48195 - 2194820137472 - 4286758081 + 8225280 + 16065 - - + + da1 2 64 8192 - - - + + + r0w0e0 - - + + r0w0e0 da1f @@ -230,8 +230,8 @@ 2654144 - - + + r0w0e0 da1e @@ -242,8 +242,8 @@ 2613184 - - + + r0w0e0 da1c @@ -254,8 +254,8 @@ 0 - - + + r0w0e0 da1b @@ -266,8 +266,8 @@ 491520 - - + + r0w0e0 da1a @@ -279,23 +279,23 @@ - - + + da0 2 64 8192 - - - + + + r0w0e0 - - + + r0w0e0 da0c @@ -306,8 +306,8 @@ 0 - - + + r0w0e0 da0b @@ -318,8 +318,8 @@ 7938048 - - + + r0w0e0 da0a @@ -332,34 +332,34 @@ - + SIMDISK-class - - + + da2 1 - - + + r0w0e0 da2 - - + + da1 1 - - + + r0w0e0 da1 - - + + da0 1 - - + + r0w0e0 da0 diff --git a/tools/regression/geom/Test/T013/testprg.c b/tools/regression/geom/Test/T013/testprg.c index f538a30..d014161 100644 --- a/tools/regression/geom/Test/T013/testprg.c +++ b/tools/regression/geom/Test/T013/testprg.c @@ -69,4 +69,3 @@ thread_sim(void *ptr __unused) done(); return (0); } - diff --git a/tools/regression/geom/Test/T014/ref.conf b/tools/regression/geom/Test/T014/ref.conf index 9f7d978..168a3ef 100644 --- a/tools/regression/geom/Test/T014/ref.conf +++ b/tools/regression/geom/Test/T014/ref.conf @@ -1,136 +1,136 @@ $FreeBSD$ - + DEV-class - - + + wd0s1f 4 - - - + + + r0w0e0 - - + + wd0s1e 4 - - - + + + r0w0e0 - - + + wd0s1c 4 - - - + + + r0w0e0 - - + + wd0s1b 4 - - - + + + r0w0e0 - - + + wd0s1a 4 - - - + + + r0w0e0 - - + + wd0s1 3 - - - + + + r0w0e0 - - + + wd0 2 - - - + + + r0w0e0 - + PC98 - - + + wd0 2 8704 - - - + + + r0w0e0 - - + + r0w0e0 wd0s1 0 - 1626533888 - 3176824 + 1626603520 + 3176960 69632 136 - + SUN - + MBREXT - + MBR - + BSD - - + + wd0s1 3 512 8192 - - - + + + r0w0e0 - - + + r0w0e0 wd0s1f @@ -141,8 +141,8 @@ 460800 - - + + r0w0e0 wd0s1e @@ -153,8 +153,8 @@ 358400 - - + + r0w0e0 wd0s1c @@ -165,8 +165,8 @@ 0 - - + + r0w0e0 wd0s1b @@ -177,8 +177,8 @@ 153600 - - + + r0w0e0 wd0s1a @@ -191,14 +191,14 @@ - + SIMDISK-class - - + + wd0 1 - - + + r0w0e0 wd0 diff --git a/tools/regression/geom/geom_sim.h b/tools/regression/geom/geom_sim.h index 6ea0470..56a5be8 100644 --- a/tools/regression/geom/geom_sim.h +++ b/tools/regression/geom/geom_sim.h @@ -40,6 +40,8 @@ pthread_cond_t ptc_up, ptc_down, ptc_event; pthread_mutex_t ptm_up, ptm_down, ptm_event; +#define CTASSERT(foo) + /* bio.h */ struct bio { @@ -102,7 +104,8 @@ void new_thread(void *(*func)(void *arg), char *name); extern int bootverbose; #define KASSERT(cond, txt) do {if (!(cond)) {printf txt; conff("err"); abort();}} while(0) #define M_WAITOK 0 -#define M_ZERO 1 +#define M_NOWAIT 1 +#define M_ZERO 2 extern struct mtx Giant; void *g_malloc(int size, int flags); -- cgit v1.1