Bug 177640 - [new port] devel/kyua-atf-compat ATF compatibility tools for Kyua
Summary: [new port] devel/kyua-atf-compat ATF compatibility tools for Kyua
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Bryan Drewery
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-04-05 00:30 UTC by Alan Somers
Modified: 2013-06-16 15:40 UTC (History)
0 users

See Also:


Attachments
file.shar (2.83 KB, text/plain)
2013-04-05 00:30 UTC, Alan Somers
no flags Details
kyua-atf-compat.shar (2.85 KB, application/x-shar)
2013-04-25 20:21 UTC, Alan Somers
no flags Details
kyua-atf-compat.shar (2.84 KB, application/x-shar)
2013-06-12 16:05 UTC, Alan Somers
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alan Somers freebsd_committer freebsd_triage 2013-04-05 00:30:00 UTC
These scripts help migrate from ATF to Kyua.  They compatibly reimplement the command line tools from ATF using the Kyua binaries, and they can also convert Atffile's to Kyuafile's.

Fix: Patch attached with submission follows:
Comment 1 Alan Somers freebsd_committer freebsd_triage 2013-04-25 20:21:01 UTC
Updated the port with comments from Garrett.
* Switch Makefile headers to the new style
* Make use of EXAMPLESDIR, DOCSDIR, PORTDOCS, PORTEXAMPLES, and
PORTDATA where appropriate.
* Add support for the DOCS and EXAMPLES port options
* Minor cleanup
Comment 2 Bryan Drewery freebsd_committer freebsd_triage 2013-05-16 13:36:32 UTC
Responsible Changed
From-To: freebsd-ports-bugs->bdrewery

I'll take it.
Comment 3 Alan Somers freebsd_committer freebsd_triage 2013-06-12 16:05:22 UTC
As suggested by bdrewery, convert USE_PKGCONFIG to "USES= pkgconfig"
and make PORTDATA, PORTDOCS, and PORTEXAMPLES unconditional.
Comment 4 Bryan Drewery freebsd_committer freebsd_triage 2013-06-16 15:30:01 UTC
State Changed
From-To: open->closed

Committed. Thanks!
Comment 5 dfilter service freebsd_committer freebsd_triage 2013-06-16 15:30:07 UTC
Author: bdrewery
Date: Sun Jun 16 14:29:59 2013
New Revision: 321053
URL: http://svnweb.freebsd.org/changeset/ports/321053

Log:
  New port: devel/kyua-atf-compat:
  
  Kyua (pronounced Q.A.) is a testing framework for both developers and
  users.  Kyua is different from most other testing frameworks in that it
  puts the end user experience before anything else.  There are multiple
  reasons for users to run the tests themselves, and Kyua ensures that
  they can do so in the most convenient way.
  
  This module, kyua-atf-compat, provides tools to ease the transition from
  ATF to Kyua.  In particular, this includes is a tool to convert Atffile
  files to Kyuafile files in an automated manner, and drop-in replacement
  wrappers for atf-run and atf-report.
  
  WWW: https://code.google.com/p/kyua/
  
  PR:		ports/177640
  Submitted by:	asomers
  Reviewed by:	Garrett Cooper <yaneurabeya@gmail.com>

Added:
  head/devel/kyua-atf-compat/
  head/devel/kyua-atf-compat/Makefile   (contents, props changed)
  head/devel/kyua-atf-compat/distinfo   (contents, props changed)
  head/devel/kyua-atf-compat/pkg-descr   (contents, props changed)
  head/devel/kyua-atf-compat/pkg-plist   (contents, props changed)
Modified:
  head/devel/Makefile

Modified: head/devel/Makefile
==============================================================================
--- head/devel/Makefile	Sun Jun 16 14:22:13 2013	(r321052)
+++ head/devel/Makefile	Sun Jun 16 14:29:59 2013	(r321053)
@@ -915,6 +915,7 @@
     SUBDIR += kscope
     SUBDIR += kyra
     SUBDIR += kyua
+    SUBDIR += kyua-atf-compat
     SUBDIR += kyua-testers
     SUBDIR += lasi
     SUBDIR += lcov

Added: head/devel/kyua-atf-compat/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/kyua-atf-compat/Makefile	Sun Jun 16 14:29:59 2013	(r321053)
@@ -0,0 +1,45 @@
+# Created by: Alan Somers <asomers@freebsd.org>
+# $FreeBSD$
+
+PORTNAME=	kyua-atf-compat
+PORTVERSION=	0.1
+CATEGORIES=	devel
+MASTER_SITES=	${MASTER_SITE_GOOGLE_CODE}
+PROJECTHOST=	kyua
+
+MAINTAINER=	asomers@freebsd.org
+COMMENT=	Kyua (automated testing framework) - ATF compatibility tools
+
+LICENSE=	BSD
+
+RUN_DEPENDS=	kyua:${PORTSDIR}/devel/kyua
+
+GNU_CONFIGURE=	yes
+USES=		pkgconfig
+
+OPTIONS_DEFINE=	DOCS
+
+.include <bsd.port.options.mk>
+
+CONFIGURE_ARGS+=	--docdir=${DOCSDIR}
+# TODO: install the tests, once FreeBSD has a system for ports to install tests
+CONFIGURE_ARGS+=	--without-atf
+
+.if ! ${PORT_OPTIONS:MDOCS}
+MAKE_FLAGS+=	doc_DATA=
+.endif
+PLIST_SUBST+=	TESTS="@comment "
+
+PORTDATA=	lib.subr tests_lib.subr
+PORTDOCS=	AUTHORS COPYING NEWS README
+MAN1=	atf-report.1 atf-run.1 atf2kyua.1
+
+# Eliminate empty directories
+remove-docsdir: .SILENT
+	${RMDIR} ${DOCSDIR}
+
+.if ! ${PORT_OPTIONS:MDOCS}
+post-install: remove-docsdir
+.endif
+
+.include <bsd.port.mk>

Added: head/devel/kyua-atf-compat/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/kyua-atf-compat/distinfo	Sun Jun 16 14:29:59 2013	(r321053)
@@ -0,0 +1,2 @@
+SHA256 (kyua-atf-compat-0.1.tar.gz) = dd3f647ec015b4d4595d1f16ad79673b66c44f6e19cb9176dfcf4fc9d2cfd8e8
+SIZE (kyua-atf-compat-0.1.tar.gz) = 73743

Added: head/devel/kyua-atf-compat/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/kyua-atf-compat/pkg-descr	Sun Jun 16 14:29:59 2013	(r321053)
@@ -0,0 +1,12 @@
+Kyua (pronounced Q.A.) is a testing framework for both developers and
+users.  Kyua is different from most other testing frameworks in that it
+puts the end user experience before anything else.  There are multiple
+reasons for users to run the tests themselves, and Kyua ensures that
+they can do so in the most convenient way.
+
+This module, kyua-atf-compat, provides tools to ease the transition from
+ATF to Kyua.  In particular, this includes is a tool to convert Atffile
+files to Kyuafile files in an automated manner, and drop-in replacement
+wrappers for atf-run and atf-report.
+
+WWW: https://code.google.com/p/kyua/

Added: head/devel/kyua-atf-compat/pkg-plist
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/kyua-atf-compat/pkg-plist	Sun Jun 16 14:29:59 2013	(r321053)
@@ -0,0 +1,5 @@
+bin/atf-report
+bin/atf-run
+bin/atf2kyua
+@dirrmtry tests/kyua-atf-compat
+@dirrmtry tests
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"