|
| 1 | +Feature: library test - network_ioctl |
| 2 | + |
| 3 | + This tests fujinet-network network_ioctl |
| 4 | + See the associated test file which calls with: |
| 5 | + return network_ioctl('X', 1, 2, my_devicespec, my_dstats, my_dbuf, my_dbyt); |
| 6 | + |
| 7 | + Scenario: execute _network_ioctl |
| 8 | + Given atari-fn-nw application test setup |
| 9 | + And I add common atari-io files |
| 10 | + And I add atari src file "network_ioctl.s" |
| 11 | + And I add atari src file "network_unit.s" |
| 12 | + And I add atari src file "network_status.s" |
| 13 | + And I add atari src file "io_status.s" |
| 14 | + And I add file for compiling "features/atari/test-apps/test_network_ioctl.c" |
| 15 | + And I add file for compiling "features/atari/stubs/bus_simple.s" |
| 16 | + And I set register X to $ff |
| 17 | + And I create and load application |
| 18 | + When I execute the procedure at _init for no more than 220 instructions |
| 19 | + |
| 20 | + Then I expect to see DDEVIC equal $71 |
| 21 | + And I expect to see DUNIT equal 3 |
| 22 | + And I expect to see DCOMND equal $58 |
| 23 | + And I expect to see DSTATS equal $40 |
| 24 | + And I expect to see DBUFLO equal $bc |
| 25 | + And I expect to see DBUFHI equal $4a |
| 26 | + And I expect to see DTIMLO equal $0f |
| 27 | + And I expect to see DBYTLO equal $34 |
| 28 | + And I expect to see DBYTHI equal $12 |
| 29 | + And I expect to see DAUX1 equal 1 |
| 30 | + And I expect to see DAUX2 equal 2 |
| 31 | + |
| 32 | + # DSTATS still in A, X forced to 0 |
| 33 | + Then I expect register A equal $40 |
| 34 | + And I expect register X equal 0 |
0 commit comments