Skip to content

Commit

Permalink
Added Microsoft BASIC tests, and abort the suite if anything fails
Browse files Browse the repository at this point in the history
  • Loading branch information
skx committed Jan 25, 2025
1 parent 64e913f commit d40dc67
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/mbasic1.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
B:
#MBASIC
#PRINT 1 + 2 * 3#SYSTEM


EXIT
Expand Down
3 changes: 3 additions & 0 deletions test/mbasic1.pat
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
7
5.29
Microsoft
11 changes: 11 additions & 0 deletions test/mbasic2.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
B:
#MBASIC
10 FOR I=1 TO 5
20 PRINT I,I*I
30 NEXT I
#LIST
RUN
SYSTEM


EXIT
3 changes: 3 additions & 0 deletions test/mbasic2.pat
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
16
5.29
Microsoft
5 changes: 5 additions & 0 deletions test/run-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,9 @@ for i in test/*.in ; do

./test/run-test.sh "${name}"

if [ $? -eq 1 ]; then
echo "Previous test, ${name}, failed. Aborting"
exit 1
fi

done

0 comments on commit d40dc67

Please sign in to comment.