Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 9 Mar 2006 13:12:38 -0800 (PST)
From:      Mark Atkinson <m.atkinson@f5.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/94286: [NEW PORT]: devel/staf An extensible multi-platform software automation test framework
Message-ID:  <200603092112.k29LCcV5013291@moby.pdsea.f5net.com>
Resent-Message-ID: <200603092120.k29LK1at054422@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         94286
>Category:       ports
>Synopsis:       [NEW PORT]: devel/staf An extensible multi-platform software automation test framework
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Mar 09 21:20:01 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Mark Atkinson
>Release:        FreeBSD 7.0-CURRENT i386
>Organization:
>Environment:
System: FreeBSD moby 7.0-CURRENT FreeBSD 7.0-CURRENT #12: Wed Mar 8 08:39:15 PST 2006 root@moby:/usr/obj/usr/src/sys/MOBY i386

>Description:
Attached is a shar for devel/staf.  This is a software test automation 
framework published under the CPL.  See http://staf.sourceforge.net
for detailed information on using staf and programming in the framework.
>How-To-Repeat:
N/A
>Fix:

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	staf
#	staf/Makefile
#	staf/pkg-plist
#	staf/pkg-descr
#	staf/files
#	staf/files/patch-stafif-unix-STAFSocket.cpp
#	staf/files/patch-build-makefile.freebsd
#	staf/distinfo
#
echo c - staf
mkdir -p staf > /dev/null 2>&1
echo x - staf/Makefile
sed 's/^X//' >staf/Makefile << 'END-of-staf/Makefile'
X# New ports collection makefile for:   staf
X# Date created:        3 March 2006
X# Whom:                Mark Atkinson <atkin901@yahoo.com>
X#
X# $FreeBSD$
X#
X
XPORTNAME=		staf
XPORTVERSION=	3.1.2
XCATEGORIES=		devel
XMASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
XMASTER_SITE_SUBDIR=	staf
XDISTNAME=		STAF312-src
X
XMAINTAINER=		atkin901@yahoo.com
XCOMMENT=		A software Testing Automation Framework
X
XUSE_GMAKE=		yes
XWRKSRC=			${WRKDIR}/src/staf
XINSTALL_WRKSRC=	${WRKDIR}/rel/freebsd/staf/retail
XINSTALLS_SHLIB=	yes
XMAKEFILE=		makefile
XSTAF_PROJECTS=	staf connprov_tcp connprov_localipc
X
XMAKE_ENV=		OS_NAME="freebsd" PROJECTS="${STAF_PROJECTS}"
X
X.if !defined(WITHOUT_TCL)
X    LIB_DEPENDS+=tcl84:${PORTSDIR}/lang/tcl84
X    STAF_PROJECTS+=tcl
X    MAKE_ENV+=	TCL_INCLUDEDIRS=${PREFIX}/include/tcl8.4 \
X				TCL_LIBDIRS=${PREFIX}/lib \
X				TCL_LIBS=tcl84
X.endif
X
X.if !defined(WITHOUT_PYTHON)
X    LIB_DEPENDS+=python2.4:${PORTSDIR}/lang/python
X    STAF_PROJECTS+= python
X    MAKE_ENV+= PYTHON_INCLUDEDIRS=${PREFIX}/include/python2.4
X.endif
X
X.if !defined(WITHOUT_PERL)
X    STAF_PROJECTS+= perl
X.endif
X
X# here we have to move some libraries which are incorrectly generated
X# in the install manifest.  These maybe moved to the correct locations
X# in the 'make package' target.
Xpre-install:
X	@(cd ${INSTALL_WRKSRC} && ${MKDIR} lib/IPv4)
X	-@(cd ${INSTALL_WRKSRC} && ${MV} lib/libSTAFTCP.so lib/IPv4/)
X	-@(cd ${INSTALL_WRKSRC} && ${MV} lib/libSTAF.so lib/IPv4/)
X
Xdo-install:
X	@(cd ${INSTALL_WRKSRC} && ./STAFInst -verbose -acceptlicense -target ${PREFIX}/staf -bin ${PREFIX}/bin -lib ${PREFIX}/lib)
X
X.include <bsd.port.mk>
END-of-staf/Makefile
echo x - staf/pkg-plist
sed 's/^X//' >staf/pkg-plist << 'END-of-staf/pkg-plist'
Xbin/FmtLog
Xbin/STAF
Xbin/fmtlog
Xbin/staf
Xlib/PYSTAF.so
Xlib/libSTAF.so
Xlib/libSTAFDSLS.so
Xlib/libSTAFLIPC.so
Xlib/libSTAFLog.so
Xlib/libSTAFMon.so
Xlib/libSTAFPool.so
Xlib/libSTAFTCP.so
Xlib/libTCLSTAF.so
Xstaf/LICENSE.htm
Xstaf/STAFEnv.sh
Xstaf/STAFReg.inf
Xstaf/STAFUninst
Xstaf/bin/FmtLog
Xstaf/bin/PLSTAF.pm
Xstaf/bin/STAF
Xstaf/bin/STAF.cfg
Xstaf/bin/STAF.pl
Xstaf/bin/STAF.tcl
Xstaf/bin/STAF2.pl
Xstaf/bin/STAFLog.pm
Xstaf/bin/STAFMon.pm
Xstaf/bin/STAFProc
Xstaf/bin/STAFReg
Xstaf/bin/fmtlog
Xstaf/bin/staf
Xstaf/codepage/alias.txt
Xstaf/codepage/ibm-1047.bin
Xstaf/codepage/ibm-437.bin
Xstaf/codepage/ibm-850.bin
Xstaf/include/STAF.h
Xstaf/include/STAFDataTypes.h
Xstaf/include/STAFDataTypesInlImpl.cpp
Xstaf/include/STAFDynamicLibrary.h
Xstaf/include/STAFDynamicLibraryInlImpl.cpp
Xstaf/include/STAFError.h
Xstaf/include/STAFEventSem.h
Xstaf/include/STAFEventSemInlImpl.cpp
Xstaf/include/STAFException.h
Xstaf/include/STAFFileSystem.h
Xstaf/include/STAFFileSystemInlImpl.cpp
Xstaf/include/STAFInlImpl.cpp
Xstaf/include/STAFLogService.h
Xstaf/include/STAFMonitorService.h
Xstaf/include/STAFMutexSemInlImpl.cpp
Xstaf/include/STAFOSTypes.h
Xstaf/include/STAFProcess.h
Xstaf/include/STAFProcessInlImpl.cpp
Xstaf/include/STAFRefPtr.h
Xstaf/include/STAFResPoolService.h
Xstaf/include/STAFString.h
Xstaf/include/STAFStringInlImpl.cpp
Xstaf/include/STAFThread.h
Xstaf/include/STAFTimestamp.h
Xstaf/include/STAFTimestampInlImpl.cpp
Xstaf/include/STAFTrace.h
Xstaf/include/STAFTraceInlImpl.cpp
Xstaf/include/STAFUtil.h
Xstaf/include/STAF_fstream.h
Xstaf/include/STAF_iostream.h
Xstaf/lib/IPv4/libSTAF.so
Xstaf/lib/IPv4/libSTAFTCP.so
Xstaf/lib/PYSTAF.so
Xstaf/lib/PySTAF.py
Xstaf/lib/PySTAFLog.py
Xstaf/lib/PySTAFMon.py
Xstaf/lib/STAFLog.tcl
Xstaf/lib/STAFMon.tcl
Xstaf/lib/STAFUtil.tcl
Xstaf/lib/libSTAF.so
Xstaf/lib/libSTAFDSLS.so
Xstaf/lib/libSTAFLIPC.so
Xstaf/lib/libSTAFLog.so
Xstaf/lib/libSTAFMon.so
Xstaf/lib/libSTAFPool.so
Xstaf/lib/libSTAFTCP.so
Xstaf/lib/libTCLSTAF.so
Xstaf/lib/pkgIndex.tcl
Xstaf/samples/c/LogIt.c
Xstaf/samples/cpp/LogIt.cpp
Xstaf/samples/demo/STAFDemoController.java
Xstaf/samples/demo/STAFProcess.java
Xstaf/samples/java/JPing.java
Xstaf/samples/rexx/PingTest.cmd
Xstaf/samples/rexx/Sample1.cmd
Xstaf/samples/rexx/Sample2.cmd
Xstaf/samples/rexx/Sample3.cmd
Xstaf/samples/rexx/Sample4.cmd
X@dirrm staf/samples/rexx
X@dirrm staf/samples/java
X@dirrm staf/samples/demo
X@dirrm staf/samples/cpp
X@dirrm staf/samples/c
X@dirrm staf/samples
X@dirrm staf/lib/IPv4
X@dirrm staf/lib
X@dirrm staf/include
X@dirrm staf/codepage
X@dirrm staf/bin
X@dirrm staf
END-of-staf/pkg-plist
echo x - staf/pkg-descr
sed 's/^X//' >staf/pkg-descr << 'END-of-staf/pkg-descr'
XA freebsd port of STAF.  The Software Testing Automation Framework (STAF) 
Xis a framework designed to improve the level of reuse and automation in 
Xtest cases and test environments. The goal of STAF is to provide a 
Xcomplete end-to-end automation solution for testers.
X
XWWW: http://staf.sourceforge.net/index.php
END-of-staf/pkg-descr
echo c - staf/files
mkdir -p staf/files > /dev/null 2>&1
echo x - staf/files/patch-stafif-unix-STAFSocket.cpp
sed 's/^X//' >staf/files/patch-stafif-unix-STAFSocket.cpp << 'END-of-staf/files/patch-stafif-unix-STAFSocket.cpp'
X--- stafif/unix/STAFSocket.cpp.org	Fri Mar  3 12:52:11 2006
X+++ stafif/unix/STAFSocket.cpp	Fri Mar  3 12:52:42 2006
X@@ -9,6 +9,7 @@
X #include <fcntl.h>
X #include <arpa/nameser.h>
X #include <resolv.h>
X+#include <netdb.h>
X #include "STAFSocket.h"
X #include "STAF_iostream.h"
X 
END-of-staf/files/patch-stafif-unix-STAFSocket.cpp
echo x - staf/files/patch-build-makefile.freebsd
sed 's/^X//' >staf/files/patch-build-makefile.freebsd << 'END-of-staf/files/patch-build-makefile.freebsd'
X--- /dev/null	Fri Mar  3 13:33:00 2006
X+++ build/makefile.freebsd	Fri Mar  3 13:41:31 2006
X@@ -0,0 +1,28 @@
X+#############################################################################
X+# Software Testing Automation Framework (STAF)                              #
X+# (C) Copyright IBM Corp. 2001                                              #
X+#                                                                           #
X+# This software is licensed under the Common Public License (CPL) V1.0.     #
X+#############################################################################
X+
X+# Setup system variables
X+
X+FS := /
X+PS := :
X+OS_TYPE = unix
X+OS_LIBS = crypt pthread
X+
X+OS_DL_LIB =
X+
X+# Setup tool names
X+
X+STRIP := strip
X+
X+# Setup compiler variables
X+
X+ifeq ($(CC_NAME),)
X+    CC_NAME := gcc
X+endif
X+
X+OS_COMMONFLAGS := -D_XOPEN_SOURCE -D_BSD_SOURCE -DSTAF_OS_NAME_FREEBSD \
X+                  -DSTAF_NO_GETHOSTBYNAME_R -DSTAF_NO_GETHOSTBYADDR_R \
X+                  -D_GNU_SOURCE
END-of-staf/files/patch-build-makefile.freebsd
echo x - staf/distinfo
sed 's/^X//' >staf/distinfo << 'END-of-staf/distinfo'
XMD5 (STAF312-src.tar.gz) = 94122c0cd6ddc848e604852bf283feb5
XSHA256 (STAF312-src.tar.gz) = 2d97cb15f63cb38c880b35c7ccc157ad3d4e5523e1e232ce83d6354ee34c185c
XSIZE (STAF312-src.tar.gz) = 20937191
END-of-staf/distinfo
exit

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200603092112.k29LCcV5013291>