bunnie
6f1597b1e7
make "fountain" test optionally terminate
...
any characters typed as an argument after "fountain" will cause
it to terminate in 10 iterations
2022-05-13 14:50:29 +08:00
bunnie
b470588285
oops, fix a compile error. also try adding a flush()...this only made things worse??
2022-05-13 02:25:35 +08:00
bunnie
56f9c654c0
debugging of TcpStream Drop dropping too fast
...
so far only able to confirm the problem happens, no effective
fixes yet.
2022-05-13 02:19:10 +08:00
bunnie
fd500927d3
quit fountain generator if error is encountered
2022-05-11 22:20:15 +08:00
bunnie
ce116c2c0d
add "fountain" test to net suite
2022-05-11 21:24:04 +08:00
bunnie
9893e70759
fix warning
2022-05-06 13:45:22 +08:00
bunnie
71e41d4b0a
fix buffer length check computation
2022-05-06 13:45:22 +08:00
bunnie
33a3cfa7c2
fix typo
2022-04-25 18:34:31 +08:00
bunnie
a9b2dd535a
add a note to remind about the purpose of the unsub test command
2022-04-25 18:32:09 +08:00
bunnie
d23dbd1db8
add an explicit test of the unsub path
...
normally you would never use this, this would cause the
connection manager to muck up.
2022-04-25 18:30:43 +08:00
bunnie
2c3143f790
Merge branch 'main' into multi-text-modals
2022-04-22 15:54:18 +08:00
bunnie
bac6c25bfe
conversion toward standard testing method
2022-04-22 15:10:51 +08:00
bunnie
ee39b9643e
add a timeout for the network to disconnect before starting update
...
this is to avoid panics due to malformed "packets" being received
as the EC is updating and not working correctly.
2022-04-21 01:22:17 +08:00
bunnie
c85f853e08
clean up use statements
2022-04-17 23:03:31 +08:00
bunnie
2fbb522c06
modify the web server to use mpsc, multiple workers
...
This is basically the Rust example for the web server, with
some tweaks. Add a command to make the device buzz when
a particular URL is hit, and to wait before responding when
another one is hit.
2022-04-17 18:50:10 +08:00
bunnie
f2bd4a6193
fix listener address and also remove the forced timeout on read
2022-04-17 04:58:55 +08:00
bunnie
b3d83c8494
migrate to std::TcpListener in tests
2022-04-17 04:07:13 +08:00
Gianguido Sorà
63cbe0e26f
shellchat: style change in demo modals command
2022-04-13 15:52:14 +02:00
Gianguido Sorà
8375fdf801
shellchat: update demo modals command to new interface
2022-04-13 15:49:51 +02:00
bunnie
5d2c65cb6c
fix missing update to display in panic handler
2022-04-10 16:57:04 +08:00
Gianguido Sorà
8123393a7d
Merge branch 'main' into feature/multi-text-modals
2022-04-07 16:39:03 +02:00
bunnie
d49c35dc0c
verify that unmount callbacks are working
2022-04-07 17:58:37 +08:00
bunnie
6ac4ef292b
add basis mount/unmount to pddb shell commands, fix some UX formatting
2022-04-07 15:32:47 +08:00
Gianguido Sorà
ba347f6c79
add placeholders, current selection highlight
2022-04-05 16:18:43 +02:00
bunnie
067c603e03
strip out old UDP libraries, harmonize on just libstd UDP
2022-04-04 23:15:51 +08:00
bunnie
57339dfe2f
udp libstd passing inital tests
2022-04-04 22:37:01 +08:00
bunnie
b5a6c436c2
first draft at some basic libstd UDP mechanics
2022-04-04 04:49:17 +08:00
Gianguido Sorà
0b62a2657a
feature: generalization of modals.get_text()
...
Added a get_text_multi() method on modals which builds, shows and returns text taken from a modal view with a given amount of fields.
Calling get_text() is equal to a call to get_text_multi() with fields = 1.
2022-03-31 19:24:53 +02:00
Gianguido Sorà
83e61f5f1b
feat: add wiring for multiple TextEntryPayloads drawing
2022-03-31 17:54:22 +02:00
bunnie
d736d54cee
make pddbtest not part of the hw build but part of hosted mode by default
2022-03-29 16:49:18 +08:00
bunnie
d074de34d6
add seek tests
2022-03-29 04:40:51 +08:00
bunnie
5f6a21bff1
add some manual test cases that run in hosted mode for pddb
...
these are helpful for debugging "real" use cases, instead of
the synthetic CI benches that don't fully exercise the file-like
API.
2022-03-29 01:49:47 +08:00
bunnie
18c202dcee
start of testing code for the PDDB
2022-03-28 22:56:32 +08:00
bunnie
91ed8193a7
fix delete commands to sync and also make keyword ordering parallel
2022-03-28 03:37:04 +08:00
bunnie
18b7cf78df
add some pddb delete routines
2022-03-28 01:55:39 +08:00
bunnie
2340686e80
rate limit error messages
2022-03-27 16:45:00 +08:00
bunnie
107c63f7c2
update RTC functions to use libstd
2022-03-27 04:06:26 +08:00
bunnie
1617200cb6
remove the RTC "reach-around" cheat inside shellchat's test routine
...
The test routine for shellchat "cheats" and accesses the I2C block
to test the RTC during factory operations. This is not aesthetic
and is also potentially a security hole since we don't want less
trusted stuff willy-nilly playing with i2c.
Rewrite to
1) remove i2c references from shellchat
2) replace RTC calls with the newer non-dangerous llio calls that are
limited to read out the initialized time variables.
2022-03-27 02:56:41 +08:00
bunnie
df96ca1429
test for libstd Instant
2022-03-26 02:35:59 +08:00
bunnie
bfb8a17cd5
strip out legacy RTC calls in preparation for refactor
2022-03-24 02:19:26 +08:00
bunnie
140f07ddc8
latest revised test
2022-03-18 20:28:36 +08:00
bunnie
4463b909a1
initial cut at using libstd TcpStream for comms
2022-03-18 19:55:16 +08:00
bunnie
b246a369d4
lay in another layer of tts functionality
...
now shellchat can talk, and password entries are a thing.
next up: debug oom issues in STT when we start doing really big
strings.
2022-03-11 02:37:48 +08:00
bunnie
9116cb02b1
back-propagate pause->abort changes.
...
in many of the test routines what we really wanted was an
abort, not a pause.
2022-03-08 19:03:02 +08:00
bunnie
1d6fbbe5bb
add the basic text to speech infrastructure.
...
also creates a method for isolating incompatibly licensed repos
2022-03-08 03:08:12 +08:00
bunnie
985fcdf9da
a feature slipped in that i didn't mean to commit
2022-03-07 13:31:16 +08:00
bunnie
dd511432b4
fix dangling reference in AES ctr mode soft implementation
2022-03-07 13:28:10 +08:00
bunnie
271fd4d559
make the UDP socket specifiable on command line
...
this makes the bindings work on things other than localhost
2022-02-21 01:26:04 +08:00
bunnie
760957154e
add a crappy but slightly more accurate approximation of UDP to hosted mode
...
It's crappy because it uses a busy wait loop to poll the udp
rx socket in order to accurately emulate the Xous async callback
feature (which is _not_ emulated for Tcp, for example).
It's more accurate because this emulation happens. But it's a lot
more complicated to implement it because zero-cost async UDP callbacks
aren't really a host-native feature (but they are a Xous-native feature!),
and I didn't want to .. pull in tokio or mio code surface into
the Xous hosted mode, seemed a bit like crushing a fly by dropping
a house on it. Maybe that's a fine solution in Oz, but Xous doesn't live in Oz.
2022-02-21 00:54:46 +08:00
bunnie
0dbf1661cb
add TCP to hosted mode emulation
...
Total bodge -- we lop off the TCP stack at the Xous API level, and
substitute it with a native host TCP stack.
Caveat hacker: this means that a lot of OS-specific net properties
will carry through to the hosted mode emulation. This is adequate
for "smoke testing" a build but do not be shocked, *shocked* if
there are more bugs to be found because of some weird host integration
issue.
2022-02-20 21:31:32 +08:00