Skip to content

Add a "posix port" #9581

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 58 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
58 commits
Select commit Hold shift + click to select a range
a17d2ac
WIP
jepler Jan 16, 2024
c564117
posix: implement CIRCUITPY & ctrl-backslash to quit
jepler Jan 27, 2024
a47d7d8
split circuitpy_init() && circuitpy_main()
jepler Jan 27, 2024
74f6884
WIP
jepler Jan 29, 2024
23f7fe6
WIP
jepler Feb 8, 2024
5761e87
WIP
jepler Feb 8, 2024
af8126b
WIP
jepler Feb 8, 2024
a8979a5
more makefile tweaking
jepler Feb 8, 2024
c40fb68
posix port: Enable synthio.
jepler Feb 9, 2024
57cfadb
Fix build bugs exposed by posix port
jepler Feb 9, 2024
6d2505a
WIP enable more things
jepler Feb 9, 2024
e6aac40
Use MICROPY_FLOAT_CONST
jepler Feb 9, 2024
efcad64
Excuse float comparisons in this file
jepler Feb 9, 2024
e3ed035
Only print a few digits in the synth block tests
jepler Feb 10, 2024
281cf27
posix: improve stack limit finding
jepler Feb 10, 2024
0d8dfee
Enhance 'make test...' targets
jepler Feb 10, 2024
ec857df
posix: implement ticks & time; fix timekeeping
jepler Feb 11, 2024
aae0e02
posix: use the same obj repr as unix port
jepler Feb 11, 2024
9fca5e0
random: fix getrandbits(0)
jepler Feb 11, 2024
d279866
fix asyncio test to use adafruit_ticks unconditionally
jepler Feb 11, 2024
9e8c081
improve 'make test-whatever'
jepler Feb 11, 2024
f80e29e
change how to switch to adafruit ticks in asyncio
jepler Feb 11, 2024
4d61ed5
Make a couple more asyncio tests pass
jepler Feb 12, 2024
9e63f0f
arrange to skip this test in the posix build
jepler Feb 12, 2024
e925836
python and circuitpython might sort dicts different
jepler Feb 12, 2024
00cea1e
fix atexit support in posix port
jepler Feb 12, 2024
b222dd2
fix cmd_showbc test
jepler Apr 6, 2024
99fc152
fix more tests that checked the "max new split" string
jepler Apr 6, 2024
ac2d8ac
Fix test emg_exc
jepler Apr 6, 2024
0cb5b3b
Fix random_seed_default test
jepler Apr 6, 2024
511b505
fix interleaved output from --print-failures
jepler Apr 6, 2024
68e69bc
fix os_urandom in posix port
jepler Apr 6, 2024
8ab2f33
remove framebuf tests
jepler Apr 6, 2024
71206b7
remove uctypes tests
jepler Apr 6, 2024
0d882a8
remove micropython ssl tests
jepler Apr 6, 2024
f68206f
Fix stack limits
jepler Apr 6, 2024
be6bd53
fix test verbose printing
jepler Apr 6, 2024
f25e3c8
Fix synth tests by setting posix port precision back to double
jepler Apr 6, 2024
4c868cc
remove viper tests
jepler Apr 6, 2024
1851543
remove native tests
jepler Apr 6, 2024
0c6efc0
time: allow times from 1970 to 2038 in time.mktime.
jepler Jul 30, 2024
b541b93
posix: add RTC module
jepler Jul 30, 2024
fbdca92
update our math module from modmath
jepler Jul 30, 2024
ce92c0f
update version regular expression for cmdline tests
jepler Jul 30, 2024
96d03f3
fix "make vtest"
jepler Jul 30, 2024
c0d35e9
Define a modest stacksize so that stress/qstr_limit can succeed
jepler Jul 30, 2024
3b497ac
re-add deleted feature-check exp file
jepler Jul 30, 2024
92be08c
revise stack size handling again
jepler Jul 30, 2024
586a355
fix a buffer size so a stress test passes
jepler Jul 30, 2024
b526512
this test will not work in circuitpython
jepler Jul 30, 2024
cb175d7
fix builtin_ext test by labeling these "extensible" modules
jepler Jul 30, 2024
b50a316
we don't have a micropython-like mod os, remove the test
jepler Jul 30, 2024
2f46c18
update msgpack test
jepler Jul 30, 2024
1f33a32
Make getenv test work on posix
jepler Jul 30, 2024
0e308c0
set synthio channel count to match unix build
jepler Aug 30, 2024
3944e48
make time zone test pass by setting consistent time zone
jepler Aug 30, 2024
1a8f330
Add gifio, qrio to posix build
jepler Aug 30, 2024
8c57e01
run posix tests rather than unix tests
jepler Aug 30, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 3 additions & 22 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
env:
CP_VERSION: ${{ inputs.cp-version }}
MICROPY_CPYTHON3: python3.8
MICROPY_MICROPYTHON: ../ports/unix/build-coverage/micropython
MICROPY_MICROPYTHON: ../ports/posix/circuitpython
TEST_all:
TEST_mpy: --via-mpy -d basics float micropython
TEST_native: --emit native
Expand All @@ -44,24 +44,5 @@ jobs:
uses: ./.github/actions/mpy_cross
with:
cp-version: ${{ inputs.cp-version }}
- name: Build unix port
run: make -C ports/unix VARIANT=coverage -j4
- name: Run tests
run: ./run-tests.py -j4 ${{ env[format('TEST_{0}', matrix.test)] }}
working-directory: tests
- name: Print failure info
run: ./run-tests.py -j4 --print-failures
if: failure()
working-directory: tests
- name: Build native modules
if: matrix.test == 'all'
run: |
make -C examples/natmod/features1
make -C examples/natmod/features2
make -C examples/natmod/heapq
make -C examples/natmod/random
make -C examples/natmod/re
- name: Test native modules
if: matrix.test == 'all'
run: ./run-natmodtests.py extmod/{heapq*,re*,zlib*}.py
working-directory: tests
- name: Build & test POSIX port
run: make -C ports/posix -j$(nproc) vtest
Loading