aboutsummaryrefslogtreecommitdiff
path: root/toolsrc/include/vcpkg-test
diff options
context:
space:
mode:
Diffstat (limited to 'toolsrc/include/vcpkg-test')
-rw-r--r--toolsrc/include/vcpkg-test/util.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/toolsrc/include/vcpkg-test/util.h b/toolsrc/include/vcpkg-test/util.h
index ce403c308..5170c846a 100644
--- a/toolsrc/include/vcpkg-test/util.h
+++ b/toolsrc/include/vcpkg-test/util.h
@@ -18,6 +18,22 @@
} \
} while (0)
+namespace Catch
+{
+ template<>
+ struct StringMaker<vcpkg::FullPackageSpec>
+ {
+ static std::string convert(vcpkg::FullPackageSpec const& value)
+ {
+ return vcpkg::Strings::concat(value.package_spec.name(),
+ '[',
+ vcpkg::Strings::join(",", value.features),
+ "]:",
+ value.package_spec.triplet());
+ }
+ };
+}
+
namespace vcpkg::Test
{
std::unique_ptr<SourceControlFile> make_control_file(