Fixed indentation in asma-test.sh
This commit is contained in:
parent
9b4aa10f07
commit
76470ce3ee
|
@ -6,8 +6,8 @@ mkdir asma-test
|
||||||
cd asma-test
|
cd asma-test
|
||||||
|
|
||||||
build_asma() {
|
build_asma() {
|
||||||
sed -ne '/^( devices )/,/^( vectors )/p' ../projects/software/asma.tal
|
sed -ne '/^( devices )/,/^( vectors )/p' ../projects/software/asma.tal
|
||||||
cat <<EOD
|
cat <<EOD
|
||||||
|0100 @reset
|
|0100 @reset
|
||||||
;&source-file ;&dest-file ;asma-assemble-file JSR2
|
;&source-file ;&dest-file ;asma-assemble-file JSR2
|
||||||
;asma/error LDA2 #0000 NEQ2 JMP BRK
|
;asma/error LDA2 #0000 NEQ2 JMP BRK
|
||||||
|
@ -21,12 +21,12 @@ EOD
|
||||||
}
|
}
|
||||||
|
|
||||||
expect_failure() {
|
expect_failure() {
|
||||||
cat > 'in.tal'
|
cat > 'in.tal'
|
||||||
if ../bin/uxncli asma.rom > asma.log 2>/dev/null || ! grep -qF "${1}" asma.log; then
|
if ../bin/uxncli asma.rom > asma.log 2>/dev/null || ! grep -qF "${1}" asma.log; then
|
||||||
echo "error: asma didn't report error ${1} in faulty code"
|
echo "error: asma didn't report error ${1} in faulty code"
|
||||||
tail asma.log
|
tail asma.log
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
echo 'Assembling asma with uxnasm'
|
echo 'Assembling asma with uxnasm'
|
||||||
|
|
Loading…
Reference in New Issue