From 8bf24ac2c1ec2ca7e4256adb6db247306d50f0a3 Mon Sep 17 00:00:00 2001 From: phk Date: Mon, 16 Dec 2002 21:39:16 +0000 Subject: Get the test-suite into sync with the kernel again. --- tools/regression/geom/ConfCmp/ConfCmp.c | 7 +++++++ tools/regression/geom/GLib/Makefile | 2 +- tools/regression/geom/Test/Makefile | 2 +- tools/regression/geom/Test/T001/ref.conf | 12 +++++++++--- tools/regression/geom/Test/T004/ref.conf | 4 +++- tools/regression/geom/Test/T005/ref.conf | 4 +++- tools/regression/geom/Test/T013/ref.conf | 12 +++++++++--- tools/regression/geom/geom_sim.h | 1 + 8 files changed, 34 insertions(+), 10 deletions(-) (limited to 'tools/regression') diff --git a/tools/regression/geom/ConfCmp/ConfCmp.c b/tools/regression/geom/ConfCmp/ConfCmp.c index 858b9e9..69a3c58 100644 --- a/tools/regression/geom/ConfCmp/ConfCmp.c +++ b/tools/regression/geom/ConfCmp/ConfCmp.c @@ -48,6 +48,8 @@ #include #include +FILE *fsubs; + struct node { LIST_HEAD(, node) children; LIST_ENTRY(node) siblings; @@ -266,6 +268,10 @@ refcmp(char *r1, char *r2) r->k1 = strdup(r1); r->k2 = strdup(r2); LIST_INSERT_HEAD(&refs, r, next); + if (fsubs != NULL) { + fprintf(fsubs, "s/%s/%s/g\n", r1, r2); + fflush(fsubs); + } return (0); } @@ -351,6 +357,7 @@ main(int argc, char **argv) struct mytree *t1, *t2; int i; + fsubs = fopen("_.subs", "w"); setbuf(stdout, NULL); setbuf(stderr, NULL); if (argc != 3) diff --git a/tools/regression/geom/GLib/Makefile b/tools/regression/geom/GLib/Makefile index 93b9812..01d9836 100644 --- a/tools/regression/geom/GLib/Makefile +++ b/tools/regression/geom/GLib/Makefile @@ -16,7 +16,7 @@ CFLAGS += -DKERNELSIM NOPIC = static NOPROFILE = bingo NOOBJ = youbet -WARNS = 2 +WARNS = 0 .PATH: /sys/geom .. /sys/kern diff --git a/tools/regression/geom/Test/Makefile b/tools/regression/geom/Test/Makefile index 602334f..ebceb87 100644 --- a/tools/regression/geom/Test/Makefile +++ b/tools/regression/geom/Test/Makefile @@ -1,7 +1,7 @@ # $FreeBSD$ SUBDIR+= T000 T001 T002 T003 T004 T005 T006 T007 T008 T009 -SUBDIR+= T010 T011 T012 T013 T014 +SUBDIR+= T011 T012 T013 T014 # SUBDIR+= T999 diff --git a/tools/regression/geom/Test/T001/ref.conf b/tools/regression/geom/Test/T001/ref.conf index e8f52b8..e41d2e5 100644 --- a/tools/regression/geom/Test/T001/ref.conf +++ b/tools/regression/geom/Test/T001/ref.conf @@ -206,8 +206,10 @@ ad0s3 3 - 512 8192 + 512 + 16768080 + 8585256960 @@ -264,8 +266,10 @@ ad0s2 3 - 512 8192 + 512 + 6289920 + 3220439040 @@ -294,8 +298,10 @@ ad0s1 3 - 512 8192 + 512 + 63 + 32256 diff --git a/tools/regression/geom/Test/T004/ref.conf b/tools/regression/geom/Test/T004/ref.conf index 3548da0..73aa1a2 100644 --- a/tools/regression/geom/Test/T004/ref.conf +++ b/tools/regression/geom/Test/T004/ref.conf @@ -146,8 +146,10 @@ ad0s1 3 - 512 8192 + 512 + 63 + 32256 diff --git a/tools/regression/geom/Test/T005/ref.conf b/tools/regression/geom/Test/T005/ref.conf index 60e2af9..50644ce 100644 --- a/tools/regression/geom/Test/T005/ref.conf +++ b/tools/regression/geom/Test/T005/ref.conf @@ -56,8 +56,10 @@ ad0 2 - 512 8192 + 512 + 0 + 0 diff --git a/tools/regression/geom/Test/T013/ref.conf b/tools/regression/geom/Test/T013/ref.conf index 1098f4c..8b3c93c 100644 --- a/tools/regression/geom/Test/T013/ref.conf +++ b/tools/regression/geom/Test/T013/ref.conf @@ -156,8 +156,10 @@ da2 2 - 64 8192 + 64 + 0 + 0 @@ -214,8 +216,10 @@ da1 2 - 64 8192 + 64 + 0 + 0 @@ -300,8 +304,10 @@ da0 2 - 64 8192 + 64 + 0 + 0 diff --git a/tools/regression/geom/geom_sim.h b/tools/regression/geom/geom_sim.h index d3c48ac..1c98a99 100644 --- a/tools/regression/geom/geom_sim.h +++ b/tools/regression/geom/geom_sim.h @@ -165,3 +165,4 @@ void sdumpf(char *file); #define THR_DOWN 2 #define THR_EVENT 3 +#define EJUSTRETURN (-2) -- cgit v1.1