qpcpp/examples/qutest/dpp/test_table.tcl

46 lines
1.1 KiB
Tcl
Raw Normal View History

2018-07-16 16:32:57 -04:00
# test-script for QUTest unit testing harness
# see https://www.state-machine.com/qtools/qutest.html
2017-05-17 13:15:09 -04:00
# preamble...
proc on_reset {} {
expect_pause
continue
2018-05-25 12:24:18 -04:00
glb_filter SM AO UA
2018-06-16 17:21:53 -04:00
loc_filter AO AO_Table
current_obj SM_AO AO_Table
2017-05-17 13:15:09 -04:00
}
2018-06-16 17:21:53 -04:00
proc on_setup {} {
#puts "on_setup"
}
proc on_teardown {} {
#puts "on_teardown"
}
2017-05-17 13:15:09 -04:00
# tests...
test "PAUSE->Table"
dispatch PAUSE_SIG
2018-06-16 17:21:53 -04:00
expect "%timestamp Disp===> Obj=AO_Table,Sig=PAUSE_SIG,State=serving"
2018-05-25 12:24:18 -04:00
expect "%timestamp BSP_CALL BSP::displayPaused 1"
2018-06-16 17:21:53 -04:00
expect "===RTC===> St-Entry Obj=AO_Table,State=paused"
expect "%timestamp ===>Tran Obj=AO_Table,Sig=PAUSE_SIG,State=serving->paused"
2017-05-17 13:15:09 -04:00
expect "%timestamp Trg-Done QS_RX_EVENT"
test "SERVE->Table (1)"
command 1
2018-06-16 17:21:53 -04:00
expect "%timestamp Disp===> Obj=AO_Table,Sig=SERVE_SIG,State=serving"
expect "%timestamp =>Ignore Obj=AO_Table,Sig=SERVE_SIG,State=serving"
2017-05-17 13:15:09 -04:00
expect "%timestamp Trg-Done QS_RX_COMMAND"
test "SERVE->Table (2)" -noreset
probe BSP::displayPaused 1
dispatch PAUSE_SIG
2018-06-16 17:21:53 -04:00
expect "%timestamp Disp===> Obj=AO_Table,Sig=PAUSE_SIG,State=serving"
2017-05-17 13:15:09 -04:00
expect "%timestamp TstProbe Fun=BSP::displayPaused,Data=1"
expect "%timestamp =ASSERT= Mod=bsp,Loc=100"
# the end
end