aboutsummaryrefslogtreecommitdiff
path: root/unittest/test_offline.cc
Commit message (Collapse)AuthorAge
* NitrokeyManager: Also return serial number as u32Robin Krahl2020-04-02
| | | | | | | | | | | | | This patch adds the get_serial_number_as_u32 method to NitrokeyManager. It returns the serial number as a 32-bit unsigned integer. Previously, we only returned it as a string generated from the integer value, get_serial_number. While get_serial_number returns an empty string if no device is connected and "NA" if an unknown model is connected, the new method throws a DeviceNotConnected exception in the first case and returns zero in the second case as we cannot express the three states in one integer return value.
* Fix regex in unittest for pre-releases and git checkoutsDavid Seifert2019-04-26
|
* Mention potential test failure cause, when no git version is providedSzczepan Zalega2019-01-02
| | | | | | Related to #133 Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* Update for compatibility with Catch2 version 2.3.0Tom Hughes2018-07-24
|
* meson: improve generation of vcs_tagIgor Gnatenko2018-07-18
| | | | Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
* Allow for <patch> field in library version getter testSzczepan Zalega2018-07-18
| | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* Merge branch 'pr_123'Szczepan Zalega2018-06-22
|\ | | | | | | | | | | Fix version getter test Closes #123
| * Fix unit test for get_library_version for release commitsRobin Krahl2018-06-21
| | | | | | | | | | | | | | `git describe` may return a tag name or <tag>-<n>-g<hash>, where <n> is the number of commits since the last tag <tag> and <hash> is the hash of the current commit. The current test case only considers the latter case. This patch adds a regular expression to handle both cases.
* | Merge branch 'pr_115'Szczepan Zalega2018-06-20
|\ \ | |/ |/| | | | | | | Fix connect() return value in offline mode Fixes #115
| * Add extended test for the connect() return value in offline modeSzczepan Zalega2018-06-20
| | | | | | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* | Add offline test for version getterSzczepan Zalega2018-06-19
|/ | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* Fix compilation warnings for testsSzczepan Zalega2018-04-19
| | | | | | | Cleanup CMakeList a bit as well. Fixes #97 Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* Fix bug with different data readSzczepan Zalega2018-01-29
| | | | | | Makes occasional fails Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* Update license/copyright linesSzczepan Zalega2018-01-16
| | | | | | Remove redundant file Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* Enter bytes directly instead of using stringSzczepan Zalega2017-10-07
| | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* Add C++ offline tests and set them defaultSzczepan Zalega2017-10-07
Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>