summaryrefslogtreecommitdiffstats
path: root/tests/expr/counter
diff options
context:
space:
mode:
Diffstat (limited to 'tests/expr/counter')
-rw-r--r--tests/expr/counter/counter-bytes-pkts_ok.t5
-rw-r--r--tests/expr/counter/counter-bytes_ok.t5
-rw-r--r--tests/expr/counter/counter-pkts_ok.t5
-rw-r--r--tests/expr/counter/counter_ok.t5
4 files changed, 20 insertions, 0 deletions
diff --git a/tests/expr/counter/counter-bytes-pkts_ok.t b/tests/expr/counter/counter-bytes-pkts_ok.t
new file mode 100644
index 0000000..779274b
--- /dev/null
+++ b/tests/expr/counter/counter-bytes-pkts_ok.t
@@ -0,0 +1,5 @@
+add_table(NFPROTO_IPV4, "test", NULL, NULL, NULL);
+add_chain("test", "0x1", NULL, NULL, NULL);
+add_rule("test", "0x1", NULL, NULL, NULL);
+counter("10", "20");
+commit();
diff --git a/tests/expr/counter/counter-bytes_ok.t b/tests/expr/counter/counter-bytes_ok.t
new file mode 100644
index 0000000..9400741
--- /dev/null
+++ b/tests/expr/counter/counter-bytes_ok.t
@@ -0,0 +1,5 @@
+add_table(NFPROTO_IPV4, "test", NULL, NULL, NULL);
+add_chain("test", "0x1", NULL, NULL, NULL);
+add_rule("test", "0x1", NULL, NULL, NULL);
+counter("10", NULL);
+commit();
diff --git a/tests/expr/counter/counter-pkts_ok.t b/tests/expr/counter/counter-pkts_ok.t
new file mode 100644
index 0000000..f10e94b
--- /dev/null
+++ b/tests/expr/counter/counter-pkts_ok.t
@@ -0,0 +1,5 @@
+add_table(NFPROTO_IPV4, "test", NULL, NULL, NULL);
+add_chain("test", "0x1", NULL, NULL, NULL);
+add_rule("test", "0x1", NULL, NULL, NULL);
+counter(NULL, "20");
+commit();
diff --git a/tests/expr/counter/counter_ok.t b/tests/expr/counter/counter_ok.t
new file mode 100644
index 0000000..f496948
--- /dev/null
+++ b/tests/expr/counter/counter_ok.t
@@ -0,0 +1,5 @@
+add_table(NFPROTO_IPV4, "test", NULL, NULL, NULL);
+add_chain("test", "0x1", NULL, NULL, NULL);
+add_rule("test", "0x1", NULL, NULL, NULL);
+counter(NULL, NULL);
+commit();