James Turner
7ac03debf4
Add tests for isRoute FlightPlans
2022-01-15 22:23:38 +00:00
James Turner
395eb58d14
Adjust the ground-net test, for changed ground routing.
2022-01-15 22:23:38 +00:00
James Turner
ef3ba040ca
Fix logic of duplicate-command-add test
...
parseAndReturn returns false, when runtime errors occur.
2022-01-15 22:23:38 +00:00
James Turner
d59db8ea54
FlightPlan: distuinguish routes from flight-plans
...
Add a bool flag isRoute to flight-plan, and use it to model
routes (which contain VIAs) from plans/legs, which do not.
Default isRoute to false, so most users only see expanded
Vias, and hence something that can be flown directly.
2022-01-15 22:23:38 +00:00
James Turner
9a08d9fcd6
AP input: add property-path support to Inputs
...
Allow making the AP source indirect (via a string property),
so that the actual source property can be configured or
adjusted from a -set.xml, or at runtime.
2022-01-15 22:23:37 +00:00
Julian Smith
cfe5ed0ef4
test_suite/unit_tests/AI/test_traffic.cxx: minor improvements to sprintf code.
...
Use snprintf() instead of sprintf() to avoid potential memory corruption.
Fixed sprintf time_t call - cast to long long.
2022-01-08 16:11:53 +00:00
James Turner
179b751bf5
Unit-tests for Nasal range()
2022-01-07 16:16:01 +00:00
James Turner
c1e5cc3074
Improve creating VIA segments
...
Improve argument parsing for createViaTo, createViaFromTo to
handle Airway ghosts as well as strings. As part of this, allow
specification of the airway level explicitly when looking
up an airway.
SF-ID: https://sourceforge.net/p/flightgear/codetickets/2686/
2022-01-05 15:44:50 +00:00
Julian Smith
1b7e8504ef
test_suite/unit_tests/: cope with getStringValue() now returning std::string.
2021-12-27 10:19:34 +00:00
James Turner
aad67cdad9
Test Nasal trunc/floor/round
2021-11-16 11:00:35 +00:00
James Turner
4236cee7b2
Another waypoint selection test from MikeD
...
Currently selects the wrong VOR, bvut the code is working as
designed, we think.
2021-09-02 11:29:02 +01:00
PortreeKid
f1a44c98df
AI Improvements
...
* Relax runway exit route requirement to 80°
* Ensure parking is only reset if airport for AI aircraft has changed
* Heading Error signed and arrival lead distance
2021-08-31 09:43:24 +01:00
James Turner
45d969f319
Add tests cases around bug 2616
...
Can't reproduce this, but capturing in a unit-test just to make sure.
SF-Ticket: https://sourceforge.net/p/flightgear/codetickets/2616/
2021-08-21 13:09:39 +01:00
James Turner
4bf88a0b67
Extend unit-test for route-manager waypoint selection
...
SF-Ticket: https://sourceforge.net/p/flightgear/codetickets/2372/
2021-08-20 12:08:17 +01:00
Julian Smith
d91bc730b6
test_suite/unit_tests/Autopilot/testPidController*: test startup_current=0 or 1.
2021-08-02 22:38:11 +01:00
James Turner
3082789582
Disable the traffic tests for now
2021-07-21 10:59:22 +01:00
James Turner
870dbc04f5
Test infrastrucutre tweaks
2021-07-21 10:59:08 +01:00
portree_kid
61ced0e86f
Change filewriting to simgear
2021-07-13 10:52:30 +01:00
portree_kid
f4bc2913c1
Flightplan Test
2021-07-13 10:52:30 +01:00
James Turner
a3c9f3163e
Traffic tests: use shared pointers and new APIs
2021-07-13 10:49:06 +01:00
James Turner
6ab1fdbe0f
Fixes for Keith’s tests
2021-07-13 10:49:06 +01:00
portree_kid
45ac50d2b7
Time moving
2021-07-13 10:49:06 +01:00
portree_kid
80e553f05c
Departure gate test
2021-07-13 10:49:06 +01:00
portree_kid
54de08a3b6
Fix #2576 Added findWithHeading
2021-07-13 10:41:30 +01:00
portree_kid
3d3ff623cd
Add dump() method to AIAircaft
2021-07-13 10:41:30 +01:00
portree_kid
cb3f8056ff
Test AI shuttle flight
2021-07-13 10:41:30 +01:00
portree_kid
3318e09441
Test for TrafficMgr
2021-07-13 10:29:04 +01:00
portree_kid
9121e8bcef
Test Complete Flight
2021-07-13 10:29:04 +01:00
portree_kid
5489a3bfd7
Basic Airport tests
2021-07-13 10:29:03 +01:00
portree_kid
bef7af0bc0
testPushforwardSpeedy
2021-07-13 10:29:03 +01:00
PortreeKid
19b910775e
Runway Tests
2021-07-13 10:29:03 +01:00
portree_kid
620dd9ee48
YSCB AI parking test
2021-07-12 16:21:19 +01:00
portree_kid
dccea87cea
AI Test Windchange
2021-07-12 16:21:19 +01:00
portree_kid
84258c79a0
Flightplan Test draft
2021-07-12 16:21:09 +01:00
portree_kid
03574442c0
AI Tests
2021-07-12 16:19:44 +01:00
portree_kid
9dd5c0e055
Moved AI FlightPlan Tests to seperate test class
2021-07-12 16:19:44 +01:00
portree_kid
d96602fc90
Tests for groundnet.cxx
2021-07-12 16:19:44 +01:00
Julian Smith
81e12d7c2e
test_suite/unit_tests/Scripting/testGC.cxx: Restore nasal state when closing down.
...
Need to restore global_nasalMinimalInit to false in NasalGCTests::tearDown(),
otherwise later run of NasalSysTests::testCommands fails.
2021-06-07 22:24:56 +01:00
James Turner
9297f62d2f
Fix some missed renames for sg_random.hxx
...
Ticket-Id: https://sourceforge.net/p/flightgear/codetickets/2595/
2021-05-28 11:58:57 +01:00
James Turner
e8952b6c0f
Update tests for revised Subsystem API
2021-04-25 19:18:56 +01:00
James Turner
adae75821d
CommRadio frequency updates from Sascha Reißner
...
Reject invalid frequencies from apt.dat in the loader, and fix
25Khz encoding to be the exact value (i.e round frequencies ending
in 20 and 70 to 25 and 75)
Fix ATCdialog to show 3 digits of comm radio frequency at all times,
and remove its rounding-conversion.
Finally, expand the tests to capture the new behaviour. Test for
EPLL is disabled for now because it contains an invalid frequency.
2021-04-01 14:46:21 +01:00
Julian Smith
2dda76b831
test_suite/unit_tests/Main/test_posinit.*: added test with AI disabled.
2021-03-27 21:55:35 +00:00
James Turner
4542691772
Add unit-test coverage for the transponder
2021-03-18 13:56:05 +00:00
James Turner
251b3aeb2b
TimeManager: add unit-test for ETC time zones
...
Ensure when entering/exiting oceanic areas, we switch to/from an ETC
time-zone correctly
2021-03-13 15:57:05 +00:00
James Turner
4eecd088e8
TimeManager: handle reposition better
...
Extend the timeManager unit-tests to check for some movements, all
seems to work correctly now.
2021-03-12 14:45:25 +00:00
James Turner
81df48b858
Add tests for MP-runway start, and fix behaviour.
...
Fix a bug in how taxi-nodes were classified, which meant that MP start
on a runway was not applied correctly.
2021-03-08 10:23:43 +00:00
Julian Smith
84f95fe3c2
test_suite/unit_tests/Autopilot/: added unit test of pid-controller.
...
E.g.:
test-suite -u PidControllerTests
test-suite -u PidControllerTests::test
2021-03-07 21:57:50 +00:00
James Turner
4ca929fa61
Fix test for Jano’s dtRemainder init change
2021-03-07 13:08:29 +00:00
James Turner
8716801c8c
Unit-test for Nasal parsing bug
2021-03-07 13:08:29 +00:00
Scott Giese
21330d2f31
Minor typo
2021-02-26 20:48:43 -06:00