From patchwork Tue Jun 5 01:38:26 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Tremer X-Patchwork-Id: 1795 Return-Path: Received: from mail01.ipfire.org (unknown [172.28.1.200]) by web02.i.ipfire.org (Postfix) with ESMTP id 9E48560B60 for ; Mon, 4 Jun 2018 17:38:40 +0200 (CEST) Received: from mail01.i.ipfire.org (localhost [IPv6:::1]) by mail01.ipfire.org (Postfix) with ESMTP id 4406E10F8B83; Mon, 4 Jun 2018 16:38:40 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=201801; t=1528126720; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references:list-id: list-unsubscribe:list-subscribe:list-post; bh=Byt4HGbil0rVvNDsL3I2GGtAERtLtI/3At12EpajhbY=; b=Ql0RIHm7CDYBVxu5tZr8/0G+cMUcb8iEq7pKThk4rGIbVPTjgP9EYxYaGRaVyOs2H6+r3P TV+RSn8G/JmQ+7BfClIGnUzL2kIzD0/O823OhoMUIsYSrjfS5ApyKqjkECbGkUfQqnB/+2 HY3guln69OLKhGR7tqoXWTWvtm6YyM+ToGjDJYrNUUxi7C5au0OIw8ooUaZl0/IlQdqE5B E2qQ9XgAsGeN+BHpWWQO+NvXDmskAhc8v09uphZ1JdlCvMv85jlghrcApQF3hhsvJtmJI+ 6tVBo0+xGHiCXBFhn+7nH7WbO2q8GZQuc9S/1Ht+a7Qdsrvyx8a+2DWS97d/8Q== Authentication-Results: mail01.i.ipfire.org; auth=pass smtp.auth=ms smtp.mailfrom=michael.tremer@ipfire.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=201801; t=1528126718; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=Byt4HGbil0rVvNDsL3I2GGtAERtLtI/3At12EpajhbY=; b=HQH5cWAHH6ZhormCJh1tnyOZ0SFwLCv+KOcpX71TdYwDMJUw3syp1F86Vzchxd7awzaNYn 2matZLP+Qffd211fxlxw5hhDEhUrf4Ac0TITGn80303CzRI5XGNpvUfE79N3ECAbqjKGzR qTkX/NLH3SLxd8DSeB0roxU5wjeQ+LaghZLfmq79YsLVVv7CbTYtNbsRjDJHp1ECmvdCAf KIGenIuHM93MP9XR99nldBDPwPMPaFnzNbqlNa7/tQewrwiFo0CutyYwj4p8C685dDQ5QB 1mNXJJoXar5C3G9tLorvDvsm09GUldoUJna+1tWspeJSGNwIRJvpaEuq8AmZPg== Received: from rice-oxley.tremer.co.uk (unknown [88.98.219.132]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mail01.ipfire.org (Postfix) with ESMTPSA id B154A10D19C7; Mon, 4 Jun 2018 16:38:38 +0100 (BST) From: Michael Tremer To: network@lists.ipfire.org Subject: [PATCH 1/7] nitsi: Create "nitsi" Makefile target Date: Mon, 4 Jun 2018 16:38:26 +0100 Message-Id: <20180604153832.331239-1-michael.tremer@ipfire.org> X-Mailer: git-send-email 2.17.0 X-Spamd-Result: default: False [-4.97 / 11.00]; ASN(0.00)[asn:56478, ipnet:88.98.216.0/22, country:GB]; DKIM_SIGNED(0.00)[]; TO_DN_SOME(0.00)[]; FROM_HAS_DN(0.00)[]; RCVD_TLS_ALL(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; ARC_NA(0.00)[]; BAYES_HAM(-3.00)[100.00%]; FROM_EQ_ENVFROM(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MID_CONTAINS_FROM(1.00)[]; RCVD_COUNT_ZERO(0.00)[0]; MIME_GOOD(-0.10)[text/plain]; NEURAL_HAM(-2.87)[-0.956,0] X-Spam-Status: No, score=-4.97 X-Rspamd-Server: mail01.i.ipfire.org Cc: Michael Tremer X-BeenThere: network@lists.ipfire.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List for the network package List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: network-bounces@lists.ipfire.org Sender: "network" Calling "make nitsi" will run all nitsi tests Signed-off-by: Michael Tremer Reviewed-by: Jonatan Schlag Reviewed-by: Jonatan Schlag <jonatan.schlag@ipfire.org>

Am Mo, 4. Jun, 2018 um 5:38 schrieb Michael Tremer <michael.tremer@ipfire.org>:
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org> --- Makefile.am | 22 ++++++++++++++++++++++ configure.ac | 1 + 2 files changed, 23 insertions(+) diff --git a/Makefile.am b/Makefile.am index 7a755cc264a1..c02376462cf4 100644 --- a/Makefile.am +++ b/Makefile.am @@ -89,6 +89,10 @@ INSTALL_EXEC_HOOKS += \ # ------------------------------------------------------------------------------ +AM_V_NITSI = $(AM_V_NITSI_$(V)) +AM_V_NITSI_ = $(AM_V_NITSI_$(AM_DEFAULT_VERBOSITY)) +AM_V_NITSI_0 = @echo " NITSI " $@; + AM_V_XSLT = $(AM_V_XSLT_$(V)) AM_V_XSLT_ = $(AM_V_XSLT_$(AM_DEFAULT_VERBOSITY)) AM_V_XSLT_0 = @echo " XSLT " $@; @@ -543,3 +547,21 @@ TESTS = \ test/functions/ip/ip_prefix_is_valid \ test/functions/ip/ip_protocol_is_supported \ test/functions/ip/ip_split_prefix + +# - NITSI tests ---------------------------------------------------------------- + +NITSI_TESTS = \ + test/nitsi/test/hello-world + +EXTRA_DIST += \ + test/nitsi/test/hello-world/recipe \ + test/nitsi/test/hello-world/settings + +NITSI_ENVIRONMENT = + +.PHONY: $(NITSI_TESTS) +$(NITSI_TESTS): + $(AM_V_NITSI) $(NITSI_ENVIRONMENT) $(NITSI) --log-level error -d $@ + +.PHONY: nitsi +nitsi: $(NITSI_TESTS) diff --git a/configure.ac b/configure.ac index 7cb5ef1110fa..515941451aba 100644 --- a/configure.ac +++ b/configure.ac @@ -50,6 +50,7 @@ AC_PROG_LN_S AC_PROG_MKDIR_P AC_PROG_SED +AC_PATH_PROG([NITSI], [nitsi]) AC_PATH_PROG([XSLTPROC], [xsltproc]) # pkg-config