aboutsummaryrefslogtreecommitdiffstats
path: root/test/TestHelper.cpp
diff options
context:
space:
mode:
authorDaniel Kirchner <daniel@ekpyron.org>2018-03-07 03:45:34 +0800
committerDaniel Kirchner <daniel@ekpyron.org>2018-03-13 18:20:11 +0800
commit49eaf7c3fd98a2983ac7c9f0994fbca0b73a33c1 (patch)
tree5ed183d69280b4f2c561af4e2169a304f7362ddd /test/TestHelper.cpp
parentf2614be95f71a274db3c172661726dd007e90cf7 (diff)
downloaddexon-solidity-49eaf7c3fd98a2983ac7c9f0994fbca0b73a33c1.tar.gz
dexon-solidity-49eaf7c3fd98a2983ac7c9f0994fbca0b73a33c1.tar.zst
dexon-solidity-49eaf7c3fd98a2983ac7c9f0994fbca0b73a33c1.zip
Infrastructure for extracting syntax tests in separate test files.
Diffstat (limited to 'test/TestHelper.cpp')
-rw-r--r--test/TestHelper.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/TestHelper.cpp b/test/TestHelper.cpp
index e0d4423d..77fa204f 100644
--- a/test/TestHelper.cpp
+++ b/test/TestHelper.cpp
@@ -43,6 +43,11 @@ Options::Options()
ipcPath = suite.argv[i + 1];
i++;
}
+ else if (string(suite.argv[i]) == "--testpath" && i + 1 < suite.argc)
+ {
+ testPath = suite.argv[i + 1];
+ i++;
+ }
else if (string(suite.argv[i]) == "--optimize")
optimize = true;
else if (string(suite.argv[i]) == "--evm-version")
@@ -60,6 +65,10 @@ Options::Options()
if (!disableIPC && ipcPath.empty())
if (auto path = getenv("ETH_TEST_IPC"))
ipcPath = path;
+
+ if (testPath.empty())
+ if (auto path = getenv("ETH_TEST_PATH"))
+ testPath = path;
}
dev::solidity::EVMVersion Options::evmVersion() const