aboutsummaryrefslogtreecommitdiff
path: root/unittest
diff options
context:
space:
mode:
authorSzczepan Zalega <szczepan@nitrokey.com>2019-01-02 13:35:01 +0100
committerSzczepan Zalega <szczepan@nitrokey.com>2019-01-02 13:35:01 +0100
commit539aec53df80bb5f5893614ca76a6a2821c20bc2 (patch)
treeeed2944c0baa4160f4c8ed841d65a895eaf1d7ea /unittest
parent50a3f4817a44bc644ad401b0de6b91e835aad299 (diff)
downloadlibnitrokey-539aec53df80bb5f5893614ca76a6a2821c20bc2.tar.gz
libnitrokey-539aec53df80bb5f5893614ca76a6a2821c20bc2.tar.bz2
Mention potential test failure cause, when no git version is provided
Related to #133 Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
Diffstat (limited to 'unittest')
-rw-r--r--unittest/test_offline.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/unittest/test_offline.cc b/unittest/test_offline.cc
index 75bd316..279c38f 100644
--- a/unittest/test_offline.cc
+++ b/unittest/test_offline.cc
@@ -176,6 +176,7 @@ TEST_CASE("Test version getter", "[fast]") {
// of commits since the last tag, and <hash> is the hash of the current
// commit. (This assumes that all tags have the name v<major>.<minor>.).
// Optional <patch> field is allowed as well.
+ INFO("This test will fail, if the full git commit version was not collected during library build.");
std::string s = library_version;
std::string version("v[0-9]+\\.[0-9]+(\\.[0-9]+)?");
std::string git_suffix("-[0-9]+-g[0-9a-z]+");