From: Victor Julien Date: Wed, 19 Sep 2018 14:34:44 +0000 (+0200) Subject: setup-app-layer-detect: update for tests/ dir X-Git-Tag: suricata-4.1.0-rc2~49 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5ed7e4fb5f14407aaca5d43fe7390d669f7b3d07;p=thirdparty%2Fsuricata.git setup-app-layer-detect: update for tests/ dir --- diff --git a/scripts/setup-app-layer-detect.sh b/scripts/setup-app-layer-detect.sh index 6b657ddcdf..ff5aab6fc3 100755 --- a/scripts/setup-app-layer-detect.sh +++ b/scripts/setup-app-layer-detect.sh @@ -67,12 +67,15 @@ function copy_template_file() { function copy_templates() { detect_h_dst="src/detect-${protoname_lower}-${buffername_lower}.h" detect_c_dst="src/detect-${protoname_lower}-${buffername_lower}.c" + tests_detect_c_dst="src/tests/detect-${protoname_lower}-${buffername_lower}.c" fail_if_exists ${detect_h_dst} fail_if_exists ${detect_c_dst} + fail_if_exists ${tests_detect_c_dst} copy_template_file "src/detect-template-buffer.h" ${detect_h_dst} copy_template_file "src/detect-template-buffer.c" ${detect_c_dst} + copy_template_file "src/tests/detect-template-buffer.c" ${tests_detect_c_dst} } function patch() {