diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2025-09-09 23:24:35 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2025-09-09 23:24:35 +0100 |
commit | 2eb8897706128f3590a5b4f9ee8f3e755b74f097 (patch) | |
tree | 818290b3be9525ce20c16c8489a225b2fa634259 /test/test-util.hpp | |
parent | bdaa314b7eacc7cd41dbf09f8f8ea6d742c3ea37 (diff) | |
download | webstat-2eb8897706128f3590a5b4f9ee8f3e755b74f097.tar.bz2 webstat-2eb8897706128f3590a5b4f9ee8f3e755b74f097.tar.xz webstat-2eb8897706128f3590a5b4f9ee8f3e755b74f097.zip |
Add test over mocked user agent fetch
Uses a file:// URL to curl fetch a local fixture.
Diffstat (limited to 'test/test-util.hpp')
-rw-r--r-- | test/test-util.hpp | 3 |
1 files changed, 3 insertions, 0 deletions
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 |