aboutsummaryrefslogtreecommitdiff
path: root/tests/micropython
diff options
context:
space:
mode:
authorDamien George2014-10-05 22:27:12 +0100
committerDamien George2014-10-05 22:27:12 +0100
commit5a04e2cca8255c2d4a1218d6ac0b38e67306206b (patch)
treeb70ec6a20f17b7282828268725eb4faf915493e6 /tests/micropython
parent854c8c015303d709d3b33f5897dbeff0c10bee9d (diff)
tests: Add check for micropython.native and then skip relevant tests.
If micropython.native decorator doesn't compile, then we skill all native/viper tests. This patch also re-enables the ujson_loads test on NT. Addresses issue #861, and partially addresses issue #856.
Diffstat (limited to 'tests/micropython')
-rw-r--r--tests/micropython/native_check.py4
-rw-r--r--tests/micropython/native_check.py.exp0
-rw-r--r--tests/micropython/native_misc.py (renamed from tests/micropython/native.py)0
-rw-r--r--tests/micropython/native_misc.py.exp (renamed from tests/micropython/native.py.exp)0
-rw-r--r--tests/micropython/viper_misc.py (renamed from tests/micropython/viper.py)0
-rw-r--r--tests/micropython/viper_misc.py.exp (renamed from tests/micropython/viper.py.exp)0
6 files changed, 4 insertions, 0 deletions
diff --git a/tests/micropython/native_check.py b/tests/micropython/native_check.py
new file mode 100644
index 000000000..3971d1355
--- /dev/null
+++ b/tests/micropython/native_check.py
@@ -0,0 +1,4 @@
+# this test for the availability of native emitter
+@micropython.native
+def f():
+ pass
diff --git a/tests/micropython/native_check.py.exp b/tests/micropython/native_check.py.exp
new file mode 100644
index 000000000..e69de29bb
--- /dev/null
+++ b/tests/micropython/native_check.py.exp
diff --git a/tests/micropython/native.py b/tests/micropython/native_misc.py
index 8f087c494..8f087c494 100644
--- a/tests/micropython/native.py
+++ b/tests/micropython/native_misc.py
diff --git a/tests/micropython/native.py.exp b/tests/micropython/native_misc.py.exp
index e1413fd79..e1413fd79 100644
--- a/tests/micropython/native.py.exp
+++ b/tests/micropython/native_misc.py.exp
diff --git a/tests/micropython/viper.py b/tests/micropython/viper_misc.py
index 7e6ed67d4..7e6ed67d4 100644
--- a/tests/micropython/viper.py
+++ b/tests/micropython/viper_misc.py
diff --git a/tests/micropython/viper.py.exp b/tests/micropython/viper_misc.py.exp
index 2ea26ce99..2ea26ce99 100644
--- a/tests/micropython/viper.py.exp
+++ b/tests/micropython/viper_misc.py.exp