Skip to content

Commit 31d0ef5

Browse files
committed
Merge remote-tracking branch 'origin/mungre/strings' into proposed-updates
2 parents 0c4ef18 + 2761616 commit 31d0ef5

File tree

142 files changed

+2577
-577
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

142 files changed

+2577
-577
lines changed

.github/workflows/actions.yml

+16-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
name: Build and run tests
2+
13
on: [push, pull_request]
24

35
jobs:
@@ -17,7 +19,7 @@ jobs:
1719
- uses: actions/checkout@v2
1820
- run: cmake .
1921
- run: make
20-
- run: make test
22+
- run: make test CTEST_OUTPUT_ON_FAILURE=TRUE
2123
make:
2224
runs-on: ${{ matrix.os }}
2325
strategy:
@@ -26,4 +28,16 @@ jobs:
2628
name: Compile via Makefile on ${{ matrix.os }}
2729
steps:
2830
- uses: actions/checkout@v2
29-
- run: make -C src all
31+
- run: make -C src all VERBOSE=1
32+
msbuild:
33+
runs-on: windows-2019
34+
name: Compile via msbuild on Windows
35+
steps:
36+
- name: Add msbuild to PATH
37+
uses: microsoft/[email protected]
38+
- uses: actions/checkout@v2
39+
- name: Build Binary
40+
shell: cmd
41+
working-directory: .\src\VS2010
42+
run: call .\build.cmd
43+
- run: python test\testrunner.py -v

.gitignore

+4
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,7 @@
33
*.swp
44
/beebasm
55
/src/objects
6+
test/testlog.txt
7+
test/**/test
8+
test/**/test.ssd
9+
test/**/testgold.txt

CMakeLists.txt

+1
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,4 @@ install(FILES ${CMAKE_SOURCE_DIR}/beebasm.1 DESTINATION share/man/man1)
1919
enable_testing()
2020

2121
add_test(NAME Runs COMMAND ./beebasm -i demo.6502 -do demo.ssd -boot Code -v)
22+
add_test(NAME Tests COMMAND python3 test/testrunner.py -v)

examples/local-forward-branch-3.6502

-15
This file was deleted.

src/Makefile

+3
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,9 @@ LDLIBS := -lm
5353

5454
PARAMS := -i ../demo.6502 -do ../demo.ssd -boot Code -v
5555

56+
# Command to run the tests
57+
58+
TEST := cd .. && python3 test/testrunner.py
5659

5760

5861
#--------------------------------------------------------------------------------------------------

src/Makefile.inc

+8-1
Original file line numberDiff line numberDiff line change
@@ -145,9 +145,11 @@ CPUS ?= 1
145145
ifdef VERBOSE
146146
VB :=
147147
VB_MAKE :=
148+
VB_TEST := -v
148149
else
149150
VB := @@
150151
VB_MAKE := -s
152+
VB_TEST :=
151153
endif
152154

153155

@@ -168,6 +170,7 @@ help:
168170
$(ECHO) make all .... Build and run code
169171
$(ECHO) make code ... Build code
170172
$(ECHO) make run .... Run code
173+
$(ECHO) make test ... Run tests
171174
$(ECHO) make clean .. Clean code
172175
$(ECHO) make help ... Display this message again
173176
$(ECHO)
@@ -192,7 +195,11 @@ run:
192195
$(VB)$(TARGET) $(PARAMS)
193196

194197

195-
all: code run
198+
test:
199+
$(VB)$(TEST) $(VB_TEST)
200+
201+
202+
all: code run test
196203

197204

198205
clean:

src/VS2010/build.cmd

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
msbuild /target:Build /property:Configuration=Release /property:Platform=Win32 BeebAsm.vcxproj

src/asmexception.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ DEFINE_SYNTAX_EXCEPTION( ParameterCount, "Wrong number of parameters." );
207207
DEFINE_SYNTAX_EXCEPTION( NoImplied, "Implied mode not allowed for this instruction." );
208208
DEFINE_SYNTAX_EXCEPTION( ImmTooLarge, "Immediate constants cannot be greater than 255." );
209209
DEFINE_SYNTAX_EXCEPTION( ImmNegative, "Constant cannot be negative." );
210-
DEFINE_SYNTAX_EXCEPTION( UnexpectedComma, "Unexpected comma enountered." );
210+
DEFINE_SYNTAX_EXCEPTION( UnexpectedComma, "Unexpected comma encountered." );
211211
DEFINE_SYNTAX_EXCEPTION( NoImmediate, "Immediate mode not allowed for this instruction." );
212212
DEFINE_SYNTAX_EXCEPTION( NoIndirect, "Indirect mode not allowed for this instruction." );
213213
DEFINE_SYNTAX_EXCEPTION( 6502Bug, "JMP (addr) will not execute as intended due to the 6502 bug (addr = &xxFF)." );

0 commit comments

Comments
 (0)