Skip to content

Commit

Permalink
unix: Rename unix binaries to micropython-variant (not _variant).
Browse files Browse the repository at this point in the history
For consistency with mpy-cross, and other unix tools in general.
  • Loading branch information
jimmo authored and dpgeorge committed Jan 11, 2020
1 parent 7319d54 commit 977b532
Show file tree
Hide file tree
Showing 9 changed files with 24 additions and 29 deletions.
32 changes: 16 additions & 16 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,13 +75,13 @@ jobs:
- make ${MAKEOPTS} -C ports/unix deplibs
- make ${MAKEOPTS} -C ports/unix VARIANT=coverage
# run the main test suite
- (cd tests && MICROPY_CPYTHON3=python3 MICROPY_MICROPYTHON=../ports/unix/micropython_coverage ./run-tests)
- (cd tests && MICROPY_CPYTHON3=python3 MICROPY_MICROPYTHON=../ports/unix/micropython_coverage ./run-tests -d thread)
- (cd tests && MICROPY_CPYTHON3=python3 MICROPY_MICROPYTHON=../ports/unix/micropython_coverage ./run-tests --emit native)
- (cd tests && MICROPY_CPYTHON3=python3 MICROPY_MICROPYTHON=../ports/unix/micropython_coverage ./run-tests --via-mpy -d basics float micropython)
- (cd tests && MICROPY_CPYTHON3=python3 MICROPY_MICROPYTHON=../ports/unix/micropython_coverage ./run-tests --via-mpy --emit native -d basics float micropython)
- (cd tests && MICROPY_CPYTHON3=python3 MICROPY_MICROPYTHON=../ports/unix/micropython-coverage ./run-tests)
- (cd tests && MICROPY_CPYTHON3=python3 MICROPY_MICROPYTHON=../ports/unix/micropython-coverage ./run-tests -d thread)
- (cd tests && MICROPY_CPYTHON3=python3 MICROPY_MICROPYTHON=../ports/unix/micropython-coverage ./run-tests --emit native)
- (cd tests && MICROPY_CPYTHON3=python3 MICROPY_MICROPYTHON=../ports/unix/micropython-coverage ./run-tests --via-mpy -d basics float micropython)
- (cd tests && MICROPY_CPYTHON3=python3 MICROPY_MICROPYTHON=../ports/unix/micropython-coverage ./run-tests --via-mpy --emit native -d basics float micropython)
# test when input script comes from stdin
- cat tests/basics/0prelim.py | ports/unix/micropython_coverage | grep -q 'abc'
- cat tests/basics/0prelim.py | ports/unix/micropython-coverage | grep -q 'abc'
# test building native mpy modules
- make -C examples/natmod/features1 ARCH=x64
- make -C examples/natmod/features2 ARCH=x64
Expand All @@ -92,7 +92,7 @@ jobs:
- make -C examples/natmod/ure ARCH=x64
- make -C examples/natmod/uzlib ARCH=x64
# test importing .mpy generated by mpy_ld.py
- MICROPYPATH=examples/natmod/features2 ./ports/unix/micropython_coverage -m features2
- MICROPYPATH=examples/natmod/features2 ./ports/unix/micropython-coverage -m features2
- (cd tests && ./run-natmodtests.py extmod/{btree*,framebuf*,uheapq*,ure*,uzlib*}.py)
# run coveralls coverage analysis (try to, even if some builds/tests failed)
- (cd ports/unix && coveralls --root ../.. --build-root . --gcov $(which gcov) --gcov-options '\-o build-coverage/' --include py --include extmod)
Expand All @@ -115,13 +115,13 @@ jobs:
- make ${MAKEOPTS} -C ports/unix MICROPY_FORCE_32BIT=1 deplibs
- make ${MAKEOPTS} -C ports/unix MICROPY_FORCE_32BIT=1 coverage
# run the main test suite
- (cd tests && MICROPY_CPYTHON3=python3 MICROPY_MICROPYTHON=../ports/unix/micropython_coverage ./run-tests)
- (cd tests && MICROPY_CPYTHON3=python3 MICROPY_MICROPYTHON=../ports/unix/micropython_coverage ./run-tests -d thread)
- (cd tests && MICROPY_CPYTHON3=python3 MICROPY_MICROPYTHON=../ports/unix/micropython_coverage ./run-tests --emit native)
- (cd tests && MICROPY_CPYTHON3=python3 MICROPY_MICROPYTHON=../ports/unix/micropython_coverage ./run-tests --via-mpy --mpy-cross-flags='-mcache-lookup-bc -march=x86' -d basics float micropython)
- (cd tests && MICROPY_CPYTHON3=python3 MICROPY_MICROPYTHON=../ports/unix/micropython_coverage ./run-tests --via-mpy --emit native --mpy-cross-flags='-mcache-lookup-bc -march=x86' -d basics float micropython)
- (cd tests && MICROPY_CPYTHON3=python3 MICROPY_MICROPYTHON=../ports/unix/micropython-coverage ./run-tests)
- (cd tests && MICROPY_CPYTHON3=python3 MICROPY_MICROPYTHON=../ports/unix/micropython-coverage ./run-tests -d thread)
- (cd tests && MICROPY_CPYTHON3=python3 MICROPY_MICROPYTHON=../ports/unix/micropython-coverage ./run-tests --emit native)
- (cd tests && MICROPY_CPYTHON3=python3 MICROPY_MICROPYTHON=../ports/unix/micropython-coverage ./run-tests --via-mpy --mpy-cross-flags='-mcache-lookup-bc -march=x86' -d basics float micropython)
- (cd tests && MICROPY_CPYTHON3=python3 MICROPY_MICROPYTHON=../ports/unix/micropython-coverage ./run-tests --via-mpy --emit native --mpy-cross-flags='-mcache-lookup-bc -march=x86' -d basics float micropython)
# test when input script comes from stdin
- cat tests/basics/0prelim.py | ports/unix/micropython_coverage | grep -q 'abc'
- cat tests/basics/0prelim.py | ports/unix/micropython-coverage | grep -q 'abc'
# test building native mpy modules
- make -C examples/natmod/features1 ARCH=x86
- make -C examples/natmod/features2 ARCH=x86
Expand All @@ -132,7 +132,7 @@ jobs:
- make -C examples/natmod/ure ARCH=x86
- make -C examples/natmod/uzlib ARCH=x86
# test importing .mpy generated by mpy_ld.py
- MICROPYPATH=examples/natmod/features2 ./ports/unix/micropython_coverage -m features2
- MICROPYPATH=examples/natmod/features2 ./ports/unix/micropython-coverage -m features2
- (cd tests && ./run-natmodtests.py --arch x86 extmod/{btree*,framebuf*,uheapq*,ure*,uzlib*}.py)
after_failure:
- (cd tests && for exp in *.exp; do testbase=$(basename $exp .exp); echo -e "\nFAILURE $testbase"; diff -u $testbase.exp $testbase.out; done)
Expand All @@ -158,7 +158,7 @@ jobs:
- make ${MAKEOPTS} -C ports/unix submodules
- make ${MAKEOPTS} -C ports/unix PYTHON=python2 deplibs
- make ${MAKEOPTS} -C ports/unix PYTHON=python2 VARIANT=nanbox
- (cd tests && MICROPY_CPYTHON3=python3 MICROPY_MICROPYTHON=../ports/unix/micropython_nanbox ./run-tests)
- (cd tests && MICROPY_CPYTHON3=python3 MICROPY_MICROPYTHON=../ports/unix/micropython-nanbox ./run-tests)

# unix stackless
- stage: test
Expand Down Expand Up @@ -187,7 +187,7 @@ jobs:
env: NAME="minimal unix port build and tests"
script:
- make ${MAKEOPTS} -C ports/unix minimal
- (cd tests && MICROPY_CPYTHON3=python3 MICROPY_MICROPYTHON=../ports/unix/micropython_minimal ./run-tests -e exception_chain -e self_type_check -e subclass_native_init -d basics)
- (cd tests && MICROPY_CPYTHON3=python3 MICROPY_MICROPYTHON=../ports/unix/micropython-minimal ./run-tests -e exception_chain -e self_type_check -e subclass_native_init -d basics)

# windows port via mingw
- stage: test
Expand Down
7 changes: 1 addition & 6 deletions ports/unix/.gitignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
micropython
micropython_dev
micropython_fast
micropython_minimal
micropython_coverage
micropython_nanbox
micropython_freedos*
micropython-*
*.py
*.gcov
2 changes: 1 addition & 1 deletion ports/unix/variants/coverage/mpconfigvariant.mk
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
PROG ?= micropython_coverage
PROG ?= micropython-coverage

COPT = -O0

Expand Down
2 changes: 1 addition & 1 deletion ports/unix/variants/dev/mpconfigvariant.mk
Original file line number Diff line number Diff line change
@@ -1 +1 @@
PROG ?= micropython_dev
PROG ?= micropython-dev
2 changes: 1 addition & 1 deletion ports/unix/variants/fast/mpconfigvariant.mk
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

COPT = "-O2 -DNDEBUG -fno-crossjumping"

PROG = micropython_fast
PROG = micropython-fast

FROZEN_MANIFEST =
2 changes: 1 addition & 1 deletion ports/unix/variants/freedos/mpconfigvariant.mk
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ CFLAGS_EXTRA = \
-DMICROPY_EMIT_X86=0 \
-DMICROPY_NO_ALLOCA=1 \

PROG = micropython_freedos
PROG = micropython-freedos

MICROPY_PY_SOCKET = 0
MICROPY_PY_FFI = 0
Expand Down
2 changes: 1 addition & 1 deletion ports/unix/variants/minimal/mpconfigvariant.mk
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# build a minimal interpreter
COPT = -Os -DNDEBUG

PROG = micropython_minimal
PROG = micropython-minimal

FROZEN_MANIFEST =

Expand Down
2 changes: 1 addition & 1 deletion ports/unix/variants/nanbox/mpconfigvariant.mk
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# build interpreter with nan-boxing as object model (object repr D)
PROG = micropython_nanbox
PROG = micropython-nanbox

MICROPY_FORCE_32BIT = 1
2 changes: 1 addition & 1 deletion tests/run-natmodtests.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

# Paths for host executables
CPYTHON3 = os.getenv('MICROPY_CPYTHON3', 'python3')
MICROPYTHON = os.getenv('MICROPY_MICROPYTHON', '../ports/unix/micropython_coverage')
MICROPYTHON = os.getenv('MICROPY_MICROPYTHON', '../ports/unix/micropython-coverage')

NATMOD_EXAMPLE_DIR = '../examples/natmod/'

Expand Down

0 comments on commit 977b532

Please sign in to comment.