I'm working from the tip of master on Kubuntu 22.04, x86_64, fully patched. According to `git log` master is 64a75f148fa9aec745bda60c4d4608b24c51c3af. Running make test results in one failure: ``` $ make test Running tests... Test project /home/jwalton/keysmith/build Start 1: appstreamtest 1/42 Test #1: appstreamtest ................................. Passed 0.01 sec Start 2: base32-base32-decode 2/42 Test #2: base32-base32-decode .......................... Passed 0.01 sec Start 3: base32-base32-coding-decoding 3/42 Test #3: base32-base32-coding-decoding ................. Passed 0.02 sec Start 4: base32-base32-validate 4/42 Test #4: base32-base32-validate ........................ Passed 0.00 sec Start 5: uri-percent-encoding 5/42 Test #5: uri-percent-encoding .......................... Passed 0.00 sec Start 6: uri-qr-parsing 6/42 Test #6: uri-qr-parsing ................................ Passed 0.00 sec Start 7: hmac-hmac-samples 7/42 Test #7: hmac-hmac-samples ............................. Passed 0.00 sec Start 8: hmac-hmac-validate-keysize 8/42 Test #8: hmac-hmac-validate-keysize .................... Passed 0.00 sec Start 9: oath-luhn-checksum 9/42 Test #9: oath-luhn-checksum ............................ Passed 0.00 sec Start 10: oath-count-timesteps 10/42 Test #10: oath-count-timesteps .......................... Passed 0.00 sec Start 11: oath-convert-timestep-counter 11/42 Test #11: oath-convert-timestep-counter .................***Failed 0.00 sec Start 12: oath-encode-token-defaults 12/42 Test #12: oath-encode-token-defaults .................... Passed 0.00 sec Start 13: oath-hotp-algorithm 13/42 Test #13: oath-hotp-algorithm ........................... Passed 0.00 sec Start 14: oath-totp-algorithm 14/42 Test #14: oath-totp-algorithm ........................... Passed 0.00 sec Start 15: secrets-encrypt-decrypt-rt 15/42 Test #15: secrets-encrypt-decrypt-rt .................... Passed 0.62 sec Start 16: secrets-key-derivation 16/42 Test #16: secrets-key-derivation ........................ Passed 0.63 sec Start 17: account-jobs-dispatcher-dispatch 17/42 Test #17: account-jobs-dispatcher-dispatch .............. Passed 0.00 sec Start 18: account-jobs-dispatcher-next 18/42 Test #18: account-jobs-dispatcher-next .................. Passed 0.00 sec Start 19: account-account-validation 19/42 Test #19: account-account-validation .................... Passed 0.00 sec Start 20: account-jobs-compute-hotp 20/42 Test #20: account-jobs-compute-hotp ..................... Passed 0.00 sec Start 21: account-jobs-compute-totp 21/42 Test #21: account-jobs-compute-totp ..................... Passed 0.01 sec Start 22: account-jobs-load-accounts 22/42 Test #22: account-jobs-load-accounts .................... Passed 0.01 sec Start 23: account-jobs-delete-accounts 23/42 Test #23: account-jobs-delete-accounts .................. Passed 0.05 sec Start 24: account-jobs-save-hotp 24/42 Test #24: account-jobs-save-hotp ........................ Passed 0.02 sec Start 25: account-jobs-save-totp 25/42 Test #25: account-jobs-save-totp ........................ Passed 0.02 sec Start 26: account-jobs-request-account-password 26/42 Test #26: account-jobs-request-account-password ......... Passed 0.34 sec Start 27: account-secret-account-secret-password-flow 27/42 Test #27: account-secret-account-secret-password-flow ... Passed 0.00 sec Start 28: account-storage-object-lifecycles 28/42 Test #28: account-storage-object-lifecycles ............. Passed 0.02 sec Start 29: account-storage-default-lifecycle 29/42 Test #29: account-storage-default-lifecycle ............. Passed 0.01 sec Start 30: account-storage-aborted-lifecycle 30/42 Test #30: account-storage-aborted-lifecycle ............. Passed 0.01 sec Start 31: account-storage-hotp-counter-update 31/42 Test #31: account-storage-hotp-counter-update ........... Passed 0.02 sec Start 32: model-milliseconds-left-for-token 32/42 Test #32: model-milliseconds-left-for-token ............. Passed 0.02 sec Start 33: model-qr-input 33/42 Test #33: model-qr-input ................................ Passed 0.01 sec Start 34: validators-base32-validator 34/42 Test #34: validators-base32-validator ................... Passed 0.01 sec Start 35: validators-datetime-parsing 35/42 Test #35: validators-datetime-parsing ................... Passed 0.01 sec Start 36: validators-epoch-validator 36/42 Test #36: validators-epoch-validator .................... Passed 0.01 sec Start 37: validators-name-validator 37/42 Test #37: validators-name-validator ..................... Passed 0.01 sec Start 38: validators-issuer-validator 38/42 Test #38: validators-issuer-validator ................... Passed 0.01 sec Start 39: validators-unsigned-long-validator 39/42 Test #39: validators-unsigned-long-validator ............ Passed 0.01 sec Start 40: validators-unsigned-long-parsing 40/42 Test #40: validators-unsigned-long-parsing .............. Passed 0.00 sec Start 41: app-commandline-account-job 41/42 Test #41: app-commandline-account-job ................... Passed 0.01 sec Start 42: app-commandline-options 42/42 Test #42: app-commandline-options ....................... Passed 0.01 sec 98% tests passed, 1 tests failed out of 42 Total Test time (real) = 1.94 sec The following tests FAILED: 11 - oath-convert-timestep-counter (Failed) Errors while running CTest ``` ----- ``` $ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 22.04.3 LTS Release: 22.04 Codename: jammy ``` And: ``` $ plasmashell --version plasmashell 5.24.7 ```
Reported in GitLab at <https://invent.kde.org/utilities/keysmith/-/issues/41>.
Created attachment 161792 [details] Keysmith self test results
I think this are the tests of interest, from the log file: ``` 11/42 Testing: oath-convert-timestep-counter 11/42 Test: oath-convert-timestep-counter Command: "/home/jwalton/keysmith/build/bin/convert-timestep-counter" Directory: /home/jwalton/keysmith/build/autotests/oath "oath-convert-timestep-counter" start time: Sep 21 19:15 EDT Output: ---------------------------------------------------------- ********* Start testing of TimeStepCountConversionTest ********* Config: Using QtTest library 5.15.3, Qt 5.15.3 (x86_64-little_endian-lp64 shared (dynamic) release build; by GCC 11.3.0), ubuntu 22.04 PASS : TimeStepCountConversionTest::initTestCase() PASS : TimeStepCountConversionTest::invalidCount(0 + 1 * 1000 * 9223372036854775807) PASS : TimeStepCountConversionTest::invalidCount(0 + 1 * 1000 * 18446744073709551615) PASS : TimeStepCountConversionTest::invalidCount(9223372036851175808 + 1 * 1000 * 18446744073709551615) PASS : TimeStepCountConversionTest::invalidCount(9223372036851175808 + 1 * 1000 * 18446744073709552) PASS : TimeStepCountConversionTest::invalidCount(0 + 1 * 1000 * 18446744073709551) PASS : TimeStepCountConversionTest::invalidCount(0 + 1 * 1000 * 36028797018963967) PASS : TimeStepCountConversionTest::invalidCount(0 + 1 * 1000 * 27021597764222974) PASS : TimeStepCountConversionTest::invalidCount(808 + 1 * 1000 * 9223372036854775) PASS : TimeStepCountConversionTest::validCount(0 + 30 * 1000 * 0 ... 0) PASS : TimeStepCountConversionTest::validCount(0 + 30 * 1000 * 1 ... 30000) PASS : TimeStepCountConversionTest::validCount(-30000 + 30 * 1000 * 1 ... 0) PASS : TimeStepCountConversionTest::validCount(0 + 30 * 1000 * 71582788 ... 2147483640000) PASS : TimeStepCountConversionTest::validCount(0 + 1 * 1000 * 2147483647 ... 2147483647000) PASS : TimeStepCountConversionTest::validCount(0 + 1 * 1000 * 9223372036847575 ... 9223372036847575000) PASS : TimeStepCountConversionTest::validCount(808 + 1 * 1000 * 9223372036847574 ... 9223372036847574808) PASS : TimeStepCountConversionTest::validCount(807 + 1 * 1000 * 9223372036847575 ... 9223372036847575807) FAIL! : TimeStepCountConversionTest::validCount(9223372036851175808 + 1 * 1000 * 0 ... 9223372036851175808) Compared values are not the same Actual (*result) : 292278994/08/17 02:12:55.808[EDT] Expected ("expected"): Invalid QDateTime Loc: [/home/jwalton/keysmith/autotests/oath/convert-timestep-counter.cpp(43)] PASS : TimeStepCountConversionTest::cleanupTestCase() Totals: 18 passed, 1 failed, 0 skipped, 0 blacklisted, 1ms ********* Finished testing of TimeStepCountConversionTest ********* <end of output> Test time = 0.00 sec ---------------------------------------------------------- Test Failed. "oath-convert-timestep-counter" end time: Sep 21 19:15 EDT "oath-convert-timestep-counter" time elapsed: 00:00:00 ---------------------------------------------------------- ```
*** Bug 486492 has been marked as a duplicate of this bug. ***