Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 19 Feb 2002 21:16:12 -0800 (PST)
From:      Jiwon Seo <seojiwonn@yahoo.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/35131: New port: unittest framework for c
Message-ID:  <200202200516.g1K5GCX12203@freefall.freebsd.org>

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

>Number:         35131
>Category:       ports
>Synopsis:       New port: unittest framework for c
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          wish
>Submitter-Id:   current-users
>Arrival-Date:   Tue Feb 19 21:20:01 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Jiwon Seo
>Release:        4.4-RELEASE
>Organization:
SoftWise INC.
>Environment:
FreeBSD localhost 4.4-RELEASE FreeBSD 4.4-RELEASE #5: Sun Jan  2 00:51:32 KST 2000     root@mecury.net:/usr/obj/usr/src/sys/SKIDKERN  i386
>Description:

>How-To-Repeat:
      
>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:
#
#       autounit
#       autounit/files
#       autounit/files/patch-test.h
#       autounit/pkg-comment
#       autounit/Makefile
#       autounit/pkg-descr
#       autounit/distinfo
#       autounit/pkg-plist
#
echo c - autounit
mkdir -p autounit > /dev/null 2>&1
echo c - autounit/files
mkdir -p autounit/files > /dev/null 2>&1
echo x - autounit/files/patch-test.h
sed 's/^X//' >autounit/files/patch-test.h << 'END-of-autounit/files/patch-test.h'
X--- c-unit/test.h.orig Tue Sep 18 00:56:11 2001
X+++ c-unit/test.h      Tue Feb 19 17:15:11 2002
X@@ -116,16 +116,12 @@
X                                       gint rounds,gint modulo);
X void au_delete_testcase(autounit_testcase_t *t);
X
X-#define __au_assert_fail(file,line,msg) \
X-                                 file ":" \
X-                                 #line \
X-                                 ":FAIL:" \
X-                                 msg "\n"
X #define au_assert(test,err_msg,expr) (void)((expr) ? 0 : \
X-                   (test->test_status = \
X-                   g_string_append(test->test_status, \
X-                                 __au_assert_fail \
X-                     (__FILE__,__LINE__,err_msg)),test->failed_assertions++))
X+                   (g_string_sprintfa(test->test_status, \
X+                        "%s:%d(%s):(%s) FAIL: %s\n",\
X+                              __FILE__,__LINE__,__PRETTY_FUNCTION__,\
X+                                              #expr,err_msg),\
X+                        test->failed_assertions++))
X
X      /* Utility functions used internally by Autounit */
X GString *au_gstring_to_netstring(GString *s);
X@@ -145,6 +141,9 @@
X #include <string.h>
X char * strndup(const char * s, size_t n);
X #endif
X+
X+#define FORK          (1)
X+#define FORK_NOT      (0)
X
X #endif  /* AUTOUNIT_C_TEST_H */
X
END-of-autounit/files/patch-test.h
echo x - autounit/pkg-comment
sed 's/^X//' >autounit/pkg-comment << 'END-of-autounit/pkg-comment'
XUnittesting framework for C
END-of-autounit/pkg-comment
echo x - autounit/Makefile
sed 's/^X//' >autounit/Makefile << 'END-of-autounit/Makefile'
X# New ports collection makefile for:   autounit
X# Date created:                18 Feburary 2002
X# Whom:                                Jiwon Seo <seojiwonn@yahoo.com>
X#
X# $FreeBSD$
X#
X
XPORTNAME=      autounit
XPORTVERSION=   0.10.2
XCATEGORIES=    devel
XMASTER_SITES=  http://www.recursism.com/projects/autounit/
X
XDISTNAME=       ${PORTNAME}-${PORTVERSION}
X
XMAINTAINER=    seojiwonn@yahoo.com
X
XUSE_GLIB=      yes
XGNU_CONFIGURE= yes
X
Xpost-patch:
X       ${PERL} -pi -e "s,glib-config,${GLIB_CONFIG},g" \
X                       ${WRKSRC}/c-unit/Makefile.in
X       ${PERL} -pi -e "s,glib-config,${GLIB_CONFIG},g" ${WRKSRC}/configure
X.include <bsd.port.mk>
END-of-autounit/Makefile
echo x - autounit/pkg-descr
sed 's/^X//' >autounit/pkg-descr << 'END-of-autounit/pkg-descr'
XGNU Autounit is a unittesting framework for C.
XIt can set each test to be forked or non-forked(for debugging).
XAutounit is supposed to be used with GNU Autoconf,
Xbut it can be used alone.
X
XWWW: http://www.recursism.com/projects/autounit/autounit.html
END-of-autounit/pkg-descr
echo x - autounit/distinfo
sed 's/^X//' >autounit/distinfo << 'END-of-autounit/distinfo'
XMD5 (autounit-0.10.2.tar.gz) = 85ba614a10c789644a7ee986c496dcb3
END-of-autounit/distinfo
echo x - autounit/pkg-plist
sed 's/^X//' >autounit/pkg-plist << 'END-of-autounit/pkg-plist'
Xdoc/autounit-0.10.2/autounit.html
Xdoc/autounit-0.10.2/AUTHORS
Xdoc/autounit-0.10.2/COPYING
Xdoc/autounit-0.10.2/ChangeLog
Xdoc/autounit-0.10.2/INSTALL
Xdoc/autounit-0.10.2/NEWS
Xdoc/autounit-0.10.2/README
Xinclude/c-unit/test.h
Xinfo/autounit.info
Xinfo/dir
Xlib/libau-c-unit.a
X@dirrm doc/autounit-0.10.2
X@unexec rmdir %D/doc 2>/dev/null || true
X@dirrm include/c-unit
X@unexec rmdir %D/inlude 2>/dev/null || true
END-of-autounit/pkg-plist
exit
>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




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