mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
cmdlineTests.sh: Allow using input.yul instead of input.sol in command-line tests
This commit is contained in:
parent
4e58c672bb
commit
f56fd5bde8
@ -245,7 +245,18 @@ printTask "Running general commandline tests..."
|
|||||||
stdoutExpectationFile="${tdir}/output.json"
|
stdoutExpectationFile="${tdir}/output.json"
|
||||||
args="--standard-json "$(cat ${tdir}/args 2>/dev/null || true)
|
args="--standard-json "$(cat ${tdir}/args 2>/dev/null || true)
|
||||||
else
|
else
|
||||||
inputFile="${tdir}input.sol"
|
if [[ -e "${tdir}input.yul" && -e "${tdir}input.sol" ]]
|
||||||
|
then
|
||||||
|
printError "Ambiguous input. Found both input.sol and input.yul."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -e "${tdir}input.yul" ]
|
||||||
|
then
|
||||||
|
inputFile="${tdir}input.yul"
|
||||||
|
else
|
||||||
|
inputFile="${tdir}input.sol"
|
||||||
|
fi
|
||||||
stdin=""
|
stdin=""
|
||||||
stdout="$(cat ${tdir}/output 2>/dev/null || true)"
|
stdout="$(cat ${tdir}/output 2>/dev/null || true)"
|
||||||
stdoutExpectationFile="${tdir}/output"
|
stdoutExpectationFile="${tdir}/output"
|
||||||
|
Loading…
Reference in New Issue
Block a user