From 2eb8897706128f3590a5b4f9ee8f3e755b74f097 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Tue, 9 Sep 2025 23:24:35 +0100 Subject: Add test over mocked user agent fetch Uses a file:// URL to curl fetch a local fixture. --- test/test-util.hpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'test/test-util.hpp') diff --git a/test/test-util.hpp b/test/test-util.hpp index c17418f..ac96ee6 100644 --- a/test/test-util.hpp +++ b/test/test-util.hpp @@ -10,6 +10,9 @@ namespace WebStat { #define XSTR(s) STR(s) #define STR(s) #s inline const std::filesystem::path SRC_DIR(XSTR(SRC)); + inline const std::filesystem::path TEST_DIR(XSTR(TEST)); + inline const std::filesystem::path FIXTURE_DIR(XSTR(FIXTURES)); + inline const std::string FIXTURE_URL_BASE = "file://" + std::filesystem::canonical(FIXTURE_DIR).string(); #undef XSTR #undef STR -- cgit v1.2.3