Commit graph

1365 commits

Author SHA1 Message Date
Paul Kronenwetter
1fcd7dbdec Correct status check. 2022-06-15 19:42:16 -04:00
Paul Kronenwetter
d258fa74b3 Update checks for successful transmission. 2022-06-15 19:42:16 -04:00
Paul Kronenwetter
bd563012fa Adapt test to use SOCKET_QUEUE rather than static.INFO. 2022-06-15 19:42:16 -04:00
Paul Kronenwetter
a9e60cd7bc Revert add priming packet to FIFO.
This didn't work as intended.
2022-06-15 19:42:16 -04:00
Paul Kronenwetter
1cec49bf77 Add priming packet to FIFO.
This forces the originating TNC to be out-of-sync when receiving frames.
2022-06-15 19:42:16 -04:00
Paul Kronenwetter
04948552d0 Clean up imports. 2022-06-15 19:42:16 -04:00
Paul Kronenwetter
3bd4b4cb75 Remove first packet send.
Fix missed status enum reference.
2022-06-15 19:42:16 -04:00
Paul Kronenwetter
f0d327e98e Adjust timeouts. 2022-06-15 19:42:16 -04:00
Paul Kronenwetter
448777af86 Add another rerun on test failure. 2022-06-15 19:42:16 -04:00
Paul Kronenwetter
80784d7114 Ignore type "errors." 2022-06-15 19:42:16 -04:00
Paul Kronenwetter
ea356f963a Help CPU load in while loop.
Tried 0.05 but it caused test failures.
2022-06-15 19:42:16 -04:00
Paul Kronenwetter
1071ef58e1 Remove dependence on static FRAME_TYPE enum. 2022-06-15 19:42:16 -04:00
Paul Kronenwetter
2481102fa2 Increase timeout for slower test machines. 2022-06-15 19:42:16 -04:00
Paul Kronenwetter
b618fe6c89 Fix minor import problem. 2022-06-15 19:42:16 -04:00
Paul Kronenwetter
79a1ba2302 Short and long data transfer test.
These appear to work reasonably well with an
occasional transient failure.
2022-06-15 19:42:16 -04:00
Paul Kronenwetter
0ff2b69895 Adjust for setup_logging enhancement. 2022-06-15 19:42:16 -04:00
Paul Kronenwetter
59dbf4174d Work toward a usable test. 2022-06-15 19:42:16 -04:00
Paul Kronenwetter
b3e0d1de1b Refactor tnc_states test.
This will avoid cross-test interference this test has caused.
2022-06-15 19:42:16 -04:00
Paul Kronenwetter
55fc2d2263 Adjustments to WIP utilities. 2022-06-15 19:42:16 -04:00
Paul Kronenwetter
d478724558 Reduce number of retries. 2022-06-15 19:42:16 -04:00
Paul Kronenwetter
e079c49729 Correct internal test order dependency. 2022-06-15 19:42:16 -04:00
Paul Kronenwetter
af355244a1 Use pytest-rerunfailures instead of re-inventing it. 2022-06-15 19:42:16 -04:00
Paul Kronenwetter
9d268b99ad Add change to test directory for high SNR python tests. 2022-06-15 19:42:16 -04:00
Paul Kronenwetter
c15b11fe7b Fix tests and tnc after merge. 2022-06-15 19:42:12 -04:00
Paul Kronenwetter
1f8106258d Adding bandwidth switch for arq test. 2022-06-15 19:40:14 -04:00
Paul Kronenwetter
a6d1f89687 Restore accidentally deleted code. 2022-06-15 19:40:14 -04:00
Paul Kronenwetter
f695e6e2af Collapse repeated code to a function.
Add function parameter and return types.
Move logging to a class variable.
Extended use of FREEDV_MODE enum.
Moved TESTING check to arq_cleanup.
2022-06-15 19:40:14 -04:00
Paul Kronenwetter
2d5ebd5846 Minor reworking of the source Pythonness. 2022-06-15 19:40:14 -04:00
Paul Kronenwetter
b89be14319 Initial implementation. 2022-06-15 19:40:14 -04:00
Paul Kronenwetter
3a8cc57a72 Update for consistency with other tests. 2022-06-15 19:40:14 -04:00
Paul Kronenwetter
ba4bc03a87 Renaming test utilities as util_.
Removed test_arq_short from the list while it's being rewritten.
2022-06-15 19:40:14 -04:00
Paul Kronenwetter
f0f7c94058 Pin codec2 revision to master.
This should be a specific release, that implements freedv_set_tuning_range.
2022-06-15 19:40:14 -04:00
Paul Kronenwetter
dbeea31f9d Correcting git mistake. 2022-06-15 19:40:14 -04:00
Paul Kronenwetter
f742a8a435 Pin codec2 revision to v1.0.3. 2022-06-15 19:40:14 -04:00
Paul Kronenwetter
a2992e6f0f Trying to be less dependent on env variables. 2022-06-15 19:40:14 -04:00
DJ2LS
f58bc10b89 mkfifo test prototype
First partially working prototype for testing the full tnc with mkfifo named pipes.
2022-06-15 19:40:14 -04:00
Paul Kronenwetter
38f468adce Various refactorings.
Type hints, trailing backslash, range usage, etc.
2022-06-15 19:40:11 -04:00
Paul Kronenwetter
866388b625 Remove excess newlines. 2022-06-15 19:37:55 -04:00
Paul Kronenwetter
7d163ac189 Remove excess trailing spaces. 2022-06-15 19:37:55 -04:00
Paul Kronenwetter
46f95ad94e Ignore unknown arguments in argparse. 2022-06-15 19:37:55 -04:00
Paul Kronenwetter
1866e40145 Various refactorings.
Type hints, trailing backslash, range usage, etc.
2022-06-15 19:37:55 -04:00
Paul Kronenwetter
16f666c906 Update correct file this time. 2022-06-15 19:37:55 -04:00
Paul Kronenwetter
e579a39fc3 Tweak README again. 2022-06-15 19:37:55 -04:00
Paul Kronenwetter
ce757ec38a Update README with new tests. 2022-06-15 19:37:55 -04:00
Paul Kronenwetter
83d1c44a2b Add list of tests and brief descriptions. 2022-06-15 19:37:55 -04:00
Paul Kronenwetter
017005031f Parameterize recent tests.
Renamed datac0 to datacx after including all data codecs in test.
2022-06-15 19:37:55 -04:00
Paul Kronenwetter
739ab03343 Adding pure python highsnr_stdio_P_P_datac0 test.
Intended to replace highsnr_stdio_P_P_datac0 which uses POSIX shell.
2022-06-15 19:37:55 -04:00
Paul Kronenwetter
4bff7a5027 Clean up two existing tests.
Adapted both tests to pytest and maintained
compatibility with existing ctest method.
Tweaked CMakeLists.txt .
2022-06-15 19:37:55 -04:00
Paul Kronenwetter
2325803dd3 Added parameters to tests.
Make other minor tweaks and documentation.
2022-06-15 19:37:55 -04:00
Paul Kronenwetter
3874cc19ad Completed initial set of tests. 2022-06-15 19:37:55 -04:00