ports/146431: [NEW PORT]devel/api-sanity-autotest

bf bf1783 at gmail.com
Sun May 9 10:30:03 UTC 2010


>Number:         146431
>Category:       ports
>Synopsis:       [NEW PORT]devel/api-sanity-autotest
>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:   Sun May 09 10:30:02 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     bf
>Release:        9-CURRENT amd64
>Organization:
-
>Environment:
>Description:

>How-To-Repeat:

>Fix:


Patch attached with submission follows:

# 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:
#
#	api-sanity-autotest
#	api-sanity-autotest/distinfo
#	api-sanity-autotest/pkg-descr
#	api-sanity-autotest/Makefile
#
echo c - api-sanity-autotest
mkdir -p api-sanity-autotest > /dev/null 2>&1
echo x - api-sanity-autotest/distinfo
sed 's/^X//' >api-sanity-autotest/distinfo << '1c459f44f4e5b5c62402aa9740ca85c8'
XMD5 (Api-sanity-autotest-1.8.tar.gz) = 9e51ede36fbad80ae753337778d24822
XSHA256 (Api-sanity-autotest-1.8.tar.gz) = 0675e7a7db12e6b830f80b32ffb56ddcb1469f77f07bd592bcce4686056adb51
XSIZE (Api-sanity-autotest-1.8.tar.gz) = 119979
1c459f44f4e5b5c62402aa9740ca85c8
echo x - api-sanity-autotest/pkg-descr
sed 's/^X//' >api-sanity-autotest/pkg-descr << '918c0af06dcfaeffe2be64f9ae65c7ea'
XAPI Sanity Autotest is a test generator for shared C/C++ libraries. It can
Xquickly generate simple ("sanity" or "shallow"-quality) tests for functions from
Xthe library API, using the signatures and data type definitions from the library
Xheader files. The tests can detect critical errors in simple use cases, and can
Xbe improved with highly reusable specialized types. API Sanity Autotest can
Xexecute generated tests and detect all kinds of emitted signals, early program
Xexits, program hanging and specified requirement failures. API Sanity Autotest
Xalso supports tests in the Template2Code format, and has a random test
Xgeneration mode and other useful features.
X
XWWW: http://ispras.linux-foundation.org/index.php/API_Sanity_Autotest
918c0af06dcfaeffe2be64f9ae65c7ea
echo x - api-sanity-autotest/Makefile
sed 's/^X//' >api-sanity-autotest/Makefile << '709e45bd8c8f87687e58167f789765bb'
X# New ports collection makefile for:	api-sanity-autotest
X# Date created:		February 16, 2009
X# Whom:	      		bf <bf1783 at gmail.com>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	api-sanity-autotest
XPORTVERSION=	1.8
XCATEGORIES=	devel perl5
XMASTER_SITES=	http://ispras.linux-foundation.org/images/e/e8/
XDISTFILES=	${PORTNAME:S/^a/A/}-${PORTVERSION}${EXTRACT_SUFX}
X
XMAINTAINER=	bf1783 at gmail.com
XCOMMENT=	Quickly generate sanity tests for the API of a C/C++ shared library
X
XNO_BUILD=	yes
XUSE_PERL5_RUN=	yes
X
XPLIST_FILES=	bin/${PORTNAME}.pl
X
XCPPFILT?=	c++filt
XREADELF?=	readelf
X
Xpost-patch:
X	${REINPLACE_CMD} \
X		-e "\%my% { \
X			s%\"c++filt\"%\"${CPPFILT}\"%g; \
X			s%\"readelf\"%\"${READELF}\"%g; \
X			s%\"g++\"%\"${CXX}\"%g; \
X			s%\"gcc\"%\"${CC}\"%g; }" \
X		-e "\%search_for% { \
X			s%\"g++\"%\"${CXX}\"%g; \
X			s%\"gcc\"%\"${CC}\"%g; }" \
X		-e "s% -shared%& -fPIC%g" \
X		${WRKSRC}/${PORTNAME}.pl
X
Xdo-install:
X	@${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME}.pl ${PREFIX}/bin
X
Xtest: build
X	@(cd ${WRKSRC} && ./${PORTNAME}.pl -test )
X
X.include <bsd.port.mk>
709e45bd8c8f87687e58167f789765bb
exit



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



More information about the freebsd-ports-bugs mailing list