summaryrefslogtreecommitdiff
path: root/devel/tet3
diff options
context:
space:
mode:
authoragc <agc>2003-06-17 17:39:03 +0000
committeragc <agc>2003-06-17 17:39:03 +0000
commit3674a0eecb58519b179bf4bddbf33745701f8f32 (patch)
treed821cbf5ee18aaa7d48a4b454568a6f139d6b988 /devel/tet3
parentea3e163252ead95b1da2381f76c390f65df7ba03 (diff)
downloadpkgsrc-3674a0eecb58519b179bf4bddbf33745701f8f32.tar.gz
Initial import of tet3, the Open Group's test harness, into the Packages
Collection. This is version 3.3h. Test harness for The Open Group suites of POSIX tests. The TETware family of tools are Test Execution Management Systems that takes care of the administration, sequencing, reporting and portability of all of the tests that you develop. Freeing up developers to concentrate on test development and helping testers by providing them with a single, standard, test harness. Enabling you to deliver your software projects on time and across multiple operating systems. They are all available off-the-virtual-shelf. Easily accessed by ftp download. So stop re-inventing the wheel, take the drudge out of test development and use TETware.
Diffstat (limited to 'devel/tet3')
-rw-r--r--devel/tet3/DESCR11
-rw-r--r--devel/tet3/Makefile31
-rw-r--r--devel/tet3/PLIST32
-rw-r--r--devel/tet3/distinfo8
-rw-r--r--devel/tet3/patches/patch-aa149
-rw-r--r--devel/tet3/patches/patch-ab14
-rw-r--r--devel/tet3/patches/patch-ac170
-rw-r--r--devel/tet3/patches/patch-ad15
8 files changed, 430 insertions, 0 deletions
diff --git a/devel/tet3/DESCR b/devel/tet3/DESCR
new file mode 100644
index 00000000000..11ae792074b
--- /dev/null
+++ b/devel/tet3/DESCR
@@ -0,0 +1,11 @@
+Test harness for The Open Group suites of POSIX tests.
+
+The TETware family of tools are Test Execution Management Systems that
+takes care of the administration, sequencing, reporting and
+portability of all of the tests that you develop. Freeing up
+developers to concentrate on test development and helping testers by
+providing them with a single, standard, test harness. Enabling you to
+deliver your software projects on time and across multiple operating
+systems. They are all available off-the-virtual-shelf. Easily
+accessed by ftp download. So stop re-inventing the wheel, take the
+drudge out of test development and use TETware.
diff --git a/devel/tet3/Makefile b/devel/tet3/Makefile
new file mode 100644
index 00000000000..90d00f82c25
--- /dev/null
+++ b/devel/tet3/Makefile
@@ -0,0 +1,31 @@
+# $NetBSD: Makefile,v 1.1.1.1 2003/06/17 17:39:03 agc Exp $
+
+DISTNAME= tet3.3h-unsup.src
+PKGNAME= tet3-3.3h
+CATEGORIES= devel
+MASTER_SITES= http://tetworks.opengroup.org/
+EXTRACT_SUFX= .tgz
+
+MAINTAINER= tech-pkg@netbsd.org
+HOMEPAGE= http://tetworks.opengroup.org/
+COMMENT= The Open Group test harness
+
+WRKSRC= ${WRKDIR}/src
+HAS_CONFIGURE= yes
+REPLACE_PERL= yes
+MAKEFILE= makefile
+
+INTERACTIVE_STAGE= fetch
+
+do-configure:
+ cd ${WRKSRC}/.. && ${CHMOD} 755 configure && ./configure -t inet
+
+post-install:
+ ${INSTALL_PROGRAM_DIR} ${PREFIX}/tet3
+ ${INSTALL_PROGRAM_DIR} ${PREFIX}/tet3/bin
+ cd ${WRKSRC}/../bin && ${PAX} -rwpe . ${PREFIX}/tet3/bin
+ ${INSTALL_PROGRAM_DIR} ${PREFIX}/tet3/lib
+ cd ${WRKSRC}/../lib && ${PAX} -rwpe . ${PREFIX}/tet3/lib
+
+.include "../../lang/perl5/buildlink2.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/devel/tet3/PLIST b/devel/tet3/PLIST
new file mode 100644
index 00000000000..12e4995c391
--- /dev/null
+++ b/devel/tet3/PLIST
@@ -0,0 +1,32 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2003/06/17 17:39:03 agc Exp $
+tet3/bin/tcc
+tet3/bin/tccd
+tet3/bin/tccdstart
+tet3/bin/tet_start
+tet3/bin/tetsyncd
+tet3/bin/tetxresd
+tet3/lib/ksh/tcm.ksh
+tet3/lib/ksh/tetapi.ksh
+tet3/lib/perl/README
+tet3/lib/perl/api.pl
+tet3/lib/perl/tcm.pl
+tet3/lib/tet3/Ctcm.o
+tet3/lib/tet3/Ctcmchild.o
+tet3/lib/tet3/Cthrtcm.o
+tet3/lib/tet3/Cthrtcmchild.o
+tet3/lib/tet3/libapi.a
+tet3/lib/tet3/libthrapi.a
+tet3/lib/tet3/tcm.o
+tet3/lib/tet3/tcmchild.o
+tet3/lib/tet3/tcmrem.o
+tet3/lib/tet3/thrtcm.o
+tet3/lib/tet3/thrtcmchild.o
+tet3/lib/xpg3sh/tcm.sh
+tet3/lib/xpg3sh/tetapi.sh
+@dirrm tet3/lib/xpg3sh
+@dirrm tet3/lib/tet3
+@dirrm tet3/lib/perl
+@dirrm tet3/lib/ksh
+@dirrm tet3/lib
+@dirrm tet3/bin
+@dirrm tet3
diff --git a/devel/tet3/distinfo b/devel/tet3/distinfo
new file mode 100644
index 00000000000..0675af0d2c4
--- /dev/null
+++ b/devel/tet3/distinfo
@@ -0,0 +1,8 @@
+$NetBSD: distinfo,v 1.1.1.1 2003/06/17 17:39:03 agc Exp $
+
+SHA1 (tet3.3h-unsup.src.tgz) = bfd582f272735a7da53c32e0e2289f8b4993bf9f
+Size (tet3.3h-unsup.src.tgz) = 779995 bytes
+SHA1 (patch-aa) = 68cc1beed72dade766b73d69a971ad60e445d840
+SHA1 (patch-ab) = fd0086d4b3138f5a6c157feacdafce1ffbb8a998
+SHA1 (patch-ac) = 6eac08e21997c6b57345aa68490924ae45d664b9
+SHA1 (patch-ad) = 019b5ac7eb403598678b2bf92c7769a24582780d
diff --git a/devel/tet3/patches/patch-aa b/devel/tet3/patches/patch-aa
new file mode 100644
index 00000000000..e8e400dbb14
--- /dev/null
+++ b/devel/tet3/patches/patch-aa
@@ -0,0 +1,149 @@
+$NetBSD: patch-aa,v 1.1.1.1 2003/06/17 17:39:03 agc Exp $
+
+--- /dev/null 2003-06-16 16:02:04.000000000 +0100
++++ ../contrib/configtool/defines/netbsd.mk 2003-06-16 16:01:30.000000000 +0100
+@@ -0,0 +1,144 @@
++#
++# SCCS: @(#)netbsd.mk 1.1 (2003/06/16)
++#
++# ************************************************************************
++#
++# SCCS: @(#)netbsd.mk 1.1 2003/06/16 TETware release 3.2
++# NAME: netbsd.mk
++# PRODUCT: TETware
++# AUTHOR: Alistair Crooks
++# DATE CREATED: June 2003
++#
++# DESCRIPTION:
++# defines.mk file for NetBSD
++# Contributed by Alistair Crooks
++#
++# MODIFICATIONS:
++#
++#
++# ************************************************************************
++
++# tccd can be started:
++# from /etc/inittab (SYSV systems)
++# from /etc/inetd (BSD4.3 style)
++# from /etc/rc (BSD4.2 style)
++# interactively by a user
++#
++# inittab systems should include -DINITTAB in DTET_CDEFS below
++# inetd systems should include -DINETD in DTET_CDEFS below
++# [ Not relevant for TETware-Lite ]
++
++# TCCD specifies the name by which tccd is to be known; this should be in.tccd
++# if you define INETD, otherwise it should be tccd
++# [ Not used when building TETware-Lite ]
++TCCD = tccd
++
++# parallel build indicator (mainly for DYNIX)
++# leave this blank for most systems
++P =
++
++# make utilities - these don't usually change
++MAKE = make
++SHELL = /bin/sh
++
++# TET and DTET defines; one of these is added to CDEFS in each compilation
++# TET_CDEFS are used to compile most source files
++# these should include -D_POSIX_SOURCE
++# you may want to define TET_SIG_IGNORE and TET_SIG_LEAVE here
++#
++# DTET_CDEFS are used to compile source files which use non-POSIX
++# features, such as networking and threads
++# for example:
++# inet: DTET_CDEFS = -D_ALL_SOURCE -DINETD
++# xti: DTET_CDEFS = -D_ALL_SOURCE -DTCPTPI
++#
++TET_CDEFS = -D_POSIX_SOURCE -DNSIG=32
++DTET_CDEFS =
++
++# sgs component definitions and flags
++# CC - the name of the C compiler
++CC = cc
++# CDEFS may be passed to lint and cc, COPTS to cc only
++# CDEFS usually defines NSIG (the highest signal number plus one)
++CDEFS = -I$(INC) -I$(DINC)
++COPTS = -O
++# THR_COPTS is used instead of COPTS when compiling the thread API library.
++# To disable thread support, set THR_COPTS = THREADS_NOT_SUPPORTED.
++# For POSIX threads, include -DTET_POSIX_THREADS (default is UI threads).
++THR_COPTS = -pthread -DTET_POSIX_THREADS -DETIME=ETIMEDOUT
++# LDFLAGS - loader flags used by make's built-in rules
++LDFLAGS =
++# C_PLUS - the name of the C++ compiler
++# To disable C++ support, set C_PLUS = CPLUSPLUS_NOT_SUPPORTED.
++C_PLUS = c++
++# C_SUFFIX - suffix for C++ source files
++C_SUFFIX = C
++# if your system's a.out format includes a .comment section that can be
++# compressed by using mcs -c, set MCS to mcs; otherwise set MCS to @:
++MCS = @:
++# AR is the name of the archive library maintainer
++AR = ar
++# LORDER and TSORT are the names for lorder and tsort, used to order an archive
++# library; if they don't exist on your system or don't work, set LORDER to echo
++# and TSORT to cat
++LORDER = lorder
++TSORT = tsort -q
++# if your system needs ranlib run after an archive library is updated,
++# set RANLIB to ranlib; otherwise set RANLIB to @:
++RANLIB = ranlib
++
++# Source and object file suffixes that are understood by the sgs
++# on this platform.
++# Note that all these suffixes may include an initial dot - this convention
++# permits an empty suffix to be specified.
++# O - suffix that denotes an object file (e.g.: .obj or .o)
++O = .o
++# A - suffix that denotes an archive library (e.g.: .lib or .a)
++A = .a
++# E - suffix that denotes an executable file (e.g.: .exe or nothing)
++E =
++
++# system libraries for inclusion at the end of cc command line
++SYSLIBS =
++
++# lint libraries for inclusion at the end of lint command line
++LINTLIBS =
++
++# Definitions for xpg3sh API and TCM
++#
++# standard signal numbers - change to correct numbers for your system
++# SIGHUP, SIGINT, SIGQUIT, SIGILL, SIGABRT, SIGFPE, SIGPIPE, SIGALRM,
++# SIGTERM, SIGUSR1, SIGUSR2, SIGTSTP, SIGCONT, SIGTTIN, SIGTTOU
++#
++# Example: SH_STD_SIGNALS = 1 2 3 4 6 8 13 14 15 16 17 25 26 27 28
++SH_STD_SIGNALS = 1 2 3 4 6 8 13 14 15 30 31 18 19 21 22
++
++# signals that are always unhandled - change for your system
++# May need to include SIGSEGV and others if the shell can't trap them
++# SIGKILL, SIGCHLD, SIGSTOP, (SIGSEGV, ...)
++#
++# Example: SH_SPEC_SIGNALS = 9 18 24 11
++SH_SPEC_SIGNALS = 9 20 17
++
++# highest shell signal number plus one
++# May need to be less than the value specified with -DNSIG in CDEFS
++# if the shell can't trap higher signal numbers
++SH_NSIG = 32
++
++# Definitions for ksh API and TCM
++KSH_STD_SIGNALS = $(SH_STD_SIGNALS)
++KSH_SPEC_SIGNALS = $(SH_SPEC_SIGNALS)
++KSH_NSIG = $(SH_NSIG)
++
++# rules to make the lint libraries
++# To include threads functions in the lint libraries, add -DTET_THREADS
++# or -DTET_POSIX_THREADS to the lint command
++.SUFFIXES: .ln
++
++# the following should work for more recent SYSV-derived lints
++# .c.ln:
++# lint $(CDEFS) -c $<
++#
++# if you have a BSD-style lint and you want lint libraries, you will probably
++# have to make them by hand
++
diff --git a/devel/tet3/patches/patch-ab b/devel/tet3/patches/patch-ab
new file mode 100644
index 00000000000..b94001b03a1
--- /dev/null
+++ b/devel/tet3/patches/patch-ab
@@ -0,0 +1,14 @@
+$NetBSD: patch-ab,v 1.1.1.1 2003/06/17 17:39:03 agc Exp $
+
+--- ../configure 2003/06/16 14:59:00 1.1
++++ ../configure 2003/06/16 14:59:20
+@@ -230,6 +230,9 @@
+ *-freebsd)
+ fname=freebsd.mk
+ ;;
++*-netbsd)
++ fname=netbsd.mk
++ ;;
+ *-bsdi)
+ fname=bsdi.mk
+ ;;
diff --git a/devel/tet3/patches/patch-ac b/devel/tet3/patches/patch-ac
new file mode 100644
index 00000000000..87b2af0f945
--- /dev/null
+++ b/devel/tet3/patches/patch-ac
@@ -0,0 +1,170 @@
+$NetBSD: patch-ac,v 1.1.1.1 2003/06/17 17:39:03 agc Exp $
+
+--- /dev/null 2003-06-16 16:04:41.000000000 +0100
++++ defines/UNTESTED/netbsd.mk 2003-06-16 16:03:57.000000000 +0100
+@@ -0,0 +1,165 @@
++#
++# SCCS: @(#)netbsd.mk 1.1 (2003/06/16)
++#
++# Wasabi Systems, Inc
++#
++# Copyright (c) 1998 Wasabi Systems, Inc
++# All rights reserved.
++#
++# No part of this source code may be reproduced, stored in a retrieval
++# system, or transmitted, in any form or by any means, electronic,
++# mechanical, photocopying, recording or otherwise, except as stated in
++# the end-user licence agreement, without the prior permission of the
++# copyright owners.
++# A copy of the end-user licence agreement is contained in the file
++# Licence which accompanies this distribution.
++#
++# Motif, OSF/1, UNIX and the "X" device are registered trademarks and
++# IT DialTone and The Open Group are trademarks of The Open Group in
++# the US and other countries.
++#
++# X/Open is a trademark of X/Open Company Limited in the UK and other
++# countries.
++#
++# ************************************************************************
++#
++# SCCS: @(#)netbsd.mk 1.1 2003/06/16 TETware release 3.3
++# NAME: netbsd.mk
++# PRODUCT: TETware
++# AUTHOR: Alistair Crooks
++# DATE CREATED: June 2003
++#
++# DESCRIPTION:
++# Common machine-dependent definition used in makefiles.
++# This file is included in lower level makefiles.
++#
++# This one for NetBSD using sockets and POSIX threads.
++# Note: this version builds the rc version of tccd.
++#
++# MODIFICATIONS:
++#
++# ************************************************************************
++
++# tccd can be started:
++# from /etc/inittab (SYSV systems)
++# from /etc/inetd (BSD4.3 style)
++# from /etc/rc (BSD4.2 style)
++# interactively by a user
++#
++# inittab systems should include -DINITTAB in DTET_CDEFS below
++# inetd systems should include -DINETD in DTET_CDEFS below
++# [ Not relevant for TETware-Lite ]
++
++# TCCD specifies the name by which tccd is to be known; this should be in.tccd
++# if you define INETD, otherwise it should be tccd
++# [ Not used when building TETware-Lite ]
++TCCD = tccd
++
++# parallel build indicator (mainly for DYNIX)
++# leave this blank for most systems
++P =
++
++# make utilities - these don't usually change
++MAKE = make
++SHELL = /bin/sh
++
++# TET and DTET defines; one of these is added to CDEFS in each compilation
++# TET_CDEFS are used to compile most source files
++# these should include -D_POSIX_SOURCE
++# you may want to define TET_SIG_IGNORE and TET_SIG_LEAVE here
++#
++# DTET_CDEFS are used to compile source files which use non-POSIX
++# features, such as networking and threads
++# for example:
++# inet: DTET_CDEFS = -D_ALL_SOURCE -DINETD
++# xti: DTET_CDEFS = -D_ALL_SOURCE -DTCPTPI
++#
++TET_CDEFS = -D_POSIX_SOURCE -DNSIG=32
++DTET_CDEFS =
++
++# sgs component definitions and flags
++# CC - the name of the C compiler
++CC = cc
++# CDEFS may be passed to lint and cc, COPTS to cc only
++# CDEFS usually defines NSIG (the highest signal number plus one)
++CDEFS = -I$(INC) -I$(DINC)
++COPTS = -O
++# THR_COPTS is used instead of COPTS when compiling the thread API library.
++# To disable thread support, set THR_COPTS = THREADS_NOT_SUPPORTED.
++# For POSIX threads, include -DTET_POSIX_THREADS (default is UI threads).
++THR_COPTS = -pthread -DTET_POSIX_THREADS -DETIME=ETIMEDOUT
++# LDFLAGS - loader flags used by make's built-in rules
++LDFLAGS =
++# C_PLUS - the name of the C++ compiler
++# To disable C++ support, set C_PLUS = CPLUSPLUS_NOT_SUPPORTED.
++C_PLUS = c++
++# C_SUFFIX - suffix for C++ source files
++C_SUFFIX = C
++# if your system's a.out format includes a .comment section that can be
++# compressed by using mcs -c, set MCS to mcs; otherwise set MCS to @:
++MCS = @:
++# AR is the name of the archive library maintainer
++AR = ar
++# LORDER and TSORT are the names for lorder and tsort, used to order an archive
++# library; if they don't exist on your system or don't work, set LORDER to echo
++# and TSORT to cat
++LORDER = lorder
++TSORT = tsort -q
++# if your system needs ranlib run after an archive library is updated,
++# set RANLIB to ranlib; otherwise set RANLIB to @:
++RANLIB = ranlib
++
++# Source and object file suffixes that are understood by the sgs
++# on this platform.
++# Note that all these suffixes may include an initial dot - this convention
++# permits an empty suffix to be specified.
++# O - suffix that denotes an object file (e.g.: .obj or .o)
++O = .o
++# A - suffix that denotes an archive library (e.g.: .lib or .a)
++A = .a
++# E - suffix that denotes an executable file (e.g.: .exe or nothing)
++E =
++
++# system libraries for inclusion at the end of cc command line
++SYSLIBS =
++
++# Definitions for xpg3sh API and TCM
++#
++# standard signal numbers - change to correct numbers for your system
++# SIGHUP, SIGINT, SIGQUIT, SIGILL, SIGABRT, SIGFPE, SIGPIPE, SIGALRM,
++# SIGTERM, SIGUSR1, SIGUSR2, SIGTSTP, SIGCONT, SIGTTIN, SIGTTOU
++#
++# Example: SH_STD_SIGNALS = 1 2 3 4 6 8 13 14 15 16 17 25 26 27 28
++SH_STD_SIGNALS = 1 2 3 4 6 8 13 14 15 30 31 18 19 21 22
++
++# signals that are always unhandled - change for your system
++# May need to include SIGSEGV and others if the shell can't trap them
++# SIGKILL, SIGCHLD, SIGSTOP, (SIGSEGV, ...)
++#
++# Example: SH_SPEC_SIGNALS = 9 18 24 11
++SH_SPEC_SIGNALS = 9 20 17
++
++# highest shell signal number plus one
++# May need to be less than the value specified with -DNSIG in CDEFS
++# if the shell can't trap higher signal numbers
++SH_NSIG = 32
++
++# Definitions for ksh API and TCM
++KSH_STD_SIGNALS = $(SH_STD_SIGNALS)
++KSH_SPEC_SIGNALS = $(SH_SPEC_SIGNALS)
++KSH_NSIG = $(SH_NSIG)
++
++# Variables added in TETware release 3.3.
++# Refer to "Preparing to build TETware" in the TETware Installation Guide
++# for UNIX Operating Systems for further details.
++#
++# Not yet tested on this platform.
++TET_THR_CDEFS = $(DTET_CDEFS)
++DTET_THR_CDEFS = $(DTET_CDEFS)
++SHLIB_COPTS = SHLIB_NOT_SUPPORTED
++SHLIB_CC = $(CC)
++SHLIB_BUILD =
++SHLIB_BUILD_END =
++THRSHLIB_BUILD_END =
++SO =
++
diff --git a/devel/tet3/patches/patch-ad b/devel/tet3/patches/patch-ad
new file mode 100644
index 00000000000..eae6ec3e257
--- /dev/null
+++ b/devel/tet3/patches/patch-ad
@@ -0,0 +1,15 @@
+$NetBSD: patch-ad,v 1.1.1.1 2003/06/17 17:39:03 agc Exp $
+
+Matt Thomas's patch
+
+--- tet3/dtet2lib/notty.c 1999-09-04 15:47:17.000000000 +0100
++++ tet3/dtet2lib/notty.c 2003-05-27 23:55:51.000000000 +0100
+@@ -97,7 +97,7 @@
+ ** this for BSD systems where setpgrp() does not change the
+ ** control terminal
+ */
+- if ((ttyfd = open("/dev/tty", O_RDONLY | O_NDELAY)) >= 0) {
++ if ((ttyfd = open("/dev/tty", O_RDONLY | O_NONBLOCK)) >= 0) {
+ (void) ioctl(ttyfd, TIOCNOTTY, 0);
+ (void) close(ttyfd);
+ }