From nobody Tue Sep 27 02:49:10 2022 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Mc3x32Dhxz4cxR6; Tue, 27 Sep 2022 02:49:11 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Mc3x31Lm5z3Q1q; Tue, 27 Sep 2022 02:49:11 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1664246951; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Bs7hDyLEeN9Dqr6mZRPOfF2i0R2pevPvxjHAadHncGQ=; b=RtGuy5UnoSjskmJ7U7jPA3wF+bk7cUNlleiORRXIDM/CQvhA2WKq1d+MHHZPNn9HHrQBG/ siWBfCb9/OTKjRT625UorB/hXapuz12touEOjacweHXkl9826Haqo+V2OEUZbuCdREFQfp H8MvSxC1e/nnzv2y8wP2G3jVTKsN3mrFs3zHoipS36RSV/yYacnW9uxYvtoWDVSWxumPYz sfgirjuCyQU2P9KdwUPDXo3Z1+pMBY+yvNkKbePlOokfC9Ya3ChKXxlJhAlXlIGoFO3HhD qReV1+kmtuU2V+Vq7x3YQohntOmcUEIPo4Kp/vzZ/RXCFK40QHaHCN0cO/9LDw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Mc3x30L2xzylq; Tue, 27 Sep 2022 02:49:11 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 28R2nAFS084588; Tue, 27 Sep 2022 02:49:10 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 28R2nAko084587; Tue, 27 Sep 2022 02:49:10 GMT (envelope-from git) Date: Tue, 27 Sep 2022 02:49:10 GMT Message-Id: <202209270249.28R2nAko084587@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Yuri Victorovich Subject: git: 13c13c14c709 - main - devel/shunit2: New port: xUnit based unit testing for Unix shell scripts List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: yuri X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 13c13c14c709d0aad26486528fb6e16c07d684e7 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1664246951; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Bs7hDyLEeN9Dqr6mZRPOfF2i0R2pevPvxjHAadHncGQ=; b=CXRyibXcieci3pUl5n7VuboLd9sNKhg3tnF7N6G6kTcbnj26IZBvp90YWMeab+HQ7XILGj 0E1s7zlgfVq9eDG/TgIsn0Lk0k+1J5X6PIfgkMKDgmv0RPlkqh8ioRlD4z5glulzXVWpEG 5Ncl1LjQ1hwDTeHvXHvZSpRJst8VcR3HmiIP6avWHepXnlN90c/YkFhLgQbtfjmNFslA54 lStiH1XMUQtw4pKuYt6lijhc6Z+qbPMebND1iE3w7XjAfCkhKnNAjDso3QLuv+zx8v6K3j 9kCCctKdU48i5XeGUonjrgtsdT3V7vti72DS9pnMPd7CEKgBPYy5CVdoY6QJ3A== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1664246951; a=rsa-sha256; cv=none; b=ZCcQ6FRwe9c7jyk+r/pu0MrYN5SNLN41a/1IiDdAaRT76jeKCsH7aJvdScGTmMiTH4jjaV inRLGTIbyJ38odGqlzLI8W2cgRmas5wrurzvrli3vQvxM0+1AN8W6EOwanjGUgN4/RHvzc jN7dQe5VzF2hmpa3vw3Gz/WZFjFihEPOQtsd/Eu+ff/FmD0XpQl9NPZ98ui+w/emCXCmU6 kzM/uF2HYQXLxSO3gtn7CWABx0nxL2NSXR14TW+is71Kdpc311o/uFP6bV0tdo9tuWSD6n Rf+BorynCZ+CT6eFXN6I6mWNJiXx4orSIGONP22r28SBJ2WO4I+B7k4Katf8jA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=13c13c14c709d0aad26486528fb6e16c07d684e7 commit 13c13c14c709d0aad26486528fb6e16c07d684e7 Author: Yuri Victorovich AuthorDate: 2022-09-26 16:02:57 +0000 Commit: Yuri Victorovich CommitDate: 2022-09-27 02:48:58 +0000 devel/shunit2: New port: xUnit based unit testing for Unix shell scripts --- devel/Makefile | 1 + devel/shunit2/Makefile | 36 ++++++++++++++++++++++++++++++++++++ devel/shunit2/distinfo | 3 +++ devel/shunit2/pkg-descr | 3 +++ 4 files changed, 43 insertions(+) diff --git a/devel/Makefile b/devel/Makefile index d91c584b9c15..4d55896da647 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -7178,6 +7178,7 @@ SUBDIR += shmap SUBDIR += shtk SUBDIR += shtool + SUBDIR += shunit2 SUBDIR += sigar SUBDIR += sigslot SUBDIR += silc-toolkit diff --git a/devel/shunit2/Makefile b/devel/shunit2/Makefile new file mode 100644 index 000000000000..e0f9bdaf76fc --- /dev/null +++ b/devel/shunit2/Makefile @@ -0,0 +1,36 @@ +PORTNAME= shunit2 +DISTVERSIONPREFIX= v +DISTVERSION= 2.1.8-93 +DISTVERSIONSUFFIX= -g47be8b2 +CATEGORIES= devel + +MAINTAINER= yuri@FreeBSD.org +COMMENT= xUnit based unit testing for Unix shell scripts +WWW= https://github.com/kward/shunit2/ + +LICENSE= APACHE20 +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= bash:shells/bash +RUN_DEPENDS= bash:shells/bash + +USE_GITHUB= yes +GH_ACCOUNT= kward + +NO_BUILD= yes +NO_ARCH= yes + +PLIST_FILES= bin/${PORTNAME} + +post-extract: + @${REINPLACE_CMD} -e 's|#! /bin/sh|#! ${LOCALBASE}/bin/bash|' \ + ${WRKSRC}/shunit2 \ + ${WRKSRC}/test_runner + +do-install: + ${INSTALL_SCRIPT} ${WRKSRC}/shunit2 ${STAGEDIR}${PREFIX}/bin + +do-test: + @cd ${WRKSRC} && SHELL=${LOCALBASE}/bin/bash bash ./test_runner -s ${LOCALBASE}/bin/bash + +.include diff --git a/devel/shunit2/distinfo b/devel/shunit2/distinfo new file mode 100644 index 000000000000..55c11b21f890 --- /dev/null +++ b/devel/shunit2/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1664206700 +SHA256 (kward-shunit2-v2.1.8-93-g47be8b2_GH0.tar.gz) = 8b2b0f775482d2441d87ade6328b6295b096c70a79d619fe764eead244b3beb8 +SIZE (kward-shunit2-v2.1.8-93-g47be8b2_GH0.tar.gz) = 57783 diff --git a/devel/shunit2/pkg-descr b/devel/shunit2/pkg-descr new file mode 100644 index 000000000000..0665597a7cdb --- /dev/null +++ b/devel/shunit2/pkg-descr @@ -0,0 +1,3 @@ +shUnit2 is a xUnit unit test framework for Bourne based shell scripts, and it is +designed to work in a similar manner to JUnit, PyUnit, etc.. If you have ever +had the desire to write a unit test for a shell script, shUnit2 can do the job.