mirror of
https://github.com/bobbimanners/emailler.git
synced 2024-08-20 02:29:32 +00:00
Some test program cleanup.
- Simplify Makefile by allowing to use suffix '_tcp' to denote the requirement to link against TCP-capable IP65 lib. - Remove 'test' or 'test_' prefix from test program names - every program in 'test' is a test program. - Have some more test programs switch to lower case charset on the C64. - I'm no Ruby guy so don't rely on Ruby for building disk images.
This commit is contained in:
parent
d431ff02ce
commit
624ab62d25
@ -2,28 +2,24 @@ AS=ca65
|
|||||||
LD=ld65
|
LD=ld65
|
||||||
AFLAGS=
|
AFLAGS=
|
||||||
|
|
||||||
|
|
||||||
%.o: %.c
|
%.o: %.c
|
||||||
$(CC) -c $(CFLAGS) $<
|
$(CC) -c $(CFLAGS) $<
|
||||||
|
|
||||||
%.o: %.s
|
%.o: %.s
|
||||||
$(AS) $(AFLAGS) $<
|
$(AS) $(AFLAGS) $<
|
||||||
|
|
||||||
|
# a2uther.lib : Apple //, with an Uthernet card (cs8900a chipset) in slot #3
|
||||||
# a2uther.lib Apple //, with an Uthernet card (cs8900a chipset) in slot #3
|
# a2lancegs.lib : Apple //, with a LANceGS card (lan91c96)
|
||||||
# a2lancegs.lib Apple //, with a LANceGS card (lan91c96)
|
# c64rrnet.lib : C64 with RR-NET or clone at $de0x
|
||||||
# c64rrnet.lib C64 with RR-NET or clone at $de0x
|
# c64wiznet.lib : C64 with Wiznet W5100 addressed at $df2x
|
||||||
# c64wiznet.lib C64 with Wiznet W5100 addressed at $df2x
|
# vic20rrnet.lib : C64 with RR-NET or clone at $980x
|
||||||
# vic20rrnet.lib C64 with RR-NET or clone at $980x
|
|
||||||
|
|
||||||
|
|
||||||
DRIVERS=\
|
DRIVERS=\
|
||||||
a2uther.lib \
|
a2uther.lib \
|
||||||
a2lancegs.lib \
|
a2lancegs.lib \
|
||||||
c64rrnet.lib \
|
c64rrnet.lib \
|
||||||
c64wiznet.lib \
|
c64wiznet.lib \
|
||||||
vic20rrnet.lib \
|
vic20rrnet.lib
|
||||||
|
|
||||||
|
|
||||||
all: $(DRIVERS)
|
all: $(DRIVERS)
|
||||||
|
|
||||||
@ -42,7 +38,6 @@ c64wiznet.lib: w5100.o c64print.o c64timer.o c64kernal.o c64inputs.o cbm_disk_a
|
|||||||
vic20rrnet.lib: vic20print.o vic20-rr-net.o vic20timer.o vic20input.o cbm_disk_access.o petscii_charconv.o cs8900a.o generic_zero_page.o
|
vic20rrnet.lib: vic20print.o vic20-rr-net.o vic20timer.o vic20input.o cbm_disk_access.o petscii_charconv.o cs8900a.o generic_zero_page.o
|
||||||
ar65 a $@ $^
|
ar65 a $@ $^
|
||||||
|
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f *.o
|
rm -f *.o
|
||||||
rm -f *.lib
|
rm -f *.lib
|
||||||
|
@ -2,19 +2,16 @@ AS=ca65
|
|||||||
LD=ld65
|
LD=ld65
|
||||||
AFLAGS=
|
AFLAGS=
|
||||||
|
|
||||||
|
|
||||||
# ip65.lib : minimal IP stack (UDP only)
|
# ip65.lib : minimal IP stack (UDP only)
|
||||||
# ip65_tcp.lib : full featured TCP/IP stack
|
# ip65_tcp.lib : full featured TCP/IP stack
|
||||||
# ip65_wiznet.lib : hybrid stack for use with the w5100 chip : UDP,ICMP & ARP is done on host, TCP is on w5100
|
# ip65_wiznet.lib : hybrid stack for use with the w5100 chip : UDP,ICMP & ARP is done on host, TCP is on w5100
|
||||||
|
|
||||||
|
|
||||||
%.o: %.c
|
%.o: %.c
|
||||||
$(CC) -c $(CFLAGS) $<
|
$(CC) -c $(CFLAGS) $<
|
||||||
|
|
||||||
%.o: %.s
|
%.o: %.s
|
||||||
$(AS) $(AFLAGS) $<
|
$(AS) $(AFLAGS) $<
|
||||||
|
|
||||||
|
|
||||||
ETHOBJS=\
|
ETHOBJS=\
|
||||||
copymem.o \
|
copymem.o \
|
||||||
config.o \
|
config.o \
|
||||||
@ -69,6 +66,5 @@ clean:
|
|||||||
rm -f ip65_tcp.lib
|
rm -f ip65_tcp.lib
|
||||||
rm -f ip65_wiznet.lib
|
rm -f ip65_wiznet.lib
|
||||||
|
|
||||||
|
|
||||||
distclean: clean
|
distclean: clean
|
||||||
rm -f *~
|
rm -f *~
|
||||||
|
155
test/Makefile
155
test/Makefile
@ -4,8 +4,6 @@ LD=ld65
|
|||||||
CFLAGS=-Oirs -t $(TARGET)
|
CFLAGS=-Oirs -t $(TARGET)
|
||||||
AFLAGS=
|
AFLAGS=
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
IP65LIB=../ip65/ip65.lib
|
IP65LIB=../ip65/ip65.lib
|
||||||
IP65TCPLIB=../ip65/ip65_tcp.lib
|
IP65TCPLIB=../ip65/ip65_tcp.lib
|
||||||
C64RRNETLIB=../drivers/c64rrnet.lib
|
C64RRNETLIB=../drivers/c64rrnet.lib
|
||||||
@ -15,42 +13,43 @@ A2UTHERLIB=../drivers/a2uther.lib
|
|||||||
A2LANCEGSLIB=../drivers/a2lancegs.lib
|
A2LANCEGSLIB=../drivers/a2lancegs.lib
|
||||||
VIC20RRNETLIB=../drivers/vic20rrnet.lib
|
VIC20RRNETLIB=../drivers/vic20rrnet.lib
|
||||||
|
|
||||||
|
|
||||||
INCFILES=\
|
INCFILES=\
|
||||||
../inc/common.i\
|
../inc/common.i\
|
||||||
../inc/commonprint.i\
|
../inc/commonprint.i\
|
||||||
../inc/net.i\
|
../inc/net.i\
|
||||||
|
|
||||||
all: \
|
all: prg bin
|
||||||
|
|
||||||
|
prg: \
|
||||||
ip65 \
|
ip65 \
|
||||||
drivers \
|
drivers \
|
||||||
test_getc.prg \
|
cartapi.prg \
|
||||||
testdns.prg \
|
cifs_tcp.prg \
|
||||||
test_cifs.prg \
|
diskio.prg \
|
||||||
test_disk_io.prg \
|
dns.prg \
|
||||||
testdns.pg2 \
|
dottedquad.prg \
|
||||||
testtftp.prg \
|
getc.prg \
|
||||||
testtftp.pg2 \
|
geturl_tcp.prg \
|
||||||
test_cart_api.prg \
|
httpd.prg \
|
||||||
test_vt100.prg \
|
parsequerystring.prg \
|
||||||
test_sntp.prg \
|
parser_tcp.prg \
|
||||||
testdottedquad.prg \
|
ping_tcp.prg \
|
||||||
test_tcp.prg \
|
sntp.prg \
|
||||||
test_xmodem.prg \
|
tcp_tcp.prg \
|
||||||
test_vic20.prg \
|
tftp.prg \
|
||||||
test_httpd.prg \
|
vic20.prg \
|
||||||
test_parser.prg \
|
vt100.prg \
|
||||||
test_ping.prg \
|
wiznet.prg \
|
||||||
test_get_url.prg \
|
xmodem_tcp.prg
|
||||||
test_wiznet.prg \
|
|
||||||
test_parse_querystring.prg \
|
|
||||||
test_sntp.prg \
|
|
||||||
# test_lancegs.pg2 \
|
|
||||||
# test_xmodem.d64 \
|
|
||||||
# httpd_test.d64 \
|
|
||||||
ip65test.dsk \
|
|
||||||
# test_disk_io.d64 \
|
|
||||||
|
|
||||||
|
bin: \
|
||||||
|
ip65 \
|
||||||
|
drivers \
|
||||||
|
dns.bin \
|
||||||
|
dottedquad.bin \
|
||||||
|
lancegs.bin \
|
||||||
|
tcp_tcp.bin \
|
||||||
|
tftp.bin
|
||||||
|
|
||||||
ip65:
|
ip65:
|
||||||
make -C ../ip65 all
|
make -C ../ip65 all
|
||||||
@ -58,81 +57,55 @@ ip65:
|
|||||||
drivers:
|
drivers:
|
||||||
make -C ../drivers all
|
make -C ../drivers all
|
||||||
|
|
||||||
|
d64: ip65.d64
|
||||||
|
|
||||||
|
dsk: ip65.dsk
|
||||||
|
|
||||||
%.o: %.s
|
%.o: %.s
|
||||||
$(AS) $(AFLAGS) $<
|
$(AS) $(AFLAGS) $<
|
||||||
|
|
||||||
|
|
||||||
%.prg: %.o $(IP65LIB) $(C64RRNETLIB) $(INCFILES) ../cfg/c64prg.cfg
|
%.prg: %.o $(IP65LIB) $(C64RRNETLIB) $(INCFILES) ../cfg/c64prg.cfg
|
||||||
$(LD) -m $*.map -vm -C ../cfg/c64prg.cfg -o $*.prg $(AFLAGS) $< $(IP65LIB) $(C64RRNETLIB)
|
$(LD) -o $*.prg -C ../cfg/c64prg.cfg -m $*.c64.map -vm $< $(IP65LIB) $(C64RRNETLIB)
|
||||||
|
|
||||||
|
%_tcp.prg: %.o $(IP65TCPLIB) $(C64RRNETLIB) $(INCFILES) ../cfg/c64prg.cfg
|
||||||
|
$(LD) -o $(subst _tcp,,$*).prg -C ../cfg/c64prg.cfg -m $(subst _tcp,,$*).c64.map -vm $< $(IP65TCPLIB) $(C64RRNETLIB)
|
||||||
|
|
||||||
test_tcp.prg: test_tcp.o $(IP65TCPLIB) $(C64RRNETLIB) $(INCFILES) ../cfg/c64prg.cfg
|
%.bin: %.o $(IP65LIB) $(A2UTHERLIB) $(INCFILES) ../cfg/a2bin.cfg
|
||||||
$(LD) -m test_tcp.map -vm -C ../cfg/c64prg.cfg -o test_tcp.prg $(AFLAGS) $< $(IP65TCPLIB) $(C64RRNETLIB)
|
$(LD) -o $*.bin -C ../cfg/a2bin.cfg -m $*.a2.map -vm $< $(IP65LIB) $(A2UTHERLIB)
|
||||||
|
|
||||||
test_xmodem.o: test_xmodem.s ../ip65/xmodem.s
|
%_tcp.bin: %.o $(IP65TCPLIB) $(A2UTHERLIB) $(INCFILES) ../cfg/a2bin.cfg
|
||||||
$(AS) $(AFLAGS) $<
|
$(LD) -o $(subst _tcp,,$*).bin -C ../cfg/a2bin.cfg -m $(subst _tcp,,$*).a2.map -vm $< $(IP65TCPLIB) $(A2UTHERLIB)
|
||||||
|
|
||||||
test_xmodem.prg: test_xmodem.o $(IP65TCPLIB) $(C64RRNETLIB) $(INCFILES) ../cfg/c64prg.cfg
|
wiznet.prg: wiznet.o $(IP65WIZNETLIB) $(C64WIZNETLIB) $(INCFILES) ../cfg/c64prg.cfg
|
||||||
$(LD) -m test_xmodem.map -vm -C ../cfg/c64prg.cfg -o test_xmodem.prg $(AFLAGS) $< $(IP65TCPLIB) $(C64RRNETLIB)
|
$(LD) -o wiznet.prg -C ../cfg/c64prg.cfg -m wiznet.map -vm $< $(IP65WIZNETLIB) $(C64WIZNETLIB)
|
||||||
|
|
||||||
test_parser.prg: test_parser.o $(IP65TCPLIB) $(C64RRNETLIB) $(INCFILES) ../cfg/c64prg.cfg
|
vic20.prg: vic20.o $(IP65TCPLIB) $(VIC20RRNETLIB) $(INCFILES) ../cfg/vic20prg.cfg
|
||||||
$(LD) -m test_parser.map -vm -C ../cfg/c64prg.cfg -o test_parser.prg $(AFLAGS) $< $(IP65TCPLIB) $(C64RRNETLIB)
|
$(LD) -o vic20.prg -C ../cfg/vic20prg.cfg -m vic20.map -vm $< $(IP65TCPLIB) $(VIC20RRNETLIB)
|
||||||
|
|
||||||
|
lancegs.bin: lancegs.o $(IP65LIB) $(A2LANCEGSLIB) $(INCFILES) ../cfg/a2bin.cfg
|
||||||
|
$(LD) -o lancegs.bin -C ../cfg/a2bin.cfg -m lancegs.a2.map -vm $< $(IP65LIB) $(A2LANCEGSLIB)
|
||||||
|
|
||||||
test_get_url.prg: test_get_url.o $(IP65TCPLIB) $(C64RRNETLIB) $(INCFILES) ../cfg/c64prg.cfg
|
ip65.d64: prg
|
||||||
$(LD) -m test_get_url.map -vm -C ../cfg/c64prg.cfg -o test_get_url.prg $(AFLAGS) $< $(IP65TCPLIB) $(C64RRNETLIB)
|
$(C1541) -format ip65,00 d64 $@
|
||||||
|
$(C1541) -attach $@ -write dns.prg dns,p
|
||||||
|
$(C1541) -attach $@ -write dottedquad.prg dottedquad,p
|
||||||
|
$(C1541) -attach $@ -write geturl.prg geturl,p
|
||||||
|
$(C1541) -attach $@ -write parser.prg parser,p
|
||||||
|
$(C1541) -attach $@ -write ping.prg ping,p
|
||||||
|
$(C1541) -attach $@ -write sntp.prg sntp,p
|
||||||
|
$(C1541) -attach $@ -write tcp.prg tcp,p
|
||||||
|
$(C1541) -attach $@ -write tftp.prg tftp,p
|
||||||
|
|
||||||
|
ip65.dsk: bin
|
||||||
test_ping.prg: test_ping.o $(IP65TCPLIB) $(C64RRNETLIB) $(INCFILES) ../cfg/c64prg.cfg
|
cp prodos.dsk $@
|
||||||
$(LD) -m test_ping.map -vm -C ../cfg/c64prg.cfg -o test_ping.prg $(AFLAGS) $< $(IP65TCPLIB) $(C64RRNETLIB)
|
java -jar $(AC) -cc65 $@ dns bin 0 < dns.bin
|
||||||
|
java -jar $(AC) -cc65 $@ dottedquad bin 0 < dottedquad.bin
|
||||||
test_wiznet.prg: test_wiznet.o $(C64WIZNETLIB) $(IP65WIZNETLIB) $(INCFILES) ../cfg/c64prg.cfg
|
java -jar $(AC) -cc65 $@ tcp bin 0 < tcp.bin
|
||||||
$(LD) -m test_wiznet.map -vm -C ../cfg/c64prg.cfg -o test_wiznet.prg $(AFLAGS) $< $(IP65WIZNETLIB) $(C64WIZNETLIB)
|
java -jar $(AC) -cc65 $@ tftp bin 0 < tftp.bin
|
||||||
|
|
||||||
|
|
||||||
test_cifs.prg: test_cifs.o $(IP65TCPLIB) $(C64RRNETLIB) $(INCFILES) ../cfg/c64prg.cfg
|
|
||||||
$(LD) -m test_cifs.map -vm -C ../cfg/c64prg.cfg -o test_cifs.prg $(AFLAGS) $< $(IP65TCPLIB) $(C64RRNETLIB)
|
|
||||||
|
|
||||||
|
|
||||||
test_vic20.prg: test_vic20.o $(IP65TCPLIB) $(VIC20RRNETLIB) $(INCFILES) ../cfg/vic20prg.cfg
|
|
||||||
$(LD) -m test_vic20.map -vm -C ../cfg/vic20prg.cfg -o test_vic20.prg $(AFLAGS) $< $(IP65TCPLIB) $(VIC20RRNETLIB)
|
|
||||||
|
|
||||||
|
|
||||||
%.pg2: %.o $(IP65LIB) $(A2UTHERLIB) $(INCFILES) ../cfg/a2bin.cfg
|
|
||||||
$(LD) -C ../cfg/a2bin.cfg -o $*.pg2 $(AFLAGS) $< $(IP65LIB) $(A2UTHERLIB)
|
|
||||||
|
|
||||||
test_lancegs.pg2: test_lancegs.o $(IP65LIB) $(A2LANCEGSLIB) $(INCFILES) ../cfg/a2bin.cfg
|
|
||||||
$(LD) -C ../cfg/a2bin.cfg -o test_lancegs.pg2 $(AFLAGS) $< $(IP65LIB) $(A2LANCEGSLIB)
|
|
||||||
|
|
||||||
httpd_test.d64: test_httpd.prg index.html file1.html
|
|
||||||
cp test_httpd.prg autoexec.prg
|
|
||||||
ripxplore.rb --init CbmDos httpd_test.d64 -a autoexec.prg
|
|
||||||
ripxplore.rb httpd_test.d64 -a index.html -t C64Seq
|
|
||||||
ripxplore.rb httpd_test.d64 -a file1.html -t C64Seq
|
|
||||||
|
|
||||||
|
|
||||||
ip65test.dsk: testdns.pg2 testdottedquad.pg2 testtftp.pg2 #test_lancegs.pg2
|
|
||||||
|
|
||||||
# ripxplore.rb --init AppleDos ip65test.dsk -a test_lancegs.pg2 -t AppleBinary
|
|
||||||
ripxplore.rb --init BeautifulBoot ip65testb.dsk -a testtftp.pg2 -t AppleBinary
|
|
||||||
# ripxplore.rb ip65test.dsk -a testdottedquad.pg2 -t AppleBinary
|
|
||||||
# ripxplore.rb ip65test.dsk -a testdns.pg2 -t AppleBinary
|
|
||||||
|
|
||||||
|
|
||||||
test_disk_io.d64: test_disk_io.prg
|
|
||||||
|
|
||||||
ripxplore.rb --init CbmDos test_disk_io.d64 -a test_disk_io.prg
|
|
||||||
cp screen_prg.bin screen.prg
|
|
||||||
ripxplore.rb test_disk_io.d64 -a screen.prg
|
|
||||||
|
|
||||||
|
|
||||||
test_xmodem.d64: test_xmodem.prg
|
|
||||||
ripxplore.rb --init CbmDos test_xmodem.d64 -a test_xmodem.prg
|
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f *.o *.pg2 *.prg
|
rm -f *.o *.bin *.prg *.map
|
||||||
rm -f ip65test.dsk
|
rm -f ip65.d64 ip65.dsk
|
||||||
|
|
||||||
|
|
||||||
distclean: clean
|
distclean: clean
|
||||||
rm -f *~
|
rm -f *~
|
||||||
|
@ -42,6 +42,10 @@ basicstub:
|
|||||||
|
|
||||||
init:
|
init:
|
||||||
|
|
||||||
|
;switch to lower case charset
|
||||||
|
lda #23
|
||||||
|
sta $d018
|
||||||
|
|
||||||
jsr print_cr
|
jsr print_cr
|
||||||
jsr print_ip_config
|
jsr print_ip_config
|
||||||
init_ip_via_dhcp
|
init_ip_via_dhcp
|
@ -38,6 +38,10 @@ basicstub:
|
|||||||
|
|
||||||
init:
|
init:
|
||||||
|
|
||||||
|
;switch to lower case charset
|
||||||
|
lda #23
|
||||||
|
sta $d018
|
||||||
|
|
||||||
jsr print_cr
|
jsr print_cr
|
||||||
|
|
||||||
ldax #dotted_quad_1
|
ldax #dotted_quad_1
|
@ -54,7 +54,7 @@ init:
|
|||||||
jsr test_url_download
|
jsr test_url_download
|
||||||
|
|
||||||
ldax #url_2
|
ldax #url_2
|
||||||
jsr test_url_download
|
; jsr test_url_download
|
||||||
|
|
||||||
rts
|
rts
|
||||||
|
|
@ -37,6 +37,11 @@ basicstub:
|
|||||||
.code
|
.code
|
||||||
|
|
||||||
init:
|
init:
|
||||||
|
|
||||||
|
;switch to lower case charset
|
||||||
|
lda #23
|
||||||
|
sta $d018
|
||||||
|
|
||||||
jsr print_cr
|
jsr print_cr
|
||||||
init_ip_via_dhcp
|
init_ip_via_dhcp
|
||||||
jsr print_ip_config
|
jsr print_ip_config
|
@ -73,6 +73,9 @@ get_next_byte:
|
|||||||
|
|
||||||
init:
|
init:
|
||||||
|
|
||||||
|
;switch to lower case charset
|
||||||
|
lda #23
|
||||||
|
sta $d018
|
||||||
|
|
||||||
ldax #$1234
|
ldax #$1234
|
||||||
stax acc16
|
stax acc16
|
||||||
@ -84,7 +87,6 @@ init:
|
|||||||
ldax #$28
|
ldax #$28
|
||||||
jsr test_sub_16_16
|
jsr test_sub_16_16
|
||||||
|
|
||||||
rts
|
|
||||||
ldax #$ff34
|
ldax #$ff34
|
||||||
stax acc16
|
stax acc16
|
||||||
ldax #$1235
|
ldax #$1235
|
@ -45,6 +45,11 @@ basicstub:
|
|||||||
.code
|
.code
|
||||||
|
|
||||||
init:
|
init:
|
||||||
|
|
||||||
|
;switch to lower case charset
|
||||||
|
lda #23
|
||||||
|
sta $d018
|
||||||
|
|
||||||
jsr print_cr
|
jsr print_cr
|
||||||
init_ip_via_dhcp
|
init_ip_via_dhcp
|
||||||
jsr print_ip_config
|
jsr print_ip_config
|
Loading…
Reference in New Issue
Block a user