|
|
|
|
@ -59,10 +59,12 @@ for file in "${TEST_FILES[@]}"; do
|
|
|
|
|
echo "========== $file ==========" >> "$RESULT_FILE"
|
|
|
|
|
|
|
|
|
|
if [ $VERBOSE -eq 1 ]; then
|
|
|
|
|
"$COMPILER" --emit-parse-tree "$file" 2>&1 | tee -a "$RESULT_FILE"
|
|
|
|
|
# "$COMPILER" --emit-parse-tree "$file" 2>&1 | tee -a "$RESULT_FILE"
|
|
|
|
|
"$COMPILER" --emit-ir "$file" 2>&1 | tee -a "$RESULT_FILE"
|
|
|
|
|
result=${PIPESTATUS[0]}
|
|
|
|
|
else
|
|
|
|
|
"$COMPILER" --emit-parse-tree "$file" >> "$RESULT_FILE" 2>&1
|
|
|
|
|
# "$COMPILER" --emit-parse-tree "$file" >> "$RESULT_FILE" 2>&1
|
|
|
|
|
"$COMPILER" --emit-ir "$file" >> "$RESULT_FILE" 2>&1
|
|
|
|
|
result=$?
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|