commit 05872eb

Devine Lu Linvega  ·  2025-08-21 02:55:04 +0000 UTC
parent 747aae8
Improved tests
3 files changed,  +18, -9
+2, -2
 1@@ -70,8 +70,8 @@
 2 (
 3 @|Data )
 4 
 5-@dict/failed "Failed. 0a $1
 6-	&passed "Passed. 0a $1
 7+@dict/failed "File: 20 "fail 0a $1
 8+	&passed "File: 20 "pass 0a $1
 9 
10 @file/data &a1 1234 &b1 5678
11 	( load buf ) &load-buf &a2 $2 &b2 $2
R etc/tests/system_exp.tal => etc/examples/system.tal
+2, -1
 1@@ -1,3 +1,5 @@
 2+( uxncli system.rom )
 3+
 4 |00 @System &vector $2 &expansion $2 &wst $1 &rst $1 &metadata $2 &r $2 &g $2 &b $2 &debug $1 &state $1
 5 |100
 6 
 7@@ -62,6 +64,5 @@
 8 @mmu-fill [ 00 000d 0000 &a $2 2d ]
 9 @mmu-cpyl [ 01 0007 0000 &a $2 0000 &b $2 ]
10 @mmu-cpyr [ 02 0007 0000 &a $2 0000 &b $2 ]
11-
12 @mmu-over [ 00 0002 0000 ffff 88 ]
13 
+14, -6
 1@@ -18,6 +18,9 @@ gui: bin/uxncli bin/uxn11 bin/uxn11-debug bin/screen.rom
 2 	bin/uxn11-debug -v
 3 	bin/uxn11-debug bin/screen.rom
 4 
 5+system: bin/uxncli-debug bin/system.rom
 6+	@ bin/uxncli-debug bin/system.rom
 7+
 8 mouse: bin/uxn11-debug bin/mouse.rom
 9 	@ bin/uxn11-debug bin/mouse.rom
10 
11@@ -28,9 +31,10 @@ file: bin/uxncli-debug bin/file.rom
12 	@ bin/uxncli-debug bin/file.rom
13 
14 test: bin/uxncli-debug bin/uxn11-debug tests
15-	bin/uxncli-debug bin/test_opcodes.rom
16-	bin/uxncli-debug bin/test_system_exp.rom
17-	bin/uxn11-debug bin/test_opcodes.rom
18+	@ bin/uxncli-debug bin/test_opcodes.rom
19+	@ bin/uxncli-debug bin/system.rom
20+	@ bin/uxncli-debug bin/file.rom
21+	@ bin/uxn11-debug bin/test_opcodes.rom
22 
23 format:
24 	@ clang-format -i src/uxncli.c src/uxn11.c
25@@ -43,6 +47,9 @@ archive:
26 	cp src/uxncli.c ../oscean/etc/uxncli.c.txt
27 	cp src/uxn11.c ../oscean/etc/uxn11.c.txt
28 	cp doc/man/uxntal.7 ../oscean/etc/uxntal.7.txt
29+	cp etc/examples/controller.tal ../oscean/etc/varvara.controller.test.tal.txt
30+	cp etc/examples/console.tal ../oscean/etc/varvara.console.test.tal.txt
31+	cp etc/examples/file.tal ../oscean/etc/varvara.file.test.tal.txt
32 
33 clean:
34 	@ rm -fr bin
35@@ -74,14 +81,15 @@ bin/uxn11-debug: src/uxn11.c
36 
37 # Tests
38 
39-tests: bin/test_opcodes.rom bin/test_system_exp.rom bin/uxncli bin/drifblim.rom
40+tests: bin/test_opcodes.rom bin/system.rom bin/uxncli bin/drifblim.rom
41 bin/test_opcodes.rom: etc/tests/opctest.tal
42 	@ bin/uxncli bin/drifblim.rom etc/tests/opctest.tal bin/test_opcodes.rom
43-bin/test_system_exp.rom: etc/tests/system_exp.tal
44-	@ bin/uxncli bin/drifblim.rom etc/tests/system_exp.tal bin/test_system_exp.rom
45 
46 # Devices
47 
48+bin/system.rom: bin/uxncli bin/drifblim.rom etc/examples/system.tal
49+	@ bin/uxncli bin/drifblim.rom etc/examples/system.tal bin/system.rom
50+
51 bin/mouse.rom: bin/uxncli bin/drifblim.rom etc/examples/mouse.tal
52 	@ bin/uxncli bin/drifblim.rom etc/examples/mouse.tal bin/mouse.rom
53