diff options
author | Jack Lloyd <[email protected]> | 2015-12-20 13:51:28 -0500 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2015-12-20 13:51:28 -0500 |
commit | 22d05ebfdbb409530fb20133cf150fb4c419faac (patch) | |
tree | 33498ae9e833f11cf2c27d15cbfe2ff502143ccd /src/tests/test_rng.cpp | |
parent | 1752f0d522eef9a4a703fccf702b4b026c1c1d01 (diff) |
Add --data-dir option to test command
Understand using '-' on the command line to mean stdin
Fix last few unit tests that wanted to write to the filesystem; removes
outdata directory.
Diffstat (limited to 'src/tests/test_rng.cpp')
-rw-r--r-- | src/tests/test_rng.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tests/test_rng.cpp b/src/tests/test_rng.cpp index 626fe85b5..a5dbbc8e1 100644 --- a/src/tests/test_rng.cpp +++ b/src/tests/test_rng.cpp @@ -58,7 +58,7 @@ Botan::RandomNumberGenerator* get_rng(const std::string& algo_str, const std::ve class X931_RNG_Tests : public Text_Based_Test { public: - X931_RNG_Tests() : Text_Based_Test(Test::data_file("x931.vec"), {"IKM", "L", "Out"}) {} + X931_RNG_Tests() : Text_Based_Test("x931.vec", {"IKM", "L", "Out"}) {} Test::Result run_one_test(const std::string& algo, const VarMap& vars) override { @@ -88,7 +88,7 @@ BOTAN_REGISTER_TEST("x931_rng", X931_RNG_Tests); class HMAC_DRBG_Tests : public Text_Based_Test { public: - HMAC_DRBG_Tests() : Text_Based_Test(Test::data_file("hmac_drbg.vec"), + HMAC_DRBG_Tests() : Text_Based_Test("hmac_drbg.vec", {"EntropyInput", "EntropyInputReseed", "Out"}) {} Test::Result run_one_test(const std::string& algo, const VarMap& vars) override |