Closed josch1710 closed 7 years ago
This implements an serial port backend for testing purposes. It only is built, when compiler directive QT_NO_DEBUG is not set, i.e. as default only for debug build. It uses an XML file for simulating SIO traffic. Example of an test file:
<?xml` version="1.0" encoding="UTF-8"?> <testcase> <pause sec="1" msec="1" /> <!-- Get Status --> <commandframe device="0x40" command="0x53" aux1="0" aux2="0" /> <pause sec="2" msec="10" /> <!-- Write Chars --> <commandframe device="0x40" command="0x57" aux1="0x4e" aux2="0" /> <pause sec="1" msec="10" /> <!-- Data frame ending EOL, padded with spaces --> <dataframe>abcDEF› </dataframe> <pause sec="1" msec="1" /> </testcase>
This implements an serial port backend for testing purposes. It only is built, when compiler directive QT_NO_DEBUG is not set, i.e. as default only for debug build. It uses an XML file for simulating SIO traffic. Example of an test file: