From 463f0740e1731c15917ffdb3e2f4b3f4c83aa024 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Sun, 31 Oct 2021 16:02:19 +0100 Subject: Change to testdir before executing tests and add global paths variables for easier path testing inside the unit-tests. --- test/paths.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 test/paths.h (limited to 'test/paths.h') diff --git a/test/paths.h b/test/paths.h new file mode 100644 index 0000000..f149972 --- /dev/null +++ b/test/paths.h @@ -0,0 +1,15 @@ +// -*- c++ -*- +// Distributed under the BSD 2-Clause License. +// See accompanying file LICENSE for details. +#pragma once + +#include +#include + +namespace paths +{ +extern std::string argv_0; +extern std::filesystem::path top_srcdir; +extern std::filesystem::path top_builddir; +extern std::filesystem::path testdir; +} -- cgit v1.2.3