X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?p=ossec-hids.git;a=blobdiff_plain;f=src%2Ftests%2FMakefile;fp=src%2Ftests%2FMakefile;h=0000000000000000000000000000000000000000;hp=6685aad2ab6ec23e8010403d01668b876e7e2390;hb=3f728675941dc69d4e544d3a880a56240a6e394a;hpb=927951d1c1ad45ba9e7325f07d996154a91c911b diff --git a/src/tests/Makefile b/src/tests/Makefile deleted file mode 100644 index 6685aad..0000000 --- a/src/tests/Makefile +++ /dev/null @@ -1,56 +0,0 @@ -# Copyright (C) 2014 Trend Micro Inc. -# All rights reserved. -# -# This program is a free software; you can redistribute it -# and/or modify it under the terms of the GNU General Public -# License (version 2) as published by the FSF - Free Software -# Foundation - -PT=../ -include ${PT}Config.Make - -CHECK_LINK = -lcheck -lm -pthread -lrt -CFLAGS_TEST = -Waggregate-return -Wall -Wbad-function-cast -Wc++-compat -Wcast-align \ - -Wcast-qual -Wconversion -Wextra -Wfloat-equal -Wformat=2 -Winit-self -Winline \ - -Winvalid-pch -Wlogical-op -Wmissing-declarations -Wmissing-include-dirs \ - -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wredundant-decls \ - -Wshadow -Wstack-protector -Wstrict-aliasing -Wstrict-overflow=4 \ - -Wstrict-prototypes -Wswitch-default -Wswitch-enum -Wsync-nand -Wundef -Wunused \ - -Wwrite-strings \ - -g -O0 --coverage \ - -I../headers/ - -run_tests: build_tests - ./test_os_zlib - ./test_os_xml - ./test_os_regex - -generate_coverage: build_tests - lcov --base-directory . --directory . --zerocounters --rc lcov_branch_coverage=1 --quiet - @echo "Running tests\n" - - ./test_os_zlib - ./test_os_xml - ./test_os_regex - - @echo "\nTests finished." - lcov --base-directory . --directory . --capture --quiet --rc lcov_branch_coverage=1 --output-file ossec.test - rm -rf coverage-report/ - genhtml --branch-coverage --output-directory coverage-report/ --title "ossec test coverage" --show-details --legend --num-spaces 4 --quiet ossec.test - - -build_tests: test_os_zlib test_os_xml test_os_regex - -test_os_zlib: test_os_zlib.c ${OS_ZLIB} - ${CC} ${CFLAGS_TEST} $+ ${CHECK_LINK} -o $@ - -test_os_xml: test_os_xml.c ../os_xml/*.c ../os_xml/*.h - ${CC} ${CFLAGS_TEST} test_os_xml.c ../os_xml/*.c ${CHECK_LINK} -o $@ - -test_os_regex: test_os_regex.c ../os_regex/*.c ../os_regex/*.h - ${CC} ${CFLAGS_TEST} test_os_regex.c ../os_regex/*.c ${CHECK_LINK} -o $@ - - - -clean: - ${CLEAN} test_os_zlib test_os_xml test_os_regex coverage-report/ ossec.test