set(SOURCES Application.cpp CaptureFile.cpp Debug.cpp Display.cpp Fixture.cpp Fuzzy.cpp TestRunCapture.cpp TestWebView.cpp main.cpp ) add_executable(test-web ${SOURCES}) add_dependencies(test-web ladybird_build_resource_files ImageDecoder RequestServer WebContent WebWorker) target_link_libraries(test-web PRIVATE AK LibCore LibDiff LibFileSystem LibGfx LibImageDecoderClient LibIPC LibJS LibMain LibRequests LibURL LibWeb LibWebView) if (APPLE) target_compile_definitions(test-web PRIVATE LADYBIRD_BINARY_PATH="$") elseif (WIN32) target_link_libraries(test-web PRIVATE LibDevTools) target_include_directories(test-web PRIVATE $) ladybird_windows_bin(test-web CONSOLE) endif() # FIXME: Add support for running test-web on Windows if (WIN32) return() endif() if (BUILD_TESTING) add_test( NAME LibWeb COMMAND $ --python-executable ${Python3_EXECUTABLE} --per-test-timeout 120 -v -v ) set_tests_properties(LibWeb PROPERTIES ENVIRONMENT LADYBIRD_SOURCE_DIR=${LADYBIRD_SOURCE_DIR} TIMEOUT_SIGNAL_NAME SIGTERM) endif()