aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests/test_utils.cpp
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2015-12-20 13:51:28 -0500
committerJack Lloyd <[email protected]>2015-12-20 13:51:28 -0500
commit22d05ebfdbb409530fb20133cf150fb4c419faac (patch)
tree33498ae9e833f11cf2c27d15cbfe2ff502143ccd /src/tests/test_utils.cpp
parent1752f0d522eef9a4a703fccf702b4b026c1c1d01 (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_utils.cpp')
-rw-r--r--src/tests/test_utils.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/tests/test_utils.cpp b/src/tests/test_utils.cpp
index f6611b3ae..16b1848ef 100644
--- a/src/tests/test_utils.cpp
+++ b/src/tests/test_utils.cpp
@@ -21,8 +21,8 @@ namespace {
class Utility_Function_Tests : public Text_Based_Test
{
public:
- Utility_Function_Tests() : Text_Based_Test(Test::data_file("util.vec"),
- {"In1","In2","Out"})
+ Utility_Function_Tests() : Text_Based_Test("util.vec",
+ {"In1","In2","Out"})
{}
Test::Result run_one_test(const std::string& algo, const VarMap& vars) override
@@ -177,7 +177,7 @@ BOTAN_REGISTER_TEST("util", Utility_Function_Tests);
class Date_Format_Tests : public Text_Based_Test
{
public:
- Date_Format_Tests() : Text_Based_Test(Test::data_file("dates.vec"),
+ Date_Format_Tests() : Text_Based_Test("dates.vec",
std::vector<std::string>{"Date"})
{}
@@ -248,7 +248,7 @@ BOTAN_REGISTER_TEST("util_dates", Date_Format_Tests);
class Base64_Tests : public Text_Based_Test
{
public:
- Base64_Tests() : Text_Based_Test(Test::data_file("base64.vec"),
+ Base64_Tests() : Text_Based_Test("base64.vec",
std::vector<std::string>({"Base64"}),
{"Binary"})
{}