Open jcowgill opened 7 years ago
It should be a simple change to add an override to the date/time using existing API's to 'fix' the date/time purely for testing.
As such, I'm marking this as an enhancement request, and we'll try and add this to the tests at some point.
As ever, thanks for the feedback.
ARM Internal Ref: IOTSSL-1276
Niels Thykier pointed out that the mbedTLS testsuite is "timebombed" - ie: that it will suddenly fail in the future. See: https://bugs.debian.org/857579#10 This is a problem for Debian because I run the testsuite at build time and the package is expected to build all though the life of a release (usually about 5 years in the case of Debian LTS releases).
This can be tested using the "faketime" program. Setting the date to 3 years in the future causes a number of tests to fail, all of them in the x509parse suite:
Setting the date 10 years into the future causes more tests to fail:
Ideally the testsuite should not depend on the system time at all.