Skip to content

Commit

Permalink
tests/pkg/minmea: adapting test file
Browse files Browse the repository at this point in the history
  • Loading branch information
jan-mo committed Oct 23, 2023
1 parent 1bfe45e commit d569cdf
Showing 1 changed file with 29 additions and 3 deletions.
32 changes: 29 additions & 3 deletions tests/pkg/minmea/tests/01-run.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,35 @@


def testfunc(child):
child.expect_exact('START')
child.expect('parsed coordinates: lat=52.483631 lon=13.446008')
child.expect_exact('SUCCESS')
child.expect_exact('START\r\n')
child.expect_exact('check_nmea: GGA recorded\r\n')
child.expect_exact('\tlat: 52.450366\r\n')
child.expect_exact('\tlon: 13.298649\r\n')
child.expect_exact('\talt: 0\r\n')
child.expect_exact('\tn_sats: 12\r\n')
child.expect_exact('check_nmea: GLL recorded\r\n')
child.expect_exact('\tlat: 52.483631\r\n')
child.expect_exact('\tlon: 13.446008\r\n')
child.expect_exact('check_nmea: GSA recorded\r\n')
child.expect_exact('\tmode: A\r\n')
child.expect_exact('\tfix_type: 3D\r\n')
child.expect_exact('\t0. sat: 1\r\n')
child.expect_exact('\t1. sat: 2\r\n')
child.expect_exact('\t2. sat: 3\r\n')
child.expect_exact('\t3. sat: 4\r\n')
child.expect_exact('\t4. sat: 5\r\n')
child.expect_exact('\t5. sat: 6\r\n')
child.expect_exact('\t6. sat: 7\r\n')
child.expect_exact('\t7. sat: 8\r\n')
child.expect_exact('\t8. sat: 9\r\n')
child.expect_exact('\t9. sat: 10\r\n')
child.expect_exact('\t10. sat: 11\r\n')
child.expect_exact('\t11. sat: 12\r\n')
child.expect_exact('check_nmea: RMC recorded\r\n')
child.expect_exact('\tlat: 52.450366\r\n')
child.expect_exact('\tlon: 13.298649\r\n')
child.expect_exact('\ttime: 1697808102\r\n')
child.expect_exact('SUCCESS\r\n')


if __name__ == "__main__":
Expand Down

0 comments on commit d569cdf

Please sign in to comment.