summaryrefslogtreecommitdiff
path: root/test/test_v1.py
diff options
context:
space:
mode:
authorPaul Oliver <contact@pauloliver.dev>2026-07-14 17:29:02 +0200
committerPaul Oliver <contact@pauloliver.dev>2026-08-30 16:24:48 +0200
commit1961b4b237083f4cfac9ca6b249c1d6cb665d149 (patch)
treefd9fc8260360e2ac30be9747ca558bcfc824a4c4 /test/test_v1.py
Initial (refactor)HEADmaster
Diffstat (limited to 'test/test_v1.py')
-rw-r--r--test/test_v1.py51
1 files changed, 51 insertions, 0 deletions
diff --git a/test/test_v1.py b/test/test_v1.py
new file mode 100644
index 0000000..b84feb2
--- /dev/null
+++ b/test/test_v1.py
@@ -0,0 +1,51 @@
+# file : test/test_v1.py
+# project : Salis-VM
+# author : Paul Oliver <contact@pauloliver.dev>
+
+# index:
+# [section] tests
+
+from test_general import SalisTest
+
+class TestV1(SalisTest):
+ SIM_OPTS = {
+ "anc_path": "test/anc",
+ "ui_path": "test/ui/v1",
+ "vm_arch": "v1",
+ }
+
+ # --------------------------------------------------------------------------
+ # [section] tests
+ # --------------------------------------------------------------------------
+ def test_noops(self):
+ self.run_ui_test(**self.SIM_OPTS, anc="noops", ui="noops")
+
+ def test_jumps(self):
+ self.run_ui_test(**self.SIM_OPTS, anc="jumps", ui="jumps")
+
+ def test_addrs(self):
+ self.run_ui_test(**self.SIM_OPTS, anc="addrs", ui="addrs")
+
+ def test_ifnzs(self):
+ self.run_ui_test(**self.SIM_OPTS, anc="ifnzs", ui="ifnzs")
+
+ def test_allos(self):
+ self.run_ui_test(**self.SIM_OPTS, anc="allos", ui="allos")
+
+ def test_mbops(self):
+ self.run_ui_test(**self.SIM_OPTS, anc="mbops", ui="mbops")
+
+ def test_3rops(self):
+ self.run_ui_test(**self.SIM_OPTS, anc="3rops", ui="3rops")
+
+ def test_1rops(self):
+ self.run_ui_test(**self.SIM_OPTS, anc="1rops", ui="1rops")
+
+ def test_stack(self):
+ self.run_ui_test(**self.SIM_OPTS, anc="stack", ui="stack")
+
+ def test_ioops(self):
+ self.run_ui_test(**self.SIM_OPTS, anc="ioops", ui="ioops")
+
+ def test_2rops(self):
+ self.run_ui_test(**self.SIM_OPTS, anc="2rops", ui="2rops")