summaryrefslogtreecommitdiffstatshomepage
path: root/tests
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2015-08-30 11:36:42 +0300
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2015-08-30 11:36:42 +0300
commita3fe30740035ef78d1107b6d55d1092b9502873d (patch)
tree9cbe5132df48a68697b2fb143ca6c806fa6248a1 /tests
parent1a1b48e51a49bfcd2e16ed5d764567bb2e5aa753 (diff)
downloadmicropython-a3fe30740035ef78d1107b6d55d1092b9502873d.tar.gz
micropython-a3fe30740035ef78d1107b6d55d1092b9502873d.zip
tests: Consolidate all feature check snippets under feature_check/.
Diffstat (limited to 'tests')
-rw-r--r--tests/feature_check/byteorder.py (renamed from tests/byteorder.py)0
-rw-r--r--tests/feature_check/byteorder.py.exp (renamed from tests/micropython/native_check.py.exp)0
-rw-r--r--tests/feature_check/native_check.py (renamed from tests/micropython/native_check.py)0
-rw-r--r--tests/feature_check/native_check.py.exp0
-rw-r--r--tests/feature_check/repl_emacs_check.py (renamed from tests/cmdline/repl_emacs_check.py)0
-rw-r--r--tests/feature_check/repl_emacs_check.py.exp (renamed from tests/cmdline/repl_emacs_check.py.exp)0
-rwxr-xr-xtests/run-tests13
7 files changed, 6 insertions, 7 deletions
diff --git a/tests/byteorder.py b/tests/feature_check/byteorder.py
index d60f939568..d60f939568 100644
--- a/tests/byteorder.py
+++ b/tests/feature_check/byteorder.py
diff --git a/tests/micropython/native_check.py.exp b/tests/feature_check/byteorder.py.exp
index e69de29bb2..e69de29bb2 100644
--- a/tests/micropython/native_check.py.exp
+++ b/tests/feature_check/byteorder.py.exp
diff --git a/tests/micropython/native_check.py b/tests/feature_check/native_check.py
index 3971d1355f..3971d1355f 100644
--- a/tests/micropython/native_check.py
+++ b/tests/feature_check/native_check.py
diff --git a/tests/feature_check/native_check.py.exp b/tests/feature_check/native_check.py.exp
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/tests/feature_check/native_check.py.exp
diff --git a/tests/cmdline/repl_emacs_check.py b/tests/feature_check/repl_emacs_check.py
index 3209716229..3209716229 100644
--- a/tests/cmdline/repl_emacs_check.py
+++ b/tests/feature_check/repl_emacs_check.py
diff --git a/tests/cmdline/repl_emacs_check.py.exp b/tests/feature_check/repl_emacs_check.py.exp
index d3834429bd..d3834429bd 100644
--- a/tests/cmdline/repl_emacs_check.py.exp
+++ b/tests/feature_check/repl_emacs_check.py.exp
diff --git a/tests/run-tests b/tests/run-tests
index 490475202d..04305e4c68 100755
--- a/tests/run-tests
+++ b/tests/run-tests
@@ -29,7 +29,7 @@ def rm_f(fname):
def run_micropython(pyb, args, test_file):
if pyb is None:
# run on PC
- if test_file.startswith('cmdline/') or test_file == 'micropython/meminfo.py':
+ if test_file.startswith(('cmdline/', 'feature_check/')) or test_file == 'micropython/meminfo.py':
# special handling for tests of the unix cmdline program
# check for any cmdline options needed for this test
@@ -42,7 +42,7 @@ def run_micropython(pyb, args, test_file):
# run the test, possibly with redirected input
try:
- if test_file.startswith('cmdline/repl_'):
+ if 'repl_' in test_file:
# Need to use a PTY to test command line editing
try:
import pty
@@ -164,18 +164,17 @@ def run_tests(pyb, tests, args):
skip_native = False
# Check if micropython.native is supported, and skip such tests if it's not
- native = run_micropython(pyb, args, 'micropython/native_check.py')
+ native = run_micropython(pyb, args, 'feature_check/native_check.py')
if native == b'CRASH':
skip_native = True
# Check if emacs repl is supported, and skip such tests if it's not
- t = run_micropython(pyb, args, 'cmdline/repl_emacs_check.py')
+ t = run_micropython(pyb, args, 'feature_check/repl_emacs_check.py')
if not 'True' in str(t, 'ascii'):
- skip_tests.add('cmdline/repl_emacs_check.py')
skip_tests.add('cmdline/repl_emacs_keys.py')
- upy_byteorder = run_micropython(pyb, args, 'byteorder.py')
- cpy_byteorder = subprocess.check_output([CPYTHON3, 'byteorder.py'])
+ upy_byteorder = run_micropython(pyb, args, 'feature_check/byteorder.py')
+ cpy_byteorder = subprocess.check_output([CPYTHON3, 'feature_check/byteorder.py'])
skip_endian = (upy_byteorder != cpy_byteorder)
# Some tests shouldn't be run under Travis CI