diff options
author | phk <phk@FreeBSD.org> | 2002-03-24 14:29:39 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2002-03-24 14:29:39 +0000 |
commit | 44e53e2154f957c227f943efd5de508c6ee34398 (patch) | |
tree | 76deb31ee3f08caf2b8d2af357c2dff368d473a4 /tools | |
parent | 7f990ca62cb9909d95b1e95a63e0d95e7602aca6 (diff) | |
download | FreeBSD-src-44e53e2154f957c227f943efd5de508c6ee34398.zip FreeBSD-src-44e53e2154f957c227f943efd5de508c6ee34398.tar.gz |
Add a testcase for the alpha BSD label from beast.
Diffstat (limited to 'tools')
-rw-r--r-- | tools/regression/geom/Test/T013/Makefile | 3 | ||||
-rw-r--r-- | tools/regression/geom/Test/T013/ref.conf | 138 | ||||
-rw-r--r-- | tools/regression/geom/Test/T013/testprg.c | 70 |
3 files changed, 211 insertions, 0 deletions
diff --git a/tools/regression/geom/Test/T013/Makefile b/tools/regression/geom/Test/T013/Makefile new file mode 100644 index 0000000..e944636 --- /dev/null +++ b/tools/regression/geom/Test/T013/Makefile @@ -0,0 +1,3 @@ +# $FreeBSD$ +.include "../Makefile.inc" +.include <bsd.prog.mk> diff --git a/tools/regression/geom/Test/T013/ref.conf b/tools/regression/geom/Test/T013/ref.conf new file mode 100644 index 0000000..151133d --- /dev/null +++ b/tools/regression/geom/Test/T013/ref.conf @@ -0,0 +1,138 @@ +<mesh> + <FreeBSD>$FreeBSD$</FreeBSD> + <method> + <ref>0x8072220</ref> + <name>DEV-method</name> + <geom> + <ref>0x80b9380</ref> + <method><ref>0x8072220</ref></method> + <name>da0c</name> + <rank>3</rank> + <consumer> + <ref>0x80b8300</ref> + <geom><ref>0x80b9380</ref></geom> + <provider><ref>0x80b8240</ref></provider> + <mode>r0w0e0</mode> + </consumer> + </geom> + <geom> + <ref>0x80b9200</ref> + <method><ref>0x8072220</ref></method> + <name>da0b</name> + <rank>3</rank> + <consumer> + <ref>0x80b82c0</ref> + <geom><ref>0x80b9200</ref></geom> + <provider><ref>0x80b8200</ref></provider> + <mode>r0w0e0</mode> + </consumer> + </geom> + <geom> + <ref>0x80b9180</ref> + <method><ref>0x8072220</ref></method> + <name>da0a</name> + <rank>3</rank> + <consumer> + <ref>0x80b8280</ref> + <geom><ref>0x80b9180</ref></geom> + <provider><ref>0x80b81c0</ref></provider> + <mode>r0w0e0</mode> + </consumer> + </geom> + <geom> + <ref>0x80b80c0</ref> + <method><ref>0x8072220</ref></method> + <name>da0</name> + <rank>2</rank> + <consumer> + <ref>0x80b8100</ref> + <geom><ref>0x80b80c0</ref></geom> + <provider><ref>0x80b8080</ref></provider> + <mode>r0w0e0</mode> + </consumer> + </geom> + </method> + <method> + <ref>0x80721e0</ref> + <name>MBREXT-method</name> + </method> + <method> + <ref>0x80721a0</ref> + <name>MBR-method</name> + </method> + <method> + <ref>0x8072260</ref> + <name>BSD-method</name> + <geom> + <ref>0x80b8140</ref> + <method><ref>0x8072260</ref></method> + <name>da0</name> + <rank>2</rank> + <config> + </config> + <consumer> + <ref>0x80b8180</ref> + <geom><ref>0x80b8140</ref></geom> + <provider><ref>0x80b8080</ref></provider> + <mode>r0w0e0</mode> + <config> + </config> + </consumer> + <provider> + <ref>0x80b8240</ref> + <geom><ref>0x80b8140</ref></geom> + <mode>r0w0e0</mode> + <name>da0c</name> + <config> + <index>2</index> + <length>4335206400</length> + <seclength>8467200</seclength> + <offset>0</offset> + <secoffset>0</secoffset> + </config> + </provider> + <provider> + <ref>0x80b8200</ref> + <geom><ref>0x80b8140</ref></geom> + <mode>r0w0e0</mode> + <name>da0b</name> + <config> + <index>1</index> + <length>270925824</length> + <seclength>529152</seclength> + <offset>4064280576</offset> + <secoffset>7938048</secoffset> + </config> + </provider> + <provider> + <ref>0x80b81c0</ref> + <geom><ref>0x80b8140</ref></geom> + <mode>r0w0e0</mode> + <name>da0a</name> + <config> + <index>0</index> + <length>4064280576</length> + <seclength>7938048</seclength> + <offset>0</offset> + <secoffset>0</secoffset> + </config> + </provider> + </geom> + </method> + <method> + <ref>0x80720e0</ref> + <name>SIMDISK-method</name> + <geom> + <ref>0x80b8040</ref> + <method><ref>0x80720e0</ref></method> + <name>da0</name> + <rank>1</rank> + <provider> + <ref>0x80b8080</ref> + <geom><ref>0x80b8040</ref></geom> + <mode>r0w0e0</mode> + <name>da0</name> + </provider> + </geom> + </method> +</mesh> diff --git a/tools/regression/geom/Test/T013/testprg.c b/tools/regression/geom/Test/T013/testprg.c new file mode 100644 index 0000000..ce91b5e --- /dev/null +++ b/tools/regression/geom/Test/T013/testprg.c @@ -0,0 +1,70 @@ +/*- + * Copyright (c) 2002 Poul-Henning Kamp + * Copyright (c) 2002 Networks Associates Technology, Inc. + * All rights reserved. + * + * This software was developed for the FreeBSD Project by Poul-Henning Kamp + * and NAI Labs, the Security Research Division of Network Associates, Inc. + * under DARPA/SPAWAR contract N66001-01-C-8035 ("CBOSS"), as part of the + * DARPA CHATS research program. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * 3. The names of the authors may not be used to endorse or promote + * products derived from this software without specific prior written + * permission. + * + * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + * + * $FreeBSD$ + */ + + +#include <stdio.h> +#include <unistd.h> +#include <string.h> +#include <stdlib.h> +#include <signal.h> +#include <err.h> +#include <sys/errno.h> +#include <sys/time.h> +#include <sys/sbuf.h> +#include <geom/geom.h> + +int +thread_sim(void *ptr __unused) +{ + + rattle(); + g_simdisk_init(); + g_bsd_init(); + g_mbr_init(); + g_mbrext_init(); + g_dev_init(NULL); + rattle(); + + + g_simdisk_xml_load("da0", "../../Data/disk.beast.da0.xml"); + rattle(); + conff("1"); + printf("Done\n"); + done(); + return (0); +} + |