aboutsummaryrefslogtreecommitdiffstats
path: root/test/cmdlineTests.sh
diff options
context:
space:
mode:
authorDaniel Kirchner <daniel@ekpyron.org>2018-08-10 02:37:49 +0800
committerDaniel Kirchner <daniel@ekpyron.org>2018-08-11 01:26:48 +0800
commit954d7433bd8c10bce917326f70070077f0cfc165 (patch)
treef73a2699f3fc369fd9ae3783b271e9a11171fe80 /test/cmdlineTests.sh
parent43db88b8363d73ee2f5ffa094ff506414261bd11 (diff)
downloaddexon-solidity-954d7433bd8c10bce917326f70070077f0cfc165.tar.gz
dexon-solidity-954d7433bd8c10bce917326f70070077f0cfc165.tar.zst
dexon-solidity-954d7433bd8c10bce917326f70070077f0cfc165.zip
Disallow remappings with empty prefix.
Diffstat (limited to 'test/cmdlineTests.sh')
-rwxr-xr-xtest/cmdlineTests.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/cmdlineTests.sh b/test/cmdlineTests.sh
index 7256386d..a260da34 100755
--- a/test/cmdlineTests.sh
+++ b/test/cmdlineTests.sh
@@ -144,6 +144,10 @@ test_solc_file_input_failures "file_not_found.sol" "" "" "\"file_not_found.sol\"
printTask "Testing passing files that are not files..."
test_solc_file_input_failures "." "" "" "\".\" is not a valid file."
+printTask "Testing passing empty remappings..."
+test_solc_file_input_failures "${0}" "=/some/remapping/target" "" "Invalid remapping: \"=/some/remapping/target\"."
+test_solc_file_input_failures "${0}" "ctx:=/some/remapping/target" "" "Invalid remapping: \"ctx:=/some/remapping/target\"."
+
printTask "Compiling various other contracts and libraries..."
(
cd "$REPO_ROOT"/test/compilationTests/