aboutsummaryrefslogtreecommitdiffstats
path: root/test/Common.h
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2018-10-10 22:12:18 +0800
committerchriseth <chris@ethereum.org>2018-10-11 21:01:43 +0800
commit9da62384eeac37f1709fbb53c57386b5390e72a0 (patch)
tree471f7111974f8d6eb5a85825fce2952e7e999128 /test/Common.h
parent50247dc8d1f1b3f4408670ab0538da8f0e113cf6 (diff)
downloaddexon-solidity-9da62384eeac37f1709fbb53c57386b5390e72a0.tar
dexon-solidity-9da62384eeac37f1709fbb53c57386b5390e72a0.tar.gz
dexon-solidity-9da62384eeac37f1709fbb53c57386b5390e72a0.tar.bz2
dexon-solidity-9da62384eeac37f1709fbb53c57386b5390e72a0.tar.lz
dexon-solidity-9da62384eeac37f1709fbb53c57386b5390e72a0.tar.xz
dexon-solidity-9da62384eeac37f1709fbb53c57386b5390e72a0.tar.zst
dexon-solidity-9da62384eeac37f1709fbb53c57386b5390e72a0.zip
Combine test path discovery.
Diffstat (limited to 'test/Common.h')
-rw-r--r--test/Common.h35
1 files changed, 35 insertions, 0 deletions
diff --git a/test/Common.h b/test/Common.h
new file mode 100644
index 00000000..e87faa0e
--- /dev/null
+++ b/test/Common.h
@@ -0,0 +1,35 @@
+/*
+ This file is part of solidity.
+
+ solidity is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ solidity is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with solidity. If not, see <http://www.gnu.org/licenses/>.
+*/
+
+#pragma once
+
+#include <boost/filesystem/path.hpp>
+
+namespace dev
+{
+namespace test
+{
+
+/// Tries to find a path that contains the directories "libsolidity/syntaxTests"
+/// and returns it if found.
+/// The routine searches in the current directory, and inside the "test" directory
+/// starting from the current directory and up to three levels up.
+/// @returns the path of the first match or an empty path if not found.
+boost::filesystem::path discoverTestPath();
+
+}
+}