From owner-svn-ports-all@freebsd.org Tue May 2 14:40:01 2017 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D7500D5AA2F; Tue, 2 May 2017 14:40:01 +0000 (UTC) (envelope-from tobik@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id AF48E1F10; Tue, 2 May 2017 14:40:01 +0000 (UTC) (envelope-from tobik@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v42Ee0cB002359; Tue, 2 May 2017 14:40:00 GMT (envelope-from tobik@FreeBSD.org) Received: (from tobik@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v42Ee0Wp002353; Tue, 2 May 2017 14:40:00 GMT (envelope-from tobik@FreeBSD.org) Message-Id: <201705021440.v42Ee0Wp002353@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: tobik set sender to tobik@FreeBSD.org using -f From: Tobias Kortkamp Date: Tue, 2 May 2017 14:40:00 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r439949 - in head/sysutils/xe: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 May 2017 14:40:01 -0000 Author: tobik Date: Tue May 2 14:40:00 2017 New Revision: 439949 URL: https://svnweb.freebsd.org/changeset/ports/439949 Log: Update to 0.7.0 - Fix and enable tests Changes: https://github.com/chneukirchen/xe/blob/v0.7.0/NEWS.md Approved by: lme (mentor) Differential Revision: https://reviews.freebsd.org/D10393 Added: head/sysutils/xe/files/patch-tests (contents, props changed) Modified: head/sysutils/xe/Makefile head/sysutils/xe/distinfo head/sysutils/xe/files/patch-xe.c Modified: head/sysutils/xe/Makefile ============================================================================== --- head/sysutils/xe/Makefile Tue May 2 14:31:53 2017 (r439948) +++ head/sysutils/xe/Makefile Tue May 2 14:40:00 2017 (r439949) @@ -2,7 +2,7 @@ # $FreeBSD$ PORTNAME= xe -PORTVERSION= 0.6.1 +PORTVERSION= 0.7.0 DISTVERSIONPREFIX= v CATEGORIES= sysutils @@ -11,11 +11,14 @@ COMMENT= Simple xargs and apply replacem LICENSE= CC0-1.0 +TEST_DEPENDS= prove:lang/perl5.24 + USE_GITHUB= yes GH_ACCOUNT= chneukirchen MAKE_ARGS= CFLAGS="${CFLAGS}" \ MANDIR="${PREFIX}/man" +TEST_TARGET= check PLIST_FILES= bin/xe \ man/man1/xe.1.gz Modified: head/sysutils/xe/distinfo ============================================================================== --- head/sysutils/xe/distinfo Tue May 2 14:31:53 2017 (r439948) +++ head/sysutils/xe/distinfo Tue May 2 14:40:00 2017 (r439949) @@ -1,3 +1,3 @@ -TIMESTAMP = 1469327893 -SHA256 (chneukirchen-xe-v0.6.1_GH0.tar.gz) = 36036d0e9464233d3113af187c473491298ed1168976330d7dd615b8f0521b96 -SIZE (chneukirchen-xe-v0.6.1_GH0.tar.gz) = 6889 +TIMESTAMP = 1492163693 +SHA256 (chneukirchen-xe-v0.7.0_GH0.tar.gz) = 32af920a2d27ed0bb8bcb69339fcc805110888e872c92a372d3888df52b300f8 +SIZE (chneukirchen-xe-v0.7.0_GH0.tar.gz) = 7047 Added: head/sysutils/xe/files/patch-tests ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/xe/files/patch-tests Tue May 2 14:40:00 2017 (r439949) @@ -0,0 +1,49 @@ +Fix tests + +- -A% with no arguments fails now with the additional checks in 0.7.0 +- Trying to exec /dev/null/calc.exe on FreeBSD will fail with ENOENT + (xe exit 127) but on Linux fails with ENODIR (xe exit 126) +- The argscap check returns 8186 + 8186 + 1339 = 17711 on FreeBSD, + which should be fine. + +--- tests.orig 2017-04-13 15:28:38 UTC ++++ tests +@@ -1,5 +1,5 @@ + #!/bin/sh +-printf '1..42\n' ++printf '1..41\n' + + set -e + +@@ -127,9 +127,6 @@ check_output 'using -A%' '$XE -A% echo - + -- 3 + EOF + +-check_output 'using -A% with no arguments' '$XE -A% echo' </dev/null || echo $?' </dev/null || echo $?' < #include @@ -8,7 +8,7 @@ #include #include #include -@@ -100,7 +101,7 @@ mywait() +@@ -99,7 +100,7 @@ mywait() } else if (WEXITSTATUS(status) > 125) { exit(WEXITSTATUS(status)); } @@ -17,7 +17,7 @@ fprintf(stderr, "xe: pid %d terminated by signal %d\n", pid, WTERMSIG(status)); exit(125); -@@ -353,6 +354,7 @@ main(int argc, char *argv[], char *envp[ +@@ -358,6 +359,7 @@ main(int argc, char *argv[], char *envp[ pusharg("/bin/sh"); pusharg("-c"); pusharg(sflag);