From f72048de0ef2108ebe0959501a4cfac1af5dc204 Mon Sep 17 00:00:00 2001 From: Poul-Henning Kamp Date: Sun, 24 Mar 2002 14:29:39 +0000 Subject: [PATCH] Add a testcase for the alpha BSD label from beast. --- tools/regression/geom/Test/T013/Makefile | 3 + tools/regression/geom/Test/T013/ref.conf | 138 ++++++++++++++++++++++ tools/regression/geom/Test/T013/testprg.c | 70 +++++++++++ 3 files changed, 211 insertions(+) create mode 100644 tools/regression/geom/Test/T013/Makefile create mode 100644 tools/regression/geom/Test/T013/ref.conf create mode 100644 tools/regression/geom/Test/T013/testprg.c diff --git a/tools/regression/geom/Test/T013/Makefile b/tools/regression/geom/Test/T013/Makefile new file mode 100644 index 000000000000..e94463675a2f --- /dev/null +++ b/tools/regression/geom/Test/T013/Makefile @@ -0,0 +1,3 @@ +# $FreeBSD$ +.include "../Makefile.inc" +.include diff --git a/tools/regression/geom/Test/T013/ref.conf b/tools/regression/geom/Test/T013/ref.conf new file mode 100644 index 000000000000..151133d0736b --- /dev/null +++ b/tools/regression/geom/Test/T013/ref.conf @@ -0,0 +1,138 @@ + + $FreeBSD$ + + 0x8072220 + DEV-method + + 0x80b9380 + 0x8072220 + da0c + 3 + + 0x80b8300 + 0x80b9380 + 0x80b8240 + r0w0e0 + + + + 0x80b9200 + 0x8072220 + da0b + 3 + + 0x80b82c0 + 0x80b9200 + 0x80b8200 + r0w0e0 + + + + 0x80b9180 + 0x8072220 + da0a + 3 + + 0x80b8280 + 0x80b9180 + 0x80b81c0 + r0w0e0 + + + + 0x80b80c0 + 0x8072220 + da0 + 2 + + 0x80b8100 + 0x80b80c0 + 0x80b8080 + r0w0e0 + + + + + 0x80721e0 + MBREXT-method + + + 0x80721a0 + MBR-method + + + 0x8072260 + BSD-method + + 0x80b8140 + 0x8072260 + da0 + 2 + + + + 0x80b8180 + 0x80b8140 + 0x80b8080 + r0w0e0 + + + + + 0x80b8240 + 0x80b8140 + r0w0e0 + da0c + + 2 + 4335206400 + 8467200 + 0 + 0 + + + + 0x80b8200 + 0x80b8140 + r0w0e0 + da0b + + 1 + 270925824 + 529152 + 4064280576 + 7938048 + + + + 0x80b81c0 + 0x80b8140 + r0w0e0 + da0a + + 0 + 4064280576 + 7938048 + 0 + 0 + + + + + + 0x80720e0 + SIMDISK-method + + 0x80b8040 + 0x80720e0 + da0 + 1 + + 0x80b8080 + 0x80b8040 + r0w0e0 + da0 + + + + diff --git a/tools/regression/geom/Test/T013/testprg.c b/tools/regression/geom/Test/T013/testprg.c new file mode 100644 index 000000000000..ce91b5e5a7e9 --- /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 +#include +#include +#include +#include +#include +#include +#include +#include +#include + +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); +} +