summaryrefslogtreecommitdiff
path: root/unittest/test_offline.cc
diff options
context:
space:
mode:
authorSzczepan Zalega <szczepan@nitrokey.com>2019-01-02 14:26:34 +0100
committerSzczepan Zalega <szczepan@nitrokey.com>2019-01-02 14:26:34 +0100
commit1f3da5c76acb20b2183ac52373ed3b0b63e1151e (patch)
tree84ce65e9c0a947ddf2aa52ef2f98e1a4b4bbb5a4 /unittest/test_offline.cc
parent57773ad5f7b6eb5e6a2020dd1bd4264bdd823808 (diff)
parent8de58b6ced7da147f2e5cd133d2c25fd758a6a5b (diff)
downloadlibnitrokey-1f3da5c76acb20b2183ac52373ed3b0b63e1151e.tar.gz
libnitrokey-1f3da5c76acb20b2183ac52373ed3b0b63e1151e.tar.bz2
Merge branch 'cpp_tests_update'
Update C++ tests Add safe C++ test for simple connection test, device agnostic. Better describe the use case of C++ tests in the Readme. Related: https://github.com/d-e-s-o/nitrocli/issues/39
Diffstat (limited to 'unittest/test_offline.cc')
-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]+");