Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/regress Remove the lib/csu/ and include/ tests; they have be...
details: https://anonhg.NetBSD.org/src/rev/513c794aeb22
branches: trunk
changeset: 756428:513c794aeb22
user: jmmv <jmmv%NetBSD.org@localhost>
date: Sat Jul 17 19:29:33 2010 +0000
description:
Remove the lib/csu/ and include/ tests; they have been converted to atf.
diffstat:
regress/Makefile | 4 +-
regress/include/Makefile | 6 -
regress/include/Makefile.inc | 4 -
regress/include/bitstring/Makefile | 27 -
regress/include/bitstring/bitstring_test.c | 240 -------
regress/include/bitstring/good/27 | 263 --------
regress/include/bitstring/good/32 | 303 ---------
regress/include/bitstring/good/49 | 439 --------------
regress/include/bitstring/good/64 | 559 ------------------
regress/include/bitstring/good/67 | 583 -------------------
regress/include/bitstring/good/8 | 111 ---
regress/include/bootblock/Makefile | 11 -
regress/include/bootblock/bootblock_test.c | 59 -
regress/include/okheaders/Makefile | 18 -
regress/include/okheaders/symbolcheck.c | 368 -----------
regress/include/stdarg/Makefile | 14 -
regress/include/stdint/Makefile | 8 -
regress/include/stdint/stdint.c | 20 -
regress/include/varargs/Makefile | 14 -
regress/lib/Makefile | 4 +-
regress/lib/csu/Makefile | 5 -
regress/lib/csu/Makefile.inc | 4 -
regress/lib/csu/initfini/Makefile | 27 -
regress/lib/csu/initfini/arch/alpha/initfini_asm.S | 22 -
regress/lib/csu/initfini/arch/arm/initfini_asm.S | 16 -
regress/lib/csu/initfini/arch/hppa/initfini_asm.S | 18 -
regress/lib/csu/initfini/arch/i386/initfini_asm.S | 16 -
regress/lib/csu/initfini/arch/m68k/initfini_asm.S | 16 -
regress/lib/csu/initfini/arch/mips/initfini_asm.S | 30 -
regress/lib/csu/initfini/arch/powerpc/initfini_asm.S | 16 -
regress/lib/csu/initfini/arch/sh3/initfini_asm.S | 32 -
regress/lib/csu/initfini/arch/sparc/initfini_asm.S | 18 -
regress/lib/csu/initfini/arch/sparc64/initfini_asm.S | 18 -
regress/lib/csu/initfini/arch/vax/initfini_asm.S | 16 -
regress/lib/csu/initfini/arch/x86_64/initfini_asm.S | 16 -
regress/lib/csu/initfini/expected | 3 -
regress/lib/csu/initfini/initfini.c | 40 -
37 files changed, 4 insertions(+), 3364 deletions(-)
diffs (truncated from 3526 to 300 lines):
diff -r a3a23f66bdbe -r 513c794aeb22 regress/Makefile
--- a/regress/Makefile Sat Jul 17 19:27:39 2010 +0000
+++ b/regress/Makefile Sat Jul 17 19:29:33 2010 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.17 2009/10/20 21:59:55 jmmv Exp $
+# $NetBSD: Makefile,v 1.18 2010/07/17 19:29:33 jmmv Exp $
# missing: libexec sbin usr.sbin share
-SUBDIR+= gnu include lib libexec sys usr.bin
+SUBDIR+= gnu lib libexec sys usr.bin
.include <bsd.subdir.mk>
diff -r a3a23f66bdbe -r 513c794aeb22 regress/include/Makefile
--- a/regress/include/Makefile Sat Jul 17 19:27:39 2010 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,6 +0,0 @@
-# $NetBSD: Makefile,v 1.10 2007/08/31 16:20:50 drochner Exp $
-
-# missing files: stdarg varargs
-SUBDIR+= bitstring bootblock okheaders stdint
-
-.include <bsd.subdir.mk>
diff -r a3a23f66bdbe -r 513c794aeb22 regress/include/Makefile.inc
--- a/regress/include/Makefile.inc Sat Jul 17 19:27:39 2010 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,4 +0,0 @@
-# $NetBSD: Makefile.inc,v 1.2 1998/01/09 08:03:45 perry Exp $
-#
-# do not install regression test programs
-proginstall::
diff -r a3a23f66bdbe -r 513c794aeb22 regress/include/bitstring/Makefile
--- a/regress/include/bitstring/Makefile Sat Jul 17 19:27:39 2010 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,27 +0,0 @@
-# $NetBSD: Makefile,v 1.10 2003/09/30 04:20:24 mycroft Exp $
-
-NOMAN= # defined
-
-PROG= bitstring_test
-
-regress: test-8 test-27 test-32 test-49 test-64 test-67
-
-test-8: ${PROG}
- ./${PROG} 8 | diff ${.CURDIR}/good/8 -
-
-test-27: ${PROG}
- ./${PROG} 27 | diff ${.CURDIR}/good/27 -
-
-test-32: ${PROG}
- ./${PROG} 32 | diff ${.CURDIR}/good/32 -
-
-test-49: ${PROG}
- ./${PROG} 49 | diff ${.CURDIR}/good/49 -
-
-test-64: ${PROG}
- ./${PROG} 64 | diff ${.CURDIR}/good/64 -
-
-test-67: ${PROG}
- ./${PROG} 67 | diff ${.CURDIR}/good/67 -
-
-.include <bsd.prog.mk>
diff -r a3a23f66bdbe -r 513c794aeb22 regress/include/bitstring/bitstring_test.c
--- a/regress/include/bitstring/bitstring_test.c Sat Jul 17 19:27:39 2010 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,240 +0,0 @@
-/* $NetBSD: bitstring_test.c,v 1.9 2008/04/28 20:23:04 martin Exp $ */
-
-/*-
- * Copyright (c) 1993 The NetBSD Foundation, Inc.
- * All rights reserved.
- *
- * 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.
- *
- * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. 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 FOUNDATION 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.
- */
-
-/*
- * this is a simple program to test bitstring.h
- * inspect the output, you should notice problems
- * choose the ATT or BSD flavor
- */
-#if 0
-#define ATT
-#else
-#define BSD /*-*/
-#endif
-
-/* include the following define if you want the
- * program to link. this corrects a misspeling
- * in bitstring.h
- */
-#define _bitstr_size bitstr_size
-
-#include <stdio.h>
-#include <stdlib.h>
-
-/* #ifdef NOTSOGOOD */
-#include "bitstring.h"
-/* #else */
-/* #include "gbitstring.h" */
-/* #endif */
-
-int TEST_LENGTH;
-#define DECL_TEST_LENGTH 37 /* a mostly random number */
-
-main(int argc, char *argv[])
-{
- void clearbits();
- void printbits();
- int b, i;
- bitstr_t *bs;
- bitstr_t bit_decl(bss, DECL_TEST_LENGTH);
-
- if (argc > 1)
- TEST_LENGTH = atoi(argv[1]);
- else
- TEST_LENGTH = DECL_TEST_LENGTH;
-
- if (TEST_LENGTH < 4) {
- fprintf(stderr, "TEST_LENGTH must be at least 4, but it is %d\n",
- TEST_LENGTH);
- exit(1);
- }
-
- (void) printf("Testing with TEST_LENGTH = %d\n\n", TEST_LENGTH);
-
- (void) printf("test _bit_byte, _bit_mask, and bitstr_size\n");
- (void) printf(" i _bit_byte(i) _bit_mask(i) bitstr_size(i)\n");
- for (i=0; i<TEST_LENGTH; i++) {
- (void) printf("%3d%15d%15d%15d\n",
- i, _bit_byte(i), _bit_mask(i), bitstr_size(i));
- }
-
- bs = bit_alloc(TEST_LENGTH);
- clearbits(bs, TEST_LENGTH);
- (void) printf("\ntest bit_alloc, clearbits, bit_ffc, bit_ffs\n");
- (void) printf("be: 0 -1 ");
- for (i=0; i < TEST_LENGTH; i++)
- (void) putchar('0');
- (void) printf("\nis: ");
- printbits(bs, TEST_LENGTH);
-
- (void) printf("\ntest bit_set\n");
- for (i=0; i<TEST_LENGTH; i+=3) {
- bit_set(bs, i);
- }
- (void) printf("be: 1 0 ");
- for (i=0; i < TEST_LENGTH; i++)
- (void) putchar(*("100" + (i % 3)));
- (void) printf("\nis: ");
- printbits(bs, TEST_LENGTH);
-
- (void) printf("\ntest bit_clear\n");
- for (i=0; i<TEST_LENGTH; i+=6) {
- bit_clear(bs, i);
- }
- (void) printf("be: 0 3 ");
- for (i=0; i < TEST_LENGTH; i++)
- (void) putchar(*("000100" + (i % 6)));
- (void) printf("\nis: ");
- printbits(bs, TEST_LENGTH);
-
- (void) printf("\ntest bit_test using previous bitstring\n");
- (void) printf(" i bit_test(i)\n");
- for (i=0; i<TEST_LENGTH; i++) {
- (void) printf("%3d%15d\n",
- i, bit_test(bs, i));
- }
-
- clearbits(bs, TEST_LENGTH);
- (void) printf("\ntest clearbits\n");
- (void) printf("be: 0 -1 ");
- for (i=0; i < TEST_LENGTH; i++)
- (void) putchar('0');
- (void) printf("\nis: ");
- printbits(bs, TEST_LENGTH);
-
- (void) printf("\ntest bit_nset and bit_nclear\n");
- bit_nset(bs, 1, TEST_LENGTH - 2);
- (void) printf("be: 0 1 0");
- for (i=0; i < TEST_LENGTH - 2; i++)
- (void) putchar('1');
- (void) printf("0\nis: ");
- printbits(bs, TEST_LENGTH);
-
- bit_nclear(bs, 2, TEST_LENGTH - 3);
- (void) printf("be: 0 1 01");
- for (i=0; i < TEST_LENGTH - 4; i++)
- (void) putchar('0');
- (void) printf("10\nis: ");
- printbits(bs, TEST_LENGTH);
-
- bit_nclear(bs, 0, TEST_LENGTH - 1);
- (void) printf("be: 0 -1 ");
- for (i=0; i < TEST_LENGTH; i++)
- (void) putchar('0');
- (void) printf("\nis: ");
- printbits(bs, TEST_LENGTH);
- bit_nset(bs, 0, TEST_LENGTH - 2);
- (void) printf("be: %3d 0 ",TEST_LENGTH - 1);
- for (i=0; i < TEST_LENGTH - 1; i++)
- (void) putchar('1');
- putchar('0');
- (void) printf("\nis: ");
- printbits(bs, TEST_LENGTH);
- bit_nclear(bs, 0, TEST_LENGTH - 1);
- (void) printf("be: 0 -1 ");
- for (i=0; i < TEST_LENGTH; i++)
- (void) putchar('0');
- (void) printf("\nis: ");
- printbits(bs, TEST_LENGTH);
-
- (void) printf("\n");
- (void) printf("first 1 bit should move right 1 position each line\n");
- for (i=0; i<TEST_LENGTH; i++) {
- bit_nclear(bs, 0, TEST_LENGTH - 1);
- bit_nset(bs, i, TEST_LENGTH - 1);
- (void) printf("%3d ", i); printbits(bs, TEST_LENGTH);
- }
-
- (void) printf("\n");
- (void) printf("first 0 bit should move right 1 position each line\n");
- for (i=0; i<TEST_LENGTH; i++) {
- bit_nset(bs, 0, TEST_LENGTH - 1);
- bit_nclear(bs, i, TEST_LENGTH - 1);
- (void) printf("%3d ", i); printbits(bs, TEST_LENGTH);
- }
-
- (void) printf("\n");
- (void) printf("first 0 bit should move left 1 position each line\n");
- for (i=0; i<TEST_LENGTH; i++) {
- bit_nclear(bs, 0, TEST_LENGTH - 1);
- bit_nset(bs, 0, TEST_LENGTH - 1 - i);
- (void) printf("%3d ", i); printbits(bs, TEST_LENGTH);
- }
-
- (void) printf("\n");
- (void) printf("first 1 bit should move left 1 position each line\n");
- for (i=0; i<TEST_LENGTH; i++) {
- bit_nset(bs, 0, TEST_LENGTH - 1);
- bit_nclear(bs, 0, TEST_LENGTH - 1 - i);
- (void) printf("%3d ", i); printbits(bs, TEST_LENGTH);
- }
-
- (void) printf("\n");
- (void) printf("0 bit should move right 1 position each line\n");
- for (i=0; i<TEST_LENGTH; i++) {
- bit_nset(bs, 0, TEST_LENGTH - 1);
- bit_nclear(bs, i, i);
- (void) printf("%3d ", i); printbits(bs, TEST_LENGTH);
- }
-
- (void) printf("\n");
- (void) printf("1 bit should move right 1 position each line\n");
- for (i=0; i<TEST_LENGTH; i++) {
- bit_nclear(bs, 0, TEST_LENGTH - 1);
- bit_nset(bs, i, i);
- (void) printf("%3d ", i); printbits(bs, TEST_LENGTH);
- }
-
- (void)free(bs);
- (void)exit(0);
-}
-void
-clearbits(b, n)
- bitstr_t *b;
- int n;
-{
- int i = bitstr_size(n);
- while(i--)
- *(b + i) = 0;
-}
-void
-printbits(b, n)
- bitstr_t *b;
- int n;
-{
- int i;
- int jc, js;
-
- bit_ffc(b, n, &jc);
- bit_ffs(b, n, &js);
- (void) printf("%3d %3d ", jc, js);
Home |
Main Index |
Thread Index |
Old Index