Skip to content

Instantly share code, notes, and snippets.

@sommersoft
Last active June 11, 2019 04:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sommersoft/cc34a28d89fc10f263a7a23c3574535d to your computer and use it in GitHub Desktop.
Save sommersoft/cc34a28d89fc10f263a7a23c3574535d to your computer and use it in GitHub Desktop.
RosiePi is now getting down to business...
Now running output and input tests through the raw repl!
========================= RosiePi ==========================
Initiating rosiepi...
------------------------------------------------------------
- Date/Time: 10-Jun-2019,23:39:25
- Test commit: cfe24b85322a029758c3376eed2726657397bf33
- Test board: metro_m4_express
============================================================
Connecting to: metro_m4_express
------------------------------------------------------------
Connected!
Board info:
- Serial Number: 87AA108115E47535020202D4736380FF
- Disk Drive: /media/sommersoft/CIRCUITPY
============================================================
Preparing Firmware...
------------------------------------------------------------
Fetching cfe24b85322a029758c3376eed2726657397bf33...
Checking out cfe24b85322a029758c3376eed2726657397bf33...
Updating submodules...
Building firmware...
- 239832 bytes free in flash out of 499712 bytes ( 488.0 kb ).
- 178892 bytes free in ram for stack out of 196608 bytes ( 192.0 kb ).
- Wrote 520192 bytes to /home/sommersoft/Dev/rosie_pi/RosiePi/rosiepi/.fw_builds/cfe24/metro_m4_express/firmware.uf2.
============================================================
Updating Firmware on: metro_m4_express
Resetting into bootloader mode...
In bootloader mode. Current bootloader: UF2 Bootloader v2.0.0-adafruit.5 SFHWRO
Uploading firmware...
Waiting for board to reload...
Firmware upload successful!
============================================================
Gathering tests to run...
{4: {'action': 'output', 'value': 'microcontroller.pin.D0'}}
{4: {'action': 'output', 'value': 'Hello World'}, 7: {'action': 'input', 'value': '16'},
10: {'action': 'output', 'value': '16'}, 13: {'action': 'verify', 'value': 'foo.bar'}}
These following tests will be run:
- board_test.py, rosie_test.py
============================================================
Starting test: board_test.py
running line: (1) import board
running line: (3) #$ output=microcontroller.pin.D0
running line: (4) print(board.D0)
ACTION: output; VALUE: microcontroller.pin.D0
- Testing for output of 'microcontroller.pin.D0'
- Result: 'microcontroller.pin.D0'
repl log:
b'\x01Auto-reload is on. Simply save files over USB to run them or enter REPL to disable.\r\n\n
Press any key to enter the REPL. Use CTRL-D to reload.\r\nAdafruit CircuitPython 4.0.1-6-gcfe24b853
on 2019-06-10; Adafruit Metro M4 Express with samd51j19\r\n>\x01\x04>> \r\nraw REPL; CTRL-B to exit
\r\n>OK\r\nsoft reboot\r\n\nAuto-reload is on. Simply save files over USB to run them or enter REPL
to disable.\r\n\n\n\nPress any key to enter the REPL. Use CTRL-D to reload.\x01raw REPL; CTRL-B to
exit\r\n>import board\n\x04OK\x04\x04>\x01raw REPL; CTRL-B to exit\r\n>#$ output=microcontroller.
pin.D0\n\x04OK\x04\x04print(board.D0)\n\x04>OKmicrocontroller.pin.D0\r\n\x04\x04'
------------------------------------------------------------
Starting test: rosie_test.py
running line: (1) import board
running line: (3) #$ output=Hello World
running line: (4) print("Hello World")
ACTION: output; VALUE: Hello World
- Testing for output of 'Hello World'
- Result: 'Hello World'
running line: (6) #$ input=16
running line: (7) result = input()
ACTION: input; VALUE: 16
- Testing for input of '16'
running line: (9) #$ output=16
running line: (10) print(result)
ACTION: output; VALUE: 16
- Testing for output of '16'
- Result: '16'
running line: (12) #$ verify=foo.bar
running line: (13) #selector = foo.bar("baz")
ACTION: verify; VALUE: foo.bar
- Verifying with foo.bar
- Result: todo
repl log:
b'\r\x03\x03\r\x02\r\n\r\nAdafruit CircuitPython 4.0.1-6-gcfe24b853 on 2019-06-10; Adafruit Metro
M4 Express with samd51j19\r\n>>> \x01\r\nraw REPL; CTRL-B to exit\r\n>\x01\x04raw REPL; CTRL-B to
exit\r\n>OK\r\nsoft reboot\r\n\nAuto-reload is on. Simply save files over USB to run them or enter
REPL to disable.\r\n\n\n\nPress any key to enter the REPL. Use CTRL-D to reload.\x01raw REPL; CTRL
-B to exit\r\n>import board\n\x04OK\x04\x04>\x01raw REPL; CTRL-B to exit\r\n>#$ output=Hello World
\n\x04OK\x04\x04print("Hello World")\n\x04>OKHello World\r\n\x04\x04>\x01raw REPL; CTRL-B to exit\
r\n>#$ input=16\n\x04OK\x04\x04result = input()\n\x04>OK16\r\n16\r\n\x04\x04>\x01raw REPL; CTRL-B
to exit\r\n>#$ output=16\n\x04OK\x04\x04print(result)\n\x04>OK16\r\n\x04\x04>\x01raw REPL; CTRL-B
to exit\r\n>#$ verify=foo.bar\n\x04OK\x04\x04'
------------------------------------------------------------
Ran 2 of 2 tests.
- Passed: 2
- Failed: 0
============================================================
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment