2020-09-17 11:08:14 +00:00
|
|
|
$ErrorActionPreference = "Stop"
|
|
|
|
|
2020-09-16 14:24:11 +00:00
|
|
|
cd "$PSScriptRoot\.."
|
|
|
|
|
|
|
|
.\build\solc\Release\solc.exe --version
|
2020-09-17 11:08:14 +00:00
|
|
|
if ( -not $? ) { throw "Cannot execute solc --version." }
|
2020-09-16 14:24:11 +00:00
|
|
|
|
|
|
|
mkdir test_results
|
|
|
|
.\build\test\Release\soltest.exe --color_output=no --show_progress=yes --logger=JUNIT,error,test_results/result.xml -- --no-smt
|
2020-09-17 11:08:14 +00:00
|
|
|
if ( -not $? ) { throw "Unoptimized soltest run failed." }
|
2020-09-16 14:24:11 +00:00
|
|
|
.\build\test\Release\soltest.exe --color_output=no --show_progress=yes --logger=JUNIT,error,test_results/result_opt.xml -- --optimize --no-smt
|
2020-09-17 11:08:14 +00:00
|
|
|
if ( -not $? ) { throw "Optimized soltest run failed." }
|