summaryrefslogtreecommitdiff
path: root/test/test_v1.py
blob: b84feb2ebe68e5666247c6bb6dd4ba9dd94deddb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
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")