* [nft PATCH] tests/shell: add first `nft -f' tests
@ 2016-01-13 18:25 Arturo Borrero Gonzalez
2016-03-03 18:59 ` Pablo Neira Ayuso
0 siblings, 1 reply; 2+ messages in thread
From: Arturo Borrero Gonzalez @ 2016-01-13 18:25 UTC (permalink / raw)
To: netfilter-devel; +Cc: pablo
This patch add some basic initial tests.
Signed-off-by: Arturo Borrero Gonzalez <arturo.borrero.glez@gmail.com>
---
tests/shell/testcases/nft-f/0001define_slash_0 | 25 ++++++++++++++++++++++++
1 file changed, 25 insertions(+)
create mode 100755 tests/shell/testcases/nft-f/0001define_slash_0
diff --git a/tests/shell/testcases/nft-f/0001define_slash_0 b/tests/shell/testcases/nft-f/0001define_slash_0
new file mode 100755
index 0000000..4ce7089
--- /dev/null
+++ b/tests/shell/testcases/nft-f/0001define_slash_0
@@ -0,0 +1,25 @@
+#!/bin/bash
+
+# tests for commit 85d6803 (parser_bison: initializer_expr must use rhs_expr)
+
+MKTEMP=$(which mktemp)
+if [ -x $MKTEMP ] ; then
+ tmpfile=$(${MKTEMP})
+else
+ tmpfile=$(/tmp/${RANDOM})
+fi
+
+if [ ! -w $tmpfile ] ; then
+ echo "Failed to create tmp file" >&2
+ exit 0
+fi
+
+trap "rm -rf $tmpfile" EXIT # cleanup if aborted
+
+echo "
+define net = 1.1.1.1/24
+" > $tmpfile
+
+set -e
+
+$NFT -f $tmpfile
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [nft PATCH] tests/shell: add first `nft -f' tests
2016-01-13 18:25 [nft PATCH] tests/shell: add first `nft -f' tests Arturo Borrero Gonzalez
@ 2016-03-03 18:59 ` Pablo Neira Ayuso
0 siblings, 0 replies; 2+ messages in thread
From: Pablo Neira Ayuso @ 2016-03-03 18:59 UTC (permalink / raw)
To: Arturo Borrero Gonzalez; +Cc: netfilter-devel
On Wed, Jan 13, 2016 at 07:25:46PM +0100, Arturo Borrero Gonzalez wrote:
> This patch add some basic initial tests.
Also applied, thanks.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-03-03 18:59 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-01-13 18:25 [nft PATCH] tests/shell: add first `nft -f' tests Arturo Borrero Gonzalez
2016-03-03 18:59 ` Pablo Neira Ayuso
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).