From nobody Thu Nov 02 17:14:44 2023 X-Original-To: dev-commits-ports-all@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 4SLr8h6MKVz4ytcF; Thu, 2 Nov 2023 17:14:44 +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 4SLr8h5vczz3MXW; Thu, 2 Nov 2023 17:14:44 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1698945284; 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=dJH47czu0lyBIFPpMclbZuVbu/Rnuk9pWkFFI6FNeRU=; b=QkxnmgBZIiDzUGXPnt2UrsG1TplqAhYlzquvpV9z+EpaRnv9/a/ziQkTXNo9ykGBDcUobW XhtQnpTdroRO8/CJuWtVk3R60e4rrrAFMvsT7otZGhnRzMuQHNtgO/PPJgeGxvwcN8wcwK w6DF0B8RuGTD5wvwotq2bW/uwSx6li82tlCTY0ar/mKoROYRRHGj14ZFPTmhGRnjRzYXC6 qg6y9XqAee5hcFCc/svobv3otPtl2sVPRLB5yVnhcGAzDciaSxkTxue8+w/cFTTz2Eq15s 2EyU7yaXuJ+69kptGEzdM3HgoItCc81VLk5ilAfEcSL9QIe9IcHQ8AylfUG58A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1698945284; 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=dJH47czu0lyBIFPpMclbZuVbu/Rnuk9pWkFFI6FNeRU=; b=GcFDyeepUVkMljwsT6C5SGRr2sV60UBg7a4e2O14nkvIQAkhUpToxJ/BLH5V330tKNIr+T eWSvTRt136PoN5iVwf+hSBhulpPt5wD3x2S/vFxmlxJmgAQNVt0lE40uZYHLfi+zrCe9hS oFb5eFTqOM2cE20RAsa8cX0BmMWkOz+L6zSJcnGgZBnptbH3VTfGRB386aV1PwexBmCYx1 hrU/LxKDN5FCBDcIaP0u6A0nw7UAaPBvAEdZTfAErUITJZrz/ww2VKALJaO3r4KlYH+U9+ vnHjYUckLYhaXK6D3h5HhqLO8zFJ4PVBpZM9o+axprEZSaqBBg3FyqQA2eWK6A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1698945284; a=rsa-sha256; cv=none; b=hQze6D/ZzO8rUhU6fqEOPSQ70z4/yQvW4wnUPDeRIaG6Tyiyn0Xs0xycQRmAzW7tUjdd0R FaTLodA6hB+8Y5G79A++aVh2m8pEo85jfdqvgKfE6/p4dvtJiLCY1+O89y+23XgNl5DeWX qNn3JavNvf0GlWe7CiY5ERMUfRcpmngnV6JjrVhYk9Vwuwxw3BSf2EgDi19Qy42Yx/Vkd5 9oy/Iaty6JY9v0T8p9o2EK1LMVbRaZpJnL78Rn+WW/RMzK+yP0yVkDjDzjvhtjLnuJnQ+s snWoU+b/F0mNMxqmrnBHSEmcAukgfU1yOXe1gIUclxjanuM/I0cCWdAFC1VDuA== 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 4SLr8h4yDGzdqy; Thu, 2 Nov 2023 17:14:44 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 3A2HEieW093901; Thu, 2 Nov 2023 17:14:44 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 3A2HEiFV093898; Thu, 2 Nov 2023 17:14:44 GMT (envelope-from git) Date: Thu, 2 Nov 2023 17:14:44 GMT Message-Id: <202311021714.3A2HEiFV093898@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: fd31d93d4b10 - main - www/wt: Add test target List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@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: fd31d93d4b10080231969559926f6c05183b6bc7 Auto-Submitted: auto-generated The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=fd31d93d4b10080231969559926f6c05183b6bc7 commit fd31d93d4b10080231969559926f6c05183b6bc7 Author: Yuri Victorovich AuthorDate: 2023-11-02 17:12:17 +0000 Commit: Yuri Victorovich CommitDate: 2023-11-02 17:14:42 +0000 www/wt: Add test target ... instead of the TEST option. The test target now builds and runs tests. PR: 274872 Approved by: info@babaei.net (maintainer) --- www/wt/Makefile | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/www/wt/Makefile b/www/wt/Makefile index c02321f3fe0b..98e60f5e30fb 100644 --- a/www/wt/Makefile +++ b/www/wt/Makefile @@ -1,6 +1,6 @@ PORTNAME= wt DISTVERSION= 4.8.0 -PORTREVISION= 4 +PORTREVISION= 5 CATEGORIES= www PATCH_SITES= https://github.com/emweb/wt/commit/ @@ -17,7 +17,7 @@ LIB_DEPENDS= libpng.so:graphics/png \ libboost_system.so:devel/boost-libs \ libGraphicsMagick.so:graphics/GraphicsMagick -USES= cmake compiler:c++14-lang cpe pkgconfig ssl +USES= cmake:testing compiler:c++14-lang cpe pkgconfig ssl USE_GITHUB= yes GH_ACCOUNT= emweb CPE_VENDOR= emweb @@ -35,11 +35,12 @@ CMAKE_ARGS= -DCONFIGDIR:STRING=${LOCALBASE}/etc/${PORTNAME} \ -DWT_WRASTERIMAGE_IMPLEMENTATION:STRING=GraphicsMagick \ -DENABLE_SSL:BOOL=ON \ -DDESTDIR:STRING=${STAGEDIR} +CMAKE_OFF= BUILD_TESTS +CMAKE_TESTING_ON= BUILD_TESTS OPTIONS_DEFINE= \ DEBUG \ EXAMPLES \ - TESTS \ RESOURCES \ HARU \ PANGO \ @@ -49,7 +50,6 @@ OPTIONS_DEFINE= \ LIBWTTEST \ UNWIND OPTIONS_DEFAULT= \ - TESTS \ RESOURCES \ HARU \ PANGO \ @@ -60,7 +60,6 @@ OPTIONS_SUB= yes NO_OPTIONS_SORT= yes EXAMPLES_DESC= Install examples (implies SQLITE3 and WTHTTP) -TESTS_DESC= Build Wt tests RESOURCES_DESC= Install resources directory HARU_DESC= Enable Haru Free PDF Library SAML_DESC= Build built-in SAML service provider for Wt::Auth @@ -134,8 +133,6 @@ SQLITE3_CMAKE_BOOL= ENABLE_SQLITE SQLITE3_USES= sqlite:3 SQLITE3_CMAKE_ON= -DENABLE_LIBWTDBO:BOOL=ON -TESTS_CMAKE_BOOL= BUILD_TESTS - UNWIND_CMAKE_BOOL= ENABLE_UNWIND UNWIND_LIB_DEPENDS= libunwind.so:devel/libunwind @@ -168,4 +165,10 @@ post-install: ${INSTALL_DATA} ${BUILD_WRKSRC}/wt_config.xml \ ${STAGEDIR}${ETCDIR}/wt_config.xml.sample +do-test: + @cd ${WRKSRC}/test && \ + ${BUILD_WRKSRC}/test/test.wt && \ + ${BUILD_WRKSRC}/test/test.sqlite3 && \ + ${BUILD_WRKSRC}/test/test.http + .include