aboutsummaryrefslogtreecommitdiff
path: root/unittest
Commit message (Collapse)AuthorAge
* Merge commit '48b3d82ffe1ed19db9ba3cf7e6536ecf92e27391' as 'unittest/Catch'Szczepan Zalega2017-12-22
|
* Removed unittest/Catch submodule at commit ↵Szczepan Zalega2017-12-22
| | | | ae5ee2cf63d6d67bd1369b512d2a7b60b571c907
* Allow to use library path in tests from environment variableSzczepan Zalega2017-10-11
| | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* Merge branch 'test_organize'Szczepan Zalega2017-10-10
|\ | | | | | | | | | | Improve test organization Disable CRC check Improve log
| * Do not set debug level in testsSzczepan Zalega2017-10-10
| | | | | | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
| * Add DEBUG_L1 level and set it as default for Python testsSzczepan Zalega2017-10-10
| | | | | | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
| * Make sure hidden volumes are created before unlocking themSzczepan Zalega2017-10-10
| | | | | | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
| * Move library unit tests to Python3Szczepan Zalega2017-10-10
| | | | | | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
| * Remove libnitrokey-log and add a switch to choose version insteadSzczepan Zalega2017-10-04
| | | | | | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
| * Organize tests into categoriesSzczepan Zalega2017-10-04
| | | | | | | | | | | | ... by adding pytest marks. 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>
* | test3.cc: fix syntax errorIgor Gnatenko2017-10-07
|/ | | | | Closes #72 Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
* Merge branch 'windows_MSVC2017' into OSX_merge_cleanedSzczepan Zalega2017-09-20
|\
| * Skip factory reset tests for nowSzczepan Zalega2017-07-03
| | | | | | | | | | | | Not working due to CRC error bug Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
| * Ignore whitespace in C API headerSzczepan Zalega2017-07-03
| | | | | | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
| * Move to Python 3Szczepan Zalega2017-07-03
| | | | | | | | Tested under Windows 8.1 and MSVC 2017 RC
| * Search for Windows DLLsSzczepan Zalega2017-07-03
| |
| * Run compilation using Qt CreatorSzczepan Zalega2017-06-28
| |
* | Tests: do additional authentication for Pro 0.7Szczepan Zalega2017-09-20
|/ | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* Add C++ tests for some current issuesSzczepan Zalega2017-06-27
| | | | | | | | Issues: https://github.com/Nitrokey/nitrokey-storage-firmware/issues/36 https://github.com/Nitrokey/nitrokey-storage-firmware/issues/31 Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* Return OTP codes as strings to make sure they are zero-filled properlySzczepan Zalega2017-04-03
| | | | | | | | | Adjust Python tests for new OTP codes return value Also remove manual 0-filling Fixes #57 Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* Fix compilation warningsSzczepan Zalega2017-03-11
| | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* Correct comments and fix firmware version requirementsSzczepan Zalega2017-03-11
| | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* Authenticate before factory reset so the command will not timeoutSzczepan Zalega2017-03-11
| | | | | | To investigate later Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* Update encrypted volume test. Use random password.Szczepan Zalega2017-03-11
| | | | | | Randomizing password to ensure correctness of setting up hidden volume in current iteration Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* Prefer to use log-enabled library in testsSzczepan Zalega2017-03-11
| | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* Add some complex unit tests to find out corruption causeSzczepan Zalega2017-03-11
| | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* Add oath to Pythons unittest requirementsSzczepan Zalega2017-03-11
| | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* Remove unnecessary extern keyword from C APISzczepan Zalega2017-03-11
| | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* Add script for installing python dependencies for unit testsSzczepan Zalega2017-03-11
| | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* Remove MakefileSzczepan Zalega2017-03-11
| | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* Use alias for easy device changeSzczepan Zalega2017-03-11
| | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* Use CMake instead of MakeSzczepan Zalega2017-03-11
| | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* C++ tests fixedSzczepan Zalega2017-03-11
| | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* Tests: skip edit OTP slot test for NK Storage 0.44Szczepan Zalega2016-12-12
| | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* Tests: clear new SD card warning on factory resetSzczepan Zalega2016-12-12
| | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* Add a note regarding Password Safe testsSzczepan Zalega2016-12-09
| | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* Test null started OTP secrets also for 320bit caseSzczepan Zalega2016-12-09
| | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* Remove old skipping code. Feature comment.Szczepan Zalega2016-12-09
| | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* Skip non-Storage and old devices for Storage testsSzczepan Zalega2016-12-09
| | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* Enable factory reset test for Nitrokey Storage. Comments.Szczepan Zalega2016-12-09
| | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* Add NK Storage specific reply on running not initialized Password SafeSzczepan Zalega2016-12-09
| | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* Apply firmware versions limits to testsSzczepan Zalega2016-12-09
| | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* Code reformat in library testSzczepan Zalega2016-12-09
| | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* Allow to skip test if device is not able to pass itSzczepan Zalega2016-12-09
| | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* Check maximum OTP secret size in new authorization style commandsSzczepan Zalega2016-12-09
| | | | | | | Authenticate before testing invalid hex strings Remove invalid test for empty string for writing otp slot (empty string allows editing) Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* Tests: check are long OTP secrets supportedSzczepan Zalega2016-12-09
| | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* Add missing newlines to make code format consistentSzczepan Zalega2016-12-03
| | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* Test for manual checking of TOTP slot written by Nitrokey AppSzczepan Zalega2016-12-03
| | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>