diff options
author | Erik Kundt <bitshift@posteo.org> | 2018-11-22 01:10:56 +0800 |
---|---|---|
committer | chriseth <chris@ethereum.org> | 2018-12-01 06:39:05 +0800 |
commit | 0d1b9c3b1bbfcc4ca61d35049f1c3624681dbb13 (patch) | |
tree | 5b671687d70367f3aa639f6083ec628ac92bf730 /test | |
parent | 6c44c5f0c93d6ce623bec773cc151a73d4b12bff (diff) | |
download | dexon-solidity-0d1b9c3b1bbfcc4ca61d35049f1c3624681dbb13.tar dexon-solidity-0d1b9c3b1bbfcc4ca61d35049f1c3624681dbb13.tar.gz dexon-solidity-0d1b9c3b1bbfcc4ca61d35049f1c3624681dbb13.tar.bz2 dexon-solidity-0d1b9c3b1bbfcc4ca61d35049f1c3624681dbb13.tar.lz dexon-solidity-0d1b9c3b1bbfcc4ca61d35049f1c3624681dbb13.tar.xz dexon-solidity-0d1b9c3b1bbfcc4ca61d35049f1c3624681dbb13.tar.zst dexon-solidity-0d1b9c3b1bbfcc4ca61d35049f1c3624681dbb13.zip |
Adds tests for --optimize in assembly mode.
Diffstat (limited to 'test')
-rwxr-xr-x | test/cmdlineTests.sh | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/test/cmdlineTests.sh b/test/cmdlineTests.sh index 4838d088..9dfbe409 100755 --- a/test/cmdlineTests.sh +++ b/test/cmdlineTests.sh @@ -262,10 +262,19 @@ SOLTMPDIR=$(mktemp -d) ) rm -rf "$SOLTMPDIR" -printTask "Testing assemble, yul, strict-assembly..." -echo '{}' | "$SOLC" - --assemble &>/dev/null -echo '{}' | "$SOLC" - --yul &>/dev/null -echo '{}' | "$SOLC" - --strict-assembly &>/dev/null +printTask "Testing assemble, yul, strict-assembly and optimize..." +( + echo '{}' | "$SOLC" - --assemble &>/dev/null + echo '{}' | "$SOLC" - --yul &>/dev/null + echo '{}' | "$SOLC" - --strict-assembly &>/dev/null + + # Test options above in conjunction with --optimize. + # Using both, --assemble and --optimize should fail. + ! echo '{}' | "$SOLC" - --assemble --optimize &>/dev/null + echo '{}' | "$SOLC" - --yul --optimize &>/dev/null + echo '{}' | "$SOLC" - --strict-assembly --optimize &>/dev/null +) + printTask "Testing standard input..." SOLTMPDIR=$(mktemp -d) |