From badceb8dfa8b54ff6da55e9a2188da53ad1aa8e8 Mon Sep 17 00:00:00 2001 From: Aqua-sama Date: Sun, 8 Apr 2018 14:52:40 +0200 Subject: Multithreading UrlRequestInterceptor - Add parse() free function to UrlRequestInterceptor - hostlists are loaded in parallel via QtConcurrent --- test/CMakeLists.txt | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 test/CMakeLists.txt (limited to 'test/CMakeLists.txt') diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt new file mode 100644 index 0000000..29c95ff --- /dev/null +++ b/test/CMakeLists.txt @@ -0,0 +1,17 @@ +set(CMAKE_INCLUDE_CURRENT_DIR ON) +set(CMAKE_AUTOMOC ON) +set(CMAKE_AUTORCC ON) + +macro(create_test testname) + add_executable(${testname} + ${testname}.cpp ${testname}.h + autotests.qrc + ${ARGN}) + + target_include_directories(${testname} PRIVATE ../src) + target_link_libraries(${testname} Qt5::Test Qt5::Concurrent Qt5::WebEngineWidgets) + + add_test(NAME smolbote-${testname} COMMAND ${testname}) +endmacro() + +create_test(HostlistTest ../src/webengine/urlinterceptor.cpp ../src/webengine/urlinterceptor.h) \ No newline at end of file -- cgit v1.2.1