summaryrefslogtreecommitdiff
path: root/test/randomtest.sh
Commit message (Collapse)AuthorAgeFilesLines
* test/randomtest.sh: avoid touching the filesystemDaniel Kahn Gillmor2021-02-251-7/+5
|
* Drop more duplicative testsDaniel Kahn Gillmor2021-02-251-28/+0
| | | | | Now that we have the snippet-driven test_variable_data suite, most of the other longer hand-written tests are duplicative.
* Drop duplicate library constructor preload testsDaniel Kahn Gillmor2021-02-251-9/+0
| | | | | These tests are already taken care of with the snippet-driven library constructor tests.
* Overhaul testing library constructorsDaniel Kahn Gillmor2021-02-251-3/+3
| | | | | | | | We want to make it easier to test a bunch of different functions that might be invoked in constructors of other libraries. It seems conceivable that with these snippets, we could design other tests that also work across a wide range of intercepted functions.
* Test getentropyDaniel Kahn Gillmor2021-02-241-1/+1
| | | | | We want to ensure that tools that call getentropy() are also controlled appropriately.
* clean up randomtest.sh, make more flexibleDaniel Kahn Gillmor2021-02-241-27/+31
|
* Test repeated invocations of getrandom()Daniel Kahn Gillmor2021-02-241-3/+12
| | | | | | | | | A single program that invokes getrandom() repeatedly should end up with the same stream of bytes, regardless of how it chunks up the reading from the entropy source. This test already passses. I'm including it because it seems like a useful confirmation.
* test getrandom() in library initialization without FAKERANDOM_SEEDDaniel Kahn Gillmor2021-02-231-0/+8
| | | | | Running "make randomtest" should demonstrates the segfault described in https://github.com/wolfcw/libfaketime/issues/295
* Improve tests for FAKE_RANDOMDaniel Kahn Gillmor2021-02-221-5/+13
| | | | | | | | Previously, we had failed to test code with getrandom() against LD_PRELOAD when FAKERANDOM_SEED was unset. We also want to try calling getrandom twice in a single process to make sure that works OK.
* Make randomtest.sh use FAKETIME_TESTLIB like the rest of the test casesWolfgang Hommel2021-02-041-3/+5
|
* Ease build of getrandom_testDaniel Kahn Gillmor2021-02-031-0/+29
In trying to test the experimental getrandom features, I found a few minor problems. These changes should make it easier to test. After building, the developer can now just do: make -C test randomtest This will do a basic verfication that the feature works as expected. I haven't tried to integrate this with the overall "make test". To do that right, it should condition the test on the definition of FAKE_RANDOM.