From 5ed7e4fb5f14407aaca5d43fe7390d669f7b3d07 Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Wed, 19 Sep 2018 16:34:44 +0200 Subject: [PATCH] setup-app-layer-detect: update for tests/ dir --- scripts/setup-app-layer-detect.sh | 3 +++ 1 file changed, 3 insertions(+) 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() {