diff options
| author | Damien George <damien@micropython.org> | 2022-02-21 10:36:04 +1100 |
|---|---|---|
| committer | Damien George <damien@micropython.org> | 2022-02-24 18:29:02 +1100 |
| commit | 414b59d39c9f37c0da5ee00d270aa630c392c2fd (patch) | |
| tree | 6bd79417b50750f4d2666b427f19434389526f2f /tests | |
| parent | 0a2895b0998bc7ab66b8339acf64fda0339d1e53 (diff) | |
qemu-arm: Add tests for freezing viper and asm_thumb code.
Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/qemu-arm/asm_test.py | 7 | ||||
| -rw-r--r-- | tests/qemu-arm/asm_test.py.exp | 5 | ||||
| -rw-r--r-- | tests/qemu-arm/viper_test.py | 3 | ||||
| -rw-r--r-- | tests/qemu-arm/viper_test.py.exp | 1 |
4 files changed, 16 insertions, 0 deletions
diff --git a/tests/qemu-arm/asm_test.py b/tests/qemu-arm/asm_test.py new file mode 100644 index 000000000..26c7efe42 --- /dev/null +++ b/tests/qemu-arm/asm_test.py @@ -0,0 +1,7 @@ +import frozen_asm + +print(frozen_asm.asm_add(1, 2)) +print(frozen_asm.asm_add1(3)) +print(frozen_asm.asm_cast_bool(0), frozen_asm.asm_cast_bool(3)) +print(frozen_asm.asm_shift_int(4)) +print(frozen_asm.asm_shift_uint(4)) diff --git a/tests/qemu-arm/asm_test.py.exp b/tests/qemu-arm/asm_test.py.exp new file mode 100644 index 000000000..b4be8b40e --- /dev/null +++ b/tests/qemu-arm/asm_test.py.exp @@ -0,0 +1,5 @@ +3 +4 +False True +-2147483648 +2147483648 diff --git a/tests/qemu-arm/viper_test.py b/tests/qemu-arm/viper_test.py new file mode 100644 index 000000000..8e38a2b92 --- /dev/null +++ b/tests/qemu-arm/viper_test.py @@ -0,0 +1,3 @@ +import frozen_viper + +frozen_viper.viper_add(1, 2) diff --git a/tests/qemu-arm/viper_test.py.exp b/tests/qemu-arm/viper_test.py.exp new file mode 100644 index 000000000..00750edc0 --- /dev/null +++ b/tests/qemu-arm/viper_test.py.exp @@ -0,0 +1 @@ +3 |
