head	1.12;
access;
symbols
	RELENG_8_4:1.12.0.2
	RELENG_8_3_0_RELEASE:1.11.32.1.8.1
	RELENG_8_3:1.11.32.1.0.8
	RELENG_8_3_BP:1.11.32.1
	RELENG_7_4_0_RELEASE:1.11.36.1
	RELENG_8_2_0_RELEASE:1.11.32.1.6.1
	RELENG_7_4:1.11.0.36
	RELENG_7_4_BP:1.11
	RELENG_8_2:1.11.32.1.0.6
	RELENG_8_2_BP:1.11.32.1
	RELENG_8_1_0_RELEASE:1.11.32.1.4.1
	RELENG_8_1:1.11.32.1.0.4
	RELENG_8_1_BP:1.11.32.1
	RELENG_7_3_0_RELEASE:1.11.34.1
	RELENG_7_3:1.11.0.34
	RELENG_7_3_BP:1.11
	RELENG_8_0_0_RELEASE:1.11.32.1.2.1
	RELENG_8_0:1.11.32.1.0.2
	RELENG_8_0_BP:1.11.32.1
	RELENG_8:1.11.0.32
	RELENG_8_BP:1.11
	RELENG_7_2_0_RELEASE:1.11.30.1
	RELENG_7_2:1.11.0.30
	RELENG_7_2_BP:1.11
	RELENG_7_1_0_RELEASE:1.11.28.1
	RELENG_6_4_0_RELEASE:1.11.26.1
	RELENG_7_1:1.11.0.28
	RELENG_7_1_BP:1.11
	RELENG_6_4:1.11.0.26
	RELENG_6_4_BP:1.11
	RELENG_7_0_0_RELEASE:1.11
	RELENG_6_3_0_RELEASE:1.11
	RELENG_7_0:1.11.0.24
	RELENG_7_0_BP:1.11
	RELENG_6_3:1.11.0.22
	RELENG_6_3_BP:1.11
	RELENG_7:1.11.0.20
	RELENG_7_BP:1.11
	RELENG_6_2_0_RELEASE:1.11
	RELENG_6_2:1.11.0.18
	RELENG_6_2_BP:1.11
	RELENG_5_5_0_RELEASE:1.11
	RELENG_5_5:1.11.0.16
	RELENG_5_5_BP:1.11
	RELENG_6_1_0_RELEASE:1.11
	RELENG_6_1:1.11.0.14
	RELENG_6_1_BP:1.11
	RELENG_6_0_0_RELEASE:1.11
	RELENG_6_0:1.11.0.12
	RELENG_6_0_BP:1.11
	RELENG_6:1.11.0.10
	RELENG_6_BP:1.11
	RELENG_5_4_0_RELEASE:1.11
	RELENG_5_4:1.11.0.8
	RELENG_5_4_BP:1.11
	RELENG_4_11_0_RELEASE:1.4.2.2
	RELENG_4_11:1.4.2.2.0.16
	RELENG_4_11_BP:1.4.2.2
	RELENG_5_3_0_RELEASE:1.11
	RELENG_5_3:1.11.0.6
	RELENG_5_3_BP:1.11
	RELENG_5:1.11.0.4
	RELENG_5_BP:1.11
	RELENG_4_10_0_RELEASE:1.4.2.2
	RELENG_4_10:1.4.2.2.0.14
	RELENG_4_10_BP:1.4.2.2
	RELENG_5_2_1_RELEASE:1.11
	RELENG_5_2_0_RELEASE:1.11
	RELENG_5_2:1.11.0.2
	RELENG_5_2_BP:1.11
	RELENG_4_9_0_RELEASE:1.4.2.2
	RELENG_4_9:1.4.2.2.0.12
	RELENG_4_9_BP:1.4.2.2
	RELENG_5_1_0_RELEASE:1.9
	RELENG_5_1:1.9.0.4
	RELENG_5_1_BP:1.9
	RELENG_4_8_0_RELEASE:1.4.2.2
	RELENG_4_8:1.4.2.2.0.10
	RELENG_4_8_BP:1.4.2.2
	RELENG_5_0_0_RELEASE:1.9
	RELENG_5_0:1.9.0.2
	RELENG_5_0_BP:1.9
	RELENG_4_7_0_RELEASE:1.4.2.2
	RELENG_4_7:1.4.2.2.0.8
	RELENG_4_7_BP:1.4.2.2
	RELENG_4_6_2_RELEASE:1.4.2.2
	RELENG_4_6_1_RELEASE:1.4.2.2
	RELENG_4_6_0_RELEASE:1.4.2.2
	RELENG_4_6:1.4.2.2.0.6
	RELENG_4_6_BP:1.4.2.2
	RELENG_4_5_0_RELEASE:1.4.2.2
	RELENG_4_5:1.4.2.2.0.4
	RELENG_4_5_BP:1.4.2.2
	RELENG_4_4_0_RELEASE:1.4.2.2
	RELENG_4_4:1.4.2.2.0.2
	RELENG_4_4_BP:1.4.2.2
	RELENG_4_3_0_RELEASE:1.4.2.1
	RELENG_4_3:1.4.2.1.0.2
	RELENG_4_3_BP:1.4.2.1
	RELENG_4_2_0_RELEASE:1.4.2.1
	RELENG_4_1_1_RELEASE:1.4.2.1
	PRE_SMPNG:1.6
	RELENG_4_1_0_RELEASE:1.4.2.1
	RELENG_3_5_0_RELEASE:1.2.4.2
	RELENG_4_0_0_RELEASE:1.4
	RELENG_4:1.4.0.2
	RELENG_4_BP:1.4
	RELENG_3_4_0_RELEASE:1.2.4.2
	RELENG_3_3_0_RELEASE:1.2.4.2
	RELENG_3_2_PAO:1.2.0.6
	RELENG_3_2_PAO_BP:1.2
	RELENG_3_2_0_RELEASE:1.2
	RELENG_3_1_0_RELEASE:1.2
	RELENG_3:1.2.0.4
	RELENG_3_BP:1.2
	RELENG_2_2_8_RELEASE:1.2.2.1
	RELENG_2_2:1.2.0.2
	RELENG_3_0_0_RELEASE:1.2;
locks; strict;
comment	@# @;


1.12
date	2010.11.13.22.22.18;	author emaste;	state dead;
branches
	1.12.2.1;
next	1.11;

1.11
date	2003.06.02.00.21.41;	author rwatson;	state Exp;
branches
	1.11.10.1
	1.11.20.1
	1.11.26.1
	1.11.28.1
	1.11.30.1
	1.11.32.1
	1.11.34.1
	1.11.36.1;
next	1.10;

1.10
date	2003.06.01.23.03.49;	author rwatson;	state Exp;
branches;
next	1.9;

1.9
date	2001.07.20.04.23.10;	author jasone;	state Exp;
branches;
next	1.8;

1.8
date	2001.05.20.23.11.54;	author jasone;	state Exp;
branches;
next	1.7;

1.7
date	2001.01.24.13.41.04;	author deischen;	state Exp;
branches;
next	1.6;

1.6
date	2000.04.26.23.25.58;	author jasone;	state Exp;
branches;
next	1.5;

1.5
date	2000.04.24.21.07.36;	author jasone;	state Exp;
branches;
next	1.4;

1.4
date	99.08.28.00.03.14;	author peter;	state Exp;
branches
	1.4.2.1;
next	1.3;

1.3
date	99.05.09.07.50.31;	author jb;	state Exp;
branches;
next	1.2;

1.2
date	98.09.30.07.07.59;	author jb;	state Exp;
branches
	1.2.2.1
	1.2.4.1;
next	1.1;

1.1
date	98.08.25.12.33.22;	author jb;	state Exp;
branches;
next	;

1.12.2.1
date	2010.11.13.22.22.18;	author svnexp;	state dead;
branches;
next	1.12.2.2;

1.12.2.2
date	2013.03.28.13.03.12;	author svnexp;	state Exp;
branches;
next	;

1.11.10.1
date	2012.11.17.07.40.16;	author svnexp;	state Exp;
branches;
next	;

1.11.20.1
date	2012.11.17.08.02.35;	author svnexp;	state Exp;
branches;
next	;

1.11.26.1
date	2008.10.02.02.57.24;	author kensmith;	state Exp;
branches;
next	;

1.11.28.1
date	2008.11.25.02.59.29;	author kensmith;	state Exp;
branches;
next	;

1.11.30.1
date	2009.04.15.03.14.26;	author kensmith;	state Exp;
branches;
next	;

1.11.32.1
date	2009.08.03.08.13.06;	author kensmith;	state Exp;
branches
	1.11.32.1.2.1
	1.11.32.1.4.1
	1.11.32.1.6.1
	1.11.32.1.8.1;
next	1.11.32.2;

1.11.32.2
date	2012.11.17.10.36.06;	author svnexp;	state Exp;
branches;
next	;

1.11.32.1.2.1
date	2009.10.25.01.10.29;	author kensmith;	state Exp;
branches;
next	;

1.11.32.1.4.1
date	2010.06.14.02.09.06;	author kensmith;	state Exp;
branches;
next	;

1.11.32.1.6.1
date	2010.12.21.17.09.25;	author kensmith;	state Exp;
branches;
next	;

1.11.32.1.8.1
date	2012.03.03.06.15.13;	author kensmith;	state Exp;
branches;
next	1.11.32.1.8.2;

1.11.32.1.8.2
date	2012.11.17.08.24.47;	author svnexp;	state Exp;
branches;
next	;

1.11.34.1
date	2010.02.10.00.26.20;	author kensmith;	state Exp;
branches;
next	;

1.11.36.1
date	2010.12.21.17.10.29;	author kensmith;	state Exp;
branches;
next	1.11.36.2;

1.11.36.2
date	2012.11.17.08.16.47;	author svnexp;	state Exp;
branches;
next	;

1.4.2.1
date	2000.07.17.22.18.32;	author jasone;	state Exp;
branches;
next	1.4.2.2;

1.4.2.2
date	2001.06.22.21.44.27;	author jasone;	state Exp;
branches;
next	1.4.2.3;

1.4.2.3
date	2012.11.17.07.23.48;	author svnexp;	state Exp;
branches;
next	;

1.2.2.1
date	98.11.04.08.42.08;	author tg;	state Exp;
branches;
next	1.2.2.2;

1.2.2.2
date	99.09.05.11.16.52;	author peter;	state Exp;
branches;
next	;

1.2.4.1
date	99.07.23.12.30.30;	author deischen;	state Exp;
branches;
next	1.2.4.2;

1.2.4.2
date	99.08.29.14.55.43;	author peter;	state Exp;
branches;
next	;


desc
@@


1.12
log
@SVN rev 215269 on 2010-11-13 22:22:18Z by emaste

Remove libc_r threading library.  It has been disconnected from the build
for four years (since r162846).

Submitted by: Alexander Best arundel@@
@
text
@#
# $FreeBSD: src/lib/libc_r/test/Makefile,v 1.11 2003/06/02 00:21:41 rwatson Exp $
#
# Automated test suite for libc_r (pthreads).
#

# File lists.

# Tests written in C.
CTESTS := hello_d.c hello_s.c join_leak_d.c mutex_d.c sem_d.c sigsuspend_d.c \
	sigwait_d.c

# C programs that are used internally by the tests.  The build system merely
# compiles these.
BTESTS := guard_b.c hello_b.c

# Tests written in perl.
PTESTS := guard_s.pl propagate_s.pl

# Munge the file lists to their final executable names (strip the .c).
CTESTS := $(CTESTS:R)
BTESTS := $(BTESTS:R)

CPPFLAGS := -D_LIBC_R_ -D_REENTRANT
CFLAGS := -Wall -pipe -g3
LDFLAGS_A := -static
LDFLAGS_P := -pg
LDFLAGS_S :=
LIBS := -lc_r

# Flags passed to verify.  "-v" or "-u" may be useful.
VFLAGS :=

all : default

# Only use the following suffixes, in order to avoid any strange built-in rules.
.SUFFIXES :
.SUFFIXES : .c .o .d .pl

# Clear out all paths, then set just one (default path) for the main build
# directory.
.PATH :
.PATH : .

# Build the C programs.
.for bin in $(CTESTS) $(BTESTS)
$(bin)_a : $(bin:S/$/&.c/)
	$(CC) $(CFLAGS) $(CPPFLAGS) -c $(bin:S/$/&.c/) -o $(@@:S/$/&.o/)
	$(CC) -o $@@ $(@@:S/$/&.o/) $(LDFLAGS_A) $(LIBS)
	@@$(SHELL) -ec "$(CC) -M $(CPPFLAGS) $(bin:S/$/&.c/) | sed \"s/\($(bin:T)\)\.o\([ :]*\)/$(bin:H:S!/!\\/!g)\/\1_a.o \2/g\" > $(@@:R:S/$/&.d/)"

$(bin)_p : $(bin:S/$/&.c/)
	$(CC) $(CFLAGS) $(CPPFLAGS) -c $(bin:S/$/&.c/) -o $(@@:S/$/&.o/)
	$(CC) -o $@@ $(@@:S/$/&.o/) $(LDFLAGS_P) $(LIBS)
	@@$(SHELL) -ec "$(CC) -M $(CPPFLAGS) $(bin:S/$/&.c/) | sed \"s/\($(bin:T)\)\.o\([ :]*\)/$(bin:H:S!/!\\/!g)\/\1_p.o \2/g\" > $(@@:R:S/$/&.d/)"

$(bin)_s : $(bin:S/$/&.c/)
	$(CC) $(CFLAGS) $(CPPFLAGS) -c $(bin:S/$/&.c/) -o $(@@:S/$/&.o/)
	$(CC) -o $@@ $(@@:S/$/&.o/) $(LDFLAGS_S) $(LIBS)
	@@$(SHELL) -ec "$(CC) -M $(CPPFLAGS) $(bin:S/$/&.c/) | sed \"s/\($(bin:T)\)\.o\([ :]*\)/$(bin:H:S!/!\\/!g)\/\1_s.o \2/g\" > $(@@:R:S/$/&.d/)"
.endfor

# Dependency file inclusion.
.for depfile in $(CTESTS:R:S/$/&_a.d/) $(BTESTS:R:S/$/&_a.d/) \
		$(CTESTS:R:S/$/&_p.d/) $(BTESTS:R:S/$/&_p.d/) \
		$(CTESTS:R:S/$/&_s.d/) $(BTESTS:R:S/$/&_s.d/)
.if exists($(depfile))
.include "$(depfile)"
.endif
.endfor

default : check

tests_a : $(CTESTS:S/$/&_a/) $(BTESTS:S/$/&_a/)
tests_p : $(CTESTS:S/$/&_p/) $(BTESTS:S/$/&_p/)
tests_s : $(CTESTS:S/$/&_s/) $(BTESTS:S/$/&_s/)

tests : tests_a tests_p tests_s

check_a : tests_a
.for bin in $(CTESTS) $(BTESTS)
	@@cp $(bin)_a $(bin)
.endfor
	@@echo "Test static library:"
	@@./verify $(VFLAGS) $(CTESTS) $(PTESTS)

check_p : tests_p
.for bin in $(CTESTS) $(BTESTS)
	@@cp $(bin)_p $(bin)
.endfor
	@@echo "Test profile library:"
	@@./verify $(VFLAGS) $(CTESTS) $(PTESTS)

check_s : tests_s
.for bin in $(CTESTS) $(BTESTS)
	@@cp $(bin)_s $(bin)
.endfor
	@@echo "Test shared library:"
	@@./verify $(VFLAGS) $(CTESTS) $(PTESTS)

check : check_a check_p check_s

clean :
	rm -f *~
	rm -f *.core
	rm -f *.out
	rm -f *.perf
	rm -f *.diff
	rm -f *.gmon
	rm -f $(CTESTS) $(BTESTS)
	rm -f $(CTESTS:S/$/&_a/) $(BTESTS:S/$/&_a/)
	rm -f $(CTESTS:S/$/&_p/) $(BTESTS:S/$/&_p/)
	rm -f $(CTESTS:S/$/&_s/) $(BTESTS:S/$/&_s/)
	rm -f *.d
	rm -f *.o
@


1.12.2.1
log
@file Makefile was added on branch RELENG_8_4 on 2013-03-28 13:03:12 +0000
@
text
@d1 115
@


1.12.2.2
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/248810
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@a0 115
#
# $FreeBSD: releng/8.4/lib/libc_r/test/Makefile 115658 2003-06-02 00:21:41Z rwatson $
#
# Automated test suite for libc_r (pthreads).
#

# File lists.

# Tests written in C.
CTESTS := hello_d.c hello_s.c join_leak_d.c mutex_d.c sem_d.c sigsuspend_d.c \
	sigwait_d.c

# C programs that are used internally by the tests.  The build system merely
# compiles these.
BTESTS := guard_b.c hello_b.c

# Tests written in perl.
PTESTS := guard_s.pl propagate_s.pl

# Munge the file lists to their final executable names (strip the .c).
CTESTS := $(CTESTS:R)
BTESTS := $(BTESTS:R)

CPPFLAGS := -D_LIBC_R_ -D_REENTRANT
CFLAGS := -Wall -pipe -g3
LDFLAGS_A := -static
LDFLAGS_P := -pg
LDFLAGS_S :=
LIBS := -lc_r

# Flags passed to verify.  "-v" or "-u" may be useful.
VFLAGS :=

all : default

# Only use the following suffixes, in order to avoid any strange built-in rules.
.SUFFIXES :
.SUFFIXES : .c .o .d .pl

# Clear out all paths, then set just one (default path) for the main build
# directory.
.PATH :
.PATH : .

# Build the C programs.
.for bin in $(CTESTS) $(BTESTS)
$(bin)_a : $(bin:S/$/&.c/)
	$(CC) $(CFLAGS) $(CPPFLAGS) -c $(bin:S/$/&.c/) -o $(@@:S/$/&.o/)
	$(CC) -o $@@ $(@@:S/$/&.o/) $(LDFLAGS_A) $(LIBS)
	@@$(SHELL) -ec "$(CC) -M $(CPPFLAGS) $(bin:S/$/&.c/) | sed \"s/\($(bin:T)\)\.o\([ :]*\)/$(bin:H:S!/!\\/!g)\/\1_a.o \2/g\" > $(@@:R:S/$/&.d/)"

$(bin)_p : $(bin:S/$/&.c/)
	$(CC) $(CFLAGS) $(CPPFLAGS) -c $(bin:S/$/&.c/) -o $(@@:S/$/&.o/)
	$(CC) -o $@@ $(@@:S/$/&.o/) $(LDFLAGS_P) $(LIBS)
	@@$(SHELL) -ec "$(CC) -M $(CPPFLAGS) $(bin:S/$/&.c/) | sed \"s/\($(bin:T)\)\.o\([ :]*\)/$(bin:H:S!/!\\/!g)\/\1_p.o \2/g\" > $(@@:R:S/$/&.d/)"

$(bin)_s : $(bin:S/$/&.c/)
	$(CC) $(CFLAGS) $(CPPFLAGS) -c $(bin:S/$/&.c/) -o $(@@:S/$/&.o/)
	$(CC) -o $@@ $(@@:S/$/&.o/) $(LDFLAGS_S) $(LIBS)
	@@$(SHELL) -ec "$(CC) -M $(CPPFLAGS) $(bin:S/$/&.c/) | sed \"s/\($(bin:T)\)\.o\([ :]*\)/$(bin:H:S!/!\\/!g)\/\1_s.o \2/g\" > $(@@:R:S/$/&.d/)"
.endfor

# Dependency file inclusion.
.for depfile in $(CTESTS:R:S/$/&_a.d/) $(BTESTS:R:S/$/&_a.d/) \
		$(CTESTS:R:S/$/&_p.d/) $(BTESTS:R:S/$/&_p.d/) \
		$(CTESTS:R:S/$/&_s.d/) $(BTESTS:R:S/$/&_s.d/)
.if exists($(depfile))
.include "$(depfile)"
.endif
.endfor

default : check

tests_a : $(CTESTS:S/$/&_a/) $(BTESTS:S/$/&_a/)
tests_p : $(CTESTS:S/$/&_p/) $(BTESTS:S/$/&_p/)
tests_s : $(CTESTS:S/$/&_s/) $(BTESTS:S/$/&_s/)

tests : tests_a tests_p tests_s

check_a : tests_a
.for bin in $(CTESTS) $(BTESTS)
	@@cp $(bin)_a $(bin)
.endfor
	@@echo "Test static library:"
	@@./verify $(VFLAGS) $(CTESTS) $(PTESTS)

check_p : tests_p
.for bin in $(CTESTS) $(BTESTS)
	@@cp $(bin)_p $(bin)
.endfor
	@@echo "Test profile library:"
	@@./verify $(VFLAGS) $(CTESTS) $(PTESTS)

check_s : tests_s
.for bin in $(CTESTS) $(BTESTS)
	@@cp $(bin)_s $(bin)
.endfor
	@@echo "Test shared library:"
	@@./verify $(VFLAGS) $(CTESTS) $(PTESTS)

check : check_a check_p check_s

clean :
	rm -f *~
	rm -f *.core
	rm -f *.out
	rm -f *.perf
	rm -f *.diff
	rm -f *.gmon
	rm -f $(CTESTS) $(BTESTS)
	rm -f $(CTESTS:S/$/&_a/) $(BTESTS:S/$/&_a/)
	rm -f $(CTESTS:S/$/&_p/) $(BTESTS:S/$/&_p/)
	rm -f $(CTESTS:S/$/&_s/) $(BTESTS:S/$/&_s/)
	rm -f *.d
	rm -f *.o
@


1.11
log
@Revert accidental change: don't change the thread library for testing to
libthr.  Oops, sorry about that.

Submitted by:	"Simon L. Nielsen" <simon@@nitro.dk>
@
text
@d2 1
a2 1
# $FreeBSD$
@


1.11.20.1
log
@Switch importer
@
text
@d2 1
a2 1
# $FreeBSD: stable/7/lib/libc_r/test/Makefile 115658 2003-06-02 00:21:41Z rwatson $
@


1.11.10.1
log
@Switch importer
@
text
@d2 1
a2 1
# $FreeBSD: stable/6/lib/libc_r/test/Makefile 115658 2003-06-02 00:21:41Z rwatson $
@


1.11.36.1
log
@SVN rev 216618 on 2010-12-21 17:10:29Z by kensmith

Copy stable/7 to releng/7.4 in preparation for FreeBSD-7.4 release.

Approved by:	re (implicit)
@
text
@@


1.11.36.2
log
@Switch importer
@
text
@d2 1
a2 1
# $FreeBSD: releng/7.4/lib/libc_r/test/Makefile 115658 2003-06-02 00:21:41Z rwatson $
@


1.11.34.1
log
@SVN rev 203736 on 2010-02-10 00:26:20Z by kensmith

Copy stable/7 to releng/7.3 as part of the 7.3-RELEASE process.

Approved by:	re (implicit)
@
text
@@


1.11.32.1
log
@SVN rev 196045 on 2009-08-03 08:13:06Z by kensmith

Copy head to stable/8 as part of 8.0 Release cycle.

Approved by:	re (Implicit)
@
text
@@


1.11.32.2
log
@## SVN ##
## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/ 242909
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ## r242909 | dim | 2012-11-12 07:47:19 +0000 (Mon, 12 Nov 2012) | 20 lines
## SVN ##
## SVN ## MFC r242625:
## SVN ##
## SVN ## Remove duplicate const specifiers in many drivers (I hope I got all of
## SVN ## them, please let me know if not).  Most of these are of the form:
## SVN ##
## SVN ## static const struct bzzt_type {
## SVN ##       [...list of members...]
## SVN ## } const bzzt_devs[] = {
## SVN ##       [...list of initializers...]
## SVN ## };
## SVN ##
## SVN ## The second const is unnecessary, as arrays cannot be modified anyway,
## SVN ## and if the elements are const, the whole thing is const automatically
## SVN ## (e.g. it is placed in .rodata).
## SVN ##
## SVN ## I have verified this does not change the binary output of a full kernel
## SVN ## build (except for build timestamps embedded in the object files).
## SVN ##
## SVN ## Reviewed by:	yongari, marius
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ##
@
text
@d2 1
a2 1
# $FreeBSD: stable/8/lib/libc_r/test/Makefile 115658 2003-06-02 00:21:41Z rwatson $
@


1.11.32.1.8.1
log
@SVN rev 232438 on 2012-03-03 06:15:13Z by kensmith

Copy stable/8 to releng/8.3 as part of 8.3-RELEASE release cycle.

Approved by:	re (implicit)
@
text
@@


1.11.32.1.8.2
log
@Switch importer
@
text
@d2 1
a2 1
# $FreeBSD: releng/8.3/lib/libc_r/test/Makefile 115658 2003-06-02 00:21:41Z rwatson $
@


1.11.32.1.6.1
log
@SVN rev 216617 on 2010-12-21 17:09:25Z by kensmith

Copy stable/8 to releng/8.2 in preparation for FreeBSD-8.2 release.

Approved by:	re (implicit)
@
text
@@


1.11.32.1.4.1
log
@SVN rev 209145 on 2010-06-14 02:09:06Z by kensmith

Copy stable/8 to releng/8.1 in preparation for 8.1-RC1.

Approved by:	re (implicit)
@
text
@@


1.11.32.1.2.1
log
@SVN rev 198460 on 2009-10-25 01:10:29Z by kensmith

Copy stable/8 to releng/8.0 as part of 8.0-RELEASE release procedure.

Approved by:	re (implicit)
@
text
@@


1.11.30.1
log
@SVN rev 191087 on 2009-04-15 03:14:26Z by kensmith

Create releng/7.2 from stable/7 in preparation for 7.2-RELEASE.

Approved by:	re (implicit)
@
text
@@


1.11.28.1
log
@SVN rev 185281 on 2008-11-25 02:59:29Z by kensmith

Create releng/7.1 in preparation for moving into RC phase of 7.1 release
cycle.

Approved by:	re (implicit)
@
text
@@


1.11.26.1
log
@SVN rev 183531 on 2008-10-02 02:57:24Z by kensmith

Create releng/6.4 from stable/6 in preparation for 6.4-RC1.

Approved by:	re (implicit)
@
text
@@


1.10
log
@Include string.h for memset().
@
text
@d29 1
a29 1
LIBS := -lthr
@


1.9
log
@Implement pthread_attr_[gs]etguardsize().  Non-default-size stacks used to
be malloc()ed, but they are now allocated using mmap(), just as the
default-size stacks are.  A separate cache of stacks is kept for
non-default-size stacks.

Collaboration with:	deischen
@
text
@d2 1
a2 1
# $FreeBSD: src/lib/libc_r/test/Makefile,v 1.8 2001/05/20 23:11:54 jasone Exp $
d29 1
a29 1
LIBS := -lc_r
@


1.8
log
@Update the verify script.
@
text
@d2 1
a2 1
# $FreeBSD: src/lib/libc_r/test/Makefile,v 1.7 2001/01/24 13:41:04 deischen Exp $
d15 1
a15 1
BTESTS := hello_b.c
d18 1
a18 1
PTESTS := propagate_s.pl
@


1.7
log
@-pthread -> -lc_r
@
text
@d2 1
a2 1
# $FreeBSD: src/lib/libc_r/test/Makefile,v 1.6 2000/04/26 23:25:58 jasone Exp $
d9 3
a11 2
# Diff mode tests written in C.
CDTESTS := hello_d.c mutex_d.c sem_d.c sigsuspend_d.c sigwait_d.c
d13 2
a14 5
# Sequence mode tests written in C.
CSTESTS := hello_s.c

# C programs that are used internally by the perl-based tests.  The build
# system merely compiles these.
d17 2
a18 5
# Diff mode tests written in perl.
PDTESTS :=

# Sequence mode tests written in perl.
PSTESTS := propagate_s.pl
d21 1
a21 2
CDTESTS := $(CDTESTS:R)
CSTESTS := $(CSTESTS:R)
d24 1
a24 1
CPPFLAGS := -D_LIBC_R_
d46 1
a46 1
.for bin in $(CDTESTS) $(CSTESTS) $(BTESTS)
d64 3
a66 5
.for depfile in $(CDTESTS:R:S/$/&_a.d/) $(CSTESTS:R:S/$/&_a.d/) \
		$(BTESTS:R:S/$/&_a.d/) $(CDTESTS:R:S/$/&_p.d/) \
		$(CSTESTS:R:S/$/&_p.d/) $(BTESTS:R:S/$/&_p.d/) \
		$(CDTESTS:R:S/$/&_s.d/) $(CSTESTS:R:S/$/&_s.d/) \
		$(BTESTS:R:S/$/&_s.d/)
d74 3
a76 3
tests_a : $(CDTESTS:S/$/&_a/) $(CSTESTS:S/$/&_a/) $(BTESTS:S/$/&_a/)
tests_p : $(CDTESTS:S/$/&_p/) $(CSTESTS:S/$/&_p/) $(BTESTS:S/$/&_p/)
tests_s : $(CDTESTS:S/$/&_s/) $(CSTESTS:S/$/&_s/) $(BTESTS:S/$/&_s/)
d81 1
a81 1
.for bin in $(CDTESTS) $(CSTESTS) $(BTESTS)
d85 1
a85 1
	@@./verify $(VFLAGS) -- -d $(CDTESTS) $(PDTESTS) -s $(CSTESTS) $(PSTESTS)
d88 1
a88 1
.for bin in $(CDTESTS) $(CSTESTS) $(BTESTS)
d92 1
a92 1
	@@./verify $(VFLAGS) -- -d $(CDTESTS) $(PDTESTS) -s $(CSTESTS) $(PSTESTS)
d95 1
a95 1
.for bin in $(CDTESTS) $(CSTESTS) $(BTESTS)
d99 1
a99 1
	@@./verify $(VFLAGS) -- -d $(CDTESTS) $(PDTESTS) -s $(CSTESTS) $(PSTESTS)
d110 4
a113 4
	rm -f $(CDTESTS) $(CSTESTS) $(BTESTS)
	rm -f $(CDTESTS:S/$/&_a/) $(CSTESTS:S/$/&_a/) $(BTESTS:S/$/&_a/)
	rm -f $(CDTESTS:S/$/&_p/) $(CSTESTS:S/$/&_p/) $(BTESTS:S/$/&_p/)
	rm -f $(CDTESTS:S/$/&_s/) $(CSTESTS:S/$/&_s/) $(BTESTS:S/$/&_s/)
@


1.6
log
@Add test to detect propagation of cancellation points within libc_r.
@
text
@d2 1
a2 1
# $FreeBSD: src/lib/libc_r/test/Makefile,v 1.5 2000/04/24 21:07:36 jasone Exp $
d35 1
a35 1
LIBS := -pthread
@


1.5
log
@Automated regression test harness for libc_r.  Existing tests are integrated,
a new test for POSIX semaphores was added, and examples of harness usage are
included.
@
text
@d2 1
a2 1
# $FreeBSD$
d23 1
a23 1
PSTESTS :=
@


1.4
log
@$Id$ -> $FreeBSD$
@
text
@d1 1
d4 1
a4 1
# Tests for libc_r functionality.
d7 103
a109 1
SUBDIR=	mutex sigsuspend sigwait
d111 13
a123 1
.include <bsd.subdir.mk>
@


1.4.2.1
log
@MFC: Add a test framework, convert existing tests to work with the
framework, and add a test for semaphores.
@
text
@a0 1
#
d3 1
a3 1
# Automated test suite for libc_r (pthreads).
d6 1
a6 103
# File lists.

# Diff mode tests written in C.
CDTESTS := hello_d.c mutex_d.c sem_d.c sigsuspend_d.c sigwait_d.c

# Sequence mode tests written in C.
CSTESTS := hello_s.c

# C programs that are used internally by the perl-based tests.  The build
# system merely compiles these.
BTESTS := hello_b.c

# Diff mode tests written in perl.
PDTESTS :=

# Sequence mode tests written in perl.
PSTESTS := propagate_s.pl

# Munge the file lists to their final executable names (strip the .c).
CDTESTS := $(CDTESTS:R)
CSTESTS := $(CSTESTS:R)
BTESTS := $(BTESTS:R)

CPPFLAGS := -D_LIBC_R_
CFLAGS := -Wall -pipe -g3
LDFLAGS_A := -static
LDFLAGS_P := -pg
LDFLAGS_S :=
LIBS := -pthread

# Flags passed to verify.  "-v" or "-u" may be useful.
VFLAGS :=

all : default

# Only use the following suffixes, in order to avoid any strange built-in rules.
.SUFFIXES :
.SUFFIXES : .c .o .d .pl

# Clear out all paths, then set just one (default path) for the main build
# directory.
.PATH :
.PATH : .

# Build the C programs.
.for bin in $(CDTESTS) $(CSTESTS) $(BTESTS)
$(bin)_a : $(bin:S/$/&.c/)
	$(CC) $(CFLAGS) $(CPPFLAGS) -c $(bin:S/$/&.c/) -o $(@@:S/$/&.o/)
	$(CC) -o $@@ $(@@:S/$/&.o/) $(LDFLAGS_A) $(LIBS)
	@@$(SHELL) -ec "$(CC) -M $(CPPFLAGS) $(bin:S/$/&.c/) | sed \"s/\($(bin:T)\)\.o\([ :]*\)/$(bin:H:S!/!\\/!g)\/\1_a.o \2/g\" > $(@@:R:S/$/&.d/)"

$(bin)_p : $(bin:S/$/&.c/)
	$(CC) $(CFLAGS) $(CPPFLAGS) -c $(bin:S/$/&.c/) -o $(@@:S/$/&.o/)
	$(CC) -o $@@ $(@@:S/$/&.o/) $(LDFLAGS_P) $(LIBS)
	@@$(SHELL) -ec "$(CC) -M $(CPPFLAGS) $(bin:S/$/&.c/) | sed \"s/\($(bin:T)\)\.o\([ :]*\)/$(bin:H:S!/!\\/!g)\/\1_p.o \2/g\" > $(@@:R:S/$/&.d/)"

$(bin)_s : $(bin:S/$/&.c/)
	$(CC) $(CFLAGS) $(CPPFLAGS) -c $(bin:S/$/&.c/) -o $(@@:S/$/&.o/)
	$(CC) -o $@@ $(@@:S/$/&.o/) $(LDFLAGS_S) $(LIBS)
	@@$(SHELL) -ec "$(CC) -M $(CPPFLAGS) $(bin:S/$/&.c/) | sed \"s/\($(bin:T)\)\.o\([ :]*\)/$(bin:H:S!/!\\/!g)\/\1_s.o \2/g\" > $(@@:R:S/$/&.d/)"
.endfor

# Dependency file inclusion.
.for depfile in $(CDTESTS:R:S/$/&_a.d/) $(CSTESTS:R:S/$/&_a.d/) \
		$(BTESTS:R:S/$/&_a.d/) $(CDTESTS:R:S/$/&_p.d/) \
		$(CSTESTS:R:S/$/&_p.d/) $(BTESTS:R:S/$/&_p.d/) \
		$(CDTESTS:R:S/$/&_s.d/) $(CSTESTS:R:S/$/&_s.d/) \
		$(BTESTS:R:S/$/&_s.d/)
.if exists($(depfile))
.include "$(depfile)"
.endif
.endfor

default : check

tests_a : $(CDTESTS:S/$/&_a/) $(CSTESTS:S/$/&_a/) $(BTESTS:S/$/&_a/)
tests_p : $(CDTESTS:S/$/&_p/) $(CSTESTS:S/$/&_p/) $(BTESTS:S/$/&_p/)
tests_s : $(CDTESTS:S/$/&_s/) $(CSTESTS:S/$/&_s/) $(BTESTS:S/$/&_s/)

tests : tests_a tests_p tests_s

check_a : tests_a
.for bin in $(CDTESTS) $(CSTESTS) $(BTESTS)
	@@cp $(bin)_a $(bin)
.endfor
	@@echo "Test static library:"
	@@./verify $(VFLAGS) -- -d $(CDTESTS) $(PDTESTS) -s $(CSTESTS) $(PSTESTS)

check_p : tests_p
.for bin in $(CDTESTS) $(CSTESTS) $(BTESTS)
	@@cp $(bin)_p $(bin)
.endfor
	@@echo "Test profile library:"
	@@./verify $(VFLAGS) -- -d $(CDTESTS) $(PDTESTS) -s $(CSTESTS) $(PSTESTS)

check_s : tests_s
.for bin in $(CDTESTS) $(CSTESTS) $(BTESTS)
	@@cp $(bin)_s $(bin)
.endfor
	@@echo "Test shared library:"
	@@./verify $(VFLAGS) -- -d $(CDTESTS) $(PDTESTS) -s $(CSTESTS) $(PSTESTS)

check : check_a check_p check_s
d8 1
a8 13
clean :
	rm -f *~
	rm -f *.core
	rm -f *.out
	rm -f *.perf
	rm -f *.diff
	rm -f *.gmon
	rm -f $(CDTESTS) $(CSTESTS) $(BTESTS)
	rm -f $(CDTESTS:S/$/&_a/) $(CSTESTS:S/$/&_a/) $(BTESTS:S/$/&_a/)
	rm -f $(CDTESTS:S/$/&_p/) $(CSTESTS:S/$/&_p/) $(BTESTS:S/$/&_p/)
	rm -f $(CDTESTS:S/$/&_s/) $(CSTESTS:S/$/&_s/) $(BTESTS:S/$/&_s/)
	rm -f *.d
	rm -f *.o
@


1.4.2.2
log
@MFC: Update libc_r test suite.
@
text
@d2 1
a2 1
# $FreeBSD: src/lib/libc_r/test/Makefile,v 1.4.2.1 2000/07/17 22:18:32 jasone Exp $
d9 2
a10 3
# Tests written in C.
CTESTS := hello_d.c hello_s.c join_leak_d.c mutex_d.c sem_d.c sigsuspend_d.c \
	sigwait_d.c
d12 5
a16 2
# C programs that are used internally by the tests.  The build system merely
# compiles these.
d19 5
a23 2
# Tests written in perl.
PTESTS := propagate_s.pl
d26 2
a27 1
CTESTS := $(CTESTS:R)
d30 1
a30 1
CPPFLAGS := -D_LIBC_R_ -D_REENTRANT
d35 1
a35 1
LIBS := -lc_r
d52 1
a52 1
.for bin in $(CTESTS) $(BTESTS)
d70 5
a74 3
.for depfile in $(CTESTS:R:S/$/&_a.d/) $(BTESTS:R:S/$/&_a.d/) \
		$(CTESTS:R:S/$/&_p.d/) $(BTESTS:R:S/$/&_p.d/) \
		$(CTESTS:R:S/$/&_s.d/) $(BTESTS:R:S/$/&_s.d/)
d82 3
a84 3
tests_a : $(CTESTS:S/$/&_a/) $(BTESTS:S/$/&_a/)
tests_p : $(CTESTS:S/$/&_p/) $(BTESTS:S/$/&_p/)
tests_s : $(CTESTS:S/$/&_s/) $(BTESTS:S/$/&_s/)
d89 1
a89 1
.for bin in $(CTESTS) $(BTESTS)
d93 1
a93 1
	@@./verify $(VFLAGS) $(CTESTS) $(PTESTS)
d96 1
a96 1
.for bin in $(CTESTS) $(BTESTS)
d100 1
a100 1
	@@./verify $(VFLAGS) $(CTESTS) $(PTESTS)
d103 1
a103 1
.for bin in $(CTESTS) $(BTESTS)
d107 1
a107 1
	@@./verify $(VFLAGS) $(CTESTS) $(PTESTS)
d118 4
a121 4
	rm -f $(CTESTS) $(BTESTS)
	rm -f $(CTESTS:S/$/&_a/) $(BTESTS:S/$/&_a/)
	rm -f $(CTESTS:S/$/&_p/) $(BTESTS:S/$/&_p/)
	rm -f $(CTESTS:S/$/&_s/) $(BTESTS:S/$/&_s/)
@


1.4.2.3
log
@Switch importer
@
text
@d2 1
a2 1
# $FreeBSD: stable/4/lib/libc_r/test/Makefile 78628 2001-06-22 21:44:27Z jasone $
@


1.3
log
@Add mutex test program.
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.2 1998/09/30 07:07:59 jb Exp $
@


1.2
log
@Revise test code for sigwait and add test code for sigsuspend.

Submitted by: Daniel M. Eischen <eischen@@vigrid.com>
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.1 1998/08/25 12:33:22 jb Exp $
d6 1
a6 1
SUBDIR=	sigsuspend sigwait
@


1.2.4.1
log
@MFC: Add mutex test.
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.3 1999/05/09 07:50:31 jb Exp $
d6 1
a6 1
SUBDIR=	mutex sigsuspend sigwait
@


1.2.4.2
log
@$Id$ -> $FreeBSD$
@
text
@d1 1
a1 1
# $FreeBSD$
@


1.2.2.1
log
@As theatened two weeks ago: merge the major changes from -current's pthread
implementation. This includes file locking based on FILE *, signal fixes,
read/write-locks, better POSIX compliance and better performance. Not included
are changes relating to realtime scheduling.

Famous last words: I've now built the world several times with these changes,
so they shouldn't break anything.
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.2 1998/09/30 07:07:59 jb Exp $
@


1.2.2.2
log
@$Id$ -> $FreeBSD$
@
text
@d1 1
a1 1
# $FreeBSD$
@


1.1
log
@Add support for building test programs.
@
text
@d1 1
a1 1
#	$Id$
d6 1
a6 1
SUBDIR=	sigwait
@
