From 25ce7b045e5d7a7ef33eaea153fc52b890a6e33f Mon Sep 17 00:00:00 2001 From: Shivani Bhardwaj Date: Mon, 25 Nov 2024 13:37:48 +0530 Subject: [PATCH 1/2] detect-xor: do not depend on C code Starting 8984bc68011, xor transform was moved to rust and this test was always skipped as it depended on the C file. --- tests/detect-xor/test.yaml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/tests/detect-xor/test.yaml b/tests/detect-xor/test.yaml index 1aa28df93..c45f27f72 100644 --- a/tests/detect-xor/test.yaml +++ b/tests/detect-xor/test.yaml @@ -1,7 +1,3 @@ -requires: - files: - - src/detect-transform-xor.c - args: - -k none checks: From c5b334543a9b8a64c0b02f4948dc50d32136d46c Mon Sep 17 00:00:00 2001 From: Philippe Antoine Date: Wed, 27 Nov 2024 14:44:34 +0100 Subject: [PATCH 2/2] transforms: remove dependency on C files As most transforms have been moved to rust in suricata master --- tests/detect-dotprefix-01/test.yaml | 6 ------ tests/detect-dotprefix-02/test.yaml | 6 ------ tests/detect-dotprefix-03/test.yaml | 6 ------ tests/detect-to_lowercase-01/test.yaml | 2 -- tests/detect-to_lowercase-02/test.yaml | 2 -- tests/detect-to_uppercase-01/test.yaml | 2 -- tests/detect-to_uppercase-02/test.yaml | 2 -- 7 files changed, 26 deletions(-) diff --git a/tests/detect-dotprefix-01/test.yaml b/tests/detect-dotprefix-01/test.yaml index 7ec42b3dd..cc03e1bd1 100644 --- a/tests/detect-dotprefix-01/test.yaml +++ b/tests/detect-dotprefix-01/test.yaml @@ -1,9 +1,3 @@ -requires: - features: - - HAVE_LIBJANSSON - files: - - src/detect-transform-dotprefix.c - checks: - filter: count: 1 diff --git a/tests/detect-dotprefix-02/test.yaml b/tests/detect-dotprefix-02/test.yaml index 287c98e29..363f6197c 100644 --- a/tests/detect-dotprefix-02/test.yaml +++ b/tests/detect-dotprefix-02/test.yaml @@ -1,9 +1,3 @@ -requires: - features: - - HAVE_LIBJANSSON - files: - - src/detect-transform-dotprefix.c - checks: - filter: count: 1 diff --git a/tests/detect-dotprefix-03/test.yaml b/tests/detect-dotprefix-03/test.yaml index c6fbaf0e7..386a8d42d 100644 --- a/tests/detect-dotprefix-03/test.yaml +++ b/tests/detect-dotprefix-03/test.yaml @@ -1,9 +1,3 @@ -requires: - features: - - HAVE_LIBJANSSON - files: - - src/detect-transform-dotprefix.c - checks: - filter: count: 0 diff --git a/tests/detect-to_lowercase-01/test.yaml b/tests/detect-to_lowercase-01/test.yaml index 91327feee..ea166720f 100644 --- a/tests/detect-to_lowercase-01/test.yaml +++ b/tests/detect-to_lowercase-01/test.yaml @@ -2,8 +2,6 @@ pcap: ../bug-3616-ips/input.pcap requires: pcap: false - files: - - src/detect-transform-casechange.c exit-code: 0 diff --git a/tests/detect-to_lowercase-02/test.yaml b/tests/detect-to_lowercase-02/test.yaml index f2f8ba2ea..5617a5f71 100644 --- a/tests/detect-to_lowercase-02/test.yaml +++ b/tests/detect-to_lowercase-02/test.yaml @@ -2,8 +2,6 @@ pcap: ../bug-3616-ips/input.pcap requires: pcap: false - files: - - src/detect-transform-casechange.c exit-code: 1 diff --git a/tests/detect-to_uppercase-01/test.yaml b/tests/detect-to_uppercase-01/test.yaml index 91327feee..ea166720f 100644 --- a/tests/detect-to_uppercase-01/test.yaml +++ b/tests/detect-to_uppercase-01/test.yaml @@ -2,8 +2,6 @@ pcap: ../bug-3616-ips/input.pcap requires: pcap: false - files: - - src/detect-transform-casechange.c exit-code: 0 diff --git a/tests/detect-to_uppercase-02/test.yaml b/tests/detect-to_uppercase-02/test.yaml index f2f8ba2ea..5617a5f71 100644 --- a/tests/detect-to_uppercase-02/test.yaml +++ b/tests/detect-to_uppercase-02/test.yaml @@ -2,8 +2,6 @@ pcap: ../bug-3616-ips/input.pcap requires: pcap: false - files: - - src/detect-transform-casechange.c exit-code: 1