From 22d05ebfdbb409530fb20133cf150fb4c419faac Mon Sep 17 00:00:00 2001 From: Jack Lloyd Date: Sun, 20 Dec 2015 13:51:28 -0500 Subject: 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. --- src/tests/test_rng.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/tests/test_rng.cpp') 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 -- cgit v1.2.3