Commit Graph

54 Commits

Author SHA1 Message Date
Chris Teubert
683257f628 Fixed header file name. 2015-04-29 14:23:00 -07:00
Jason Watkins
f3e87a8216 Fixed duplicate declaration of socket in sendDREFTest. 2015-04-29 12:46:41 -07:00
Jason Watkins
54368bb65a C client API tweaks
- Swaped names of openUDP and aopenUDP.
 - openUDP is now the "automatic" version, requiring only the X-Plane IP address.
 - aopenUDP is now the "advanced" version, requiring both the X-Plane port and a client port.
 - Added support for passing NULL to sendTEXT.
2015-04-29 12:44:19 -07:00
Jason Watkins
dc4abba73a Fixed several issues in the C client unit tests.
- getDREF and sendDREF tests now work correctly.
 - Removed SendReadTest.
2015-04-29 12:44:02 -07:00
Jason Watkins
3b2e697158 Removed 'p' variants of the sendCTRL and sendPOSI functions from the C client. 2015-04-29 08:14:55 -07:00
Jason Watkins
326bae1dbf Updated C client unit tests.
- openTest now validates that "localhost" resolves to "127.0.0.1".
 - sendTEXTTest now sets and clears text. Note that since there is no way to externally verify the result of a TEXT command, the user must now step through this test using the debugger to fully verify functionality.
 - requestDREFTest renamed to getDREFTest.
 - getDREFTest now gets one dataref of each type except multidimensional arrays.
 - sendDREFTest now sets one dataref of each type except mulidimensional arrays.
 - sendDREFTest now attempts to set a read-only dataref. Need to work out how to test the result of this effectively.
 - psendCTRLTest & sendCTRLTest now test multiple values, default values and sending only some parameters.
 - Added psendPOSITest.
  - psendPOSITest & sendPOSIest now test multiple values, default values and sending only some parameters.
 - sendWYPTTest now clears waypoints before setting them.
2015-04-28 15:28:41 -07:00
Jason Watkins
0836c971f5 Deleted C++ test scripts.
- These tests create a great deal of duplicated work.
 - The only errors caught by these tests would be errors that occur in the C client only when compiled by a C++ compiler.
 - This error case is deemed unlikely enough that it is not worth the extra work to maintain two sets of tests.
2015-04-28 12:19:21 -07:00
Jason Watkins
8932edbd67 Renamed "setDREF" function back to "sendDREF". 2015-04-28 12:10:53 -07:00
Chris Teubert
31609f904f fixed bug in sendDATATest
The wrong array was being set in the test sendDATATest(). We should
make the test more complete so this can be caught.
2015-04-28 12:10:34 -07:00
Jason Watkins
1523405495 Fixed errors in MATLAB client and updated tests. 2015-04-21 15:21:05 -07:00
Jason Watkins
e191537bc9 Refactored MATLAB client to use the Java client internally.
- Still need to implement selectDATA for all languages.
2015-04-18 09:16:23 -07:00
Jason Watkins
ccc87f06f2 Updated Java client to conform to new API.
- Now uses a single socket.
 - Constructor parameter reordered to match C client.
 - Defaults to an OS assigned port instead of 49008.
2015-04-17 10:56:04 -07:00
Jason Watkins
55f3953955 Fixed errors and removed unused code in the C client.
- Fixed a buffer overflow in sendCTRL.
 - Fixed incorrect inderection in readUDP.
 - Removed unused usleep function.
 - Removed redundant include of WS2tcpip.h
 - Fixed widespread error where sendUDP's return value was not being checked correctly.
 - Updated signature of openUDP to place optional parameters at the end
 - Fixed bug in CTRL command where the buffer length was not correctly set.
 - Fixed setCONN to correctlly reset the client's socket.
2015-04-17 10:56:03 -07:00
Jason Watkins
556b3622ee Fixed C client tests to work with new client version. 2015-04-17 10:56:02 -07:00
Jason Watkins
a6196dece9 C client style tweaks.
- Standardized C client to use tabs.
 - Improved consistency of indentation.
 - Updated copyright and description headers.
2015-04-17 10:54:55 -07:00
Jason Watkins
cfeb01fc02 Added MATLAB client support for WYPT command. 2015-04-09 12:17:58 -07:00
Jason Watkins
2e05f57baf Added Java client support for WYPT command. 2015-04-09 12:17:53 -07:00
Jason Watkins
6417822a75 Added C test for WYPT command and fixed bugs in parseWYPT and sendWYPT. 2015-04-09 12:17:52 -07:00
Jason Watkins
c3e284fc02 Added support for newlines in TEXT command. 2015-04-08 09:13:57 -07:00
Chris Teubert
d18904bbe2 updates to Matlab Tests 2015-04-08 09:12:56 -07:00
Chris Teubert
1fd92edb02 Added missing #include's 2015-04-08 09:12:56 -07:00
Jason Watkins
8445c60e00 Added support for the TEXT command to the MATLAB client 2015-04-07 15:33:53 -07:00
Jason Watkins
a903859a3c Added support for the TEXT command to the Java client. 2015-04-07 15:33:53 -07:00
Jason Watkins
46913596c5 Added support for the TEXT command to the C client. 2015-04-07 15:33:46 -07:00
Jason Watkins
15df14d334 Added multiplayer sendCTRL support to MATLAB client
- Also fixed a bug in the message format where gear was sent as a single rather than a byte.
2015-04-07 10:43:40 -07:00
Jason Watkins
1f81a4e54d Added Java client support for multiplayer sendCTRL 2015-04-07 10:43:39 -07:00
Jason Watkins
abf2a426d2 Added C client support for multiplayer sendCTRL commands. 2015-04-07 10:43:39 -07:00
Jason Watkins
9d3e961a2f Fixed bugs in C tests.
- math.h was not correctly included.
 - the return value of sendCTRLtest sometimes incorrectly reported success.
2015-04-07 08:21:06 -07:00
Jason Watkins
1361288080 Updated IntelliJ project file to point to new test script location. 2015-04-03 15:35:25 -07:00
Chris Teubert
dce3a48f65 moved java test script to TestScripts folder 2015-04-03 15:19:56 -07:00
Chris Teubert
0c2e786890 Removed "sim/" auto add feature
Removed “sim/“ auto add feature. There are some drefs (custom/art) that
do not start with “sim/“
2015-04-03 10:47:55 -07:00
Chris Teubert
87819e5adc C/CPP Test Fixes
Fixed incorrect DREF for flaps.
Fixed error where sendCTRL and sendPOSI were using abs instead of fabs.
2015-04-01 15:54:07 -07:00
Jason Watkins
22cbf903b5 Fixed setConn function in MATLAB client 2015-03-30 16:36:19 -07:00
Jason Watkins
85fdcbe3dc Several small fixes
- Added Visual Studio solution for C client example.
 - Fixed inconsistent indentation in C client example.
 - Changed default behavior in MATLAB client's sendCTRL function to leave unchanged instead of setting default values.
 - Fixed sendPOSI and sendDATA sections of the MATLAB example.
 - Fixed port number in the C and C++ setCONN tests.
2015-03-30 13:38:51 -07:00
Christopher Teubert
ff7d5fe491 Merge pull request #29 from jason-watkins/feature/cleanup
.gitignore cleanup and file restructuring
2015-03-28 17:50:15 -07:00
Jason Watkins
9791283578 Expanded MATLAB tests 2015-03-27 08:43:20 -07:00
Jason Watkins
8dace8b2ab Added VS project for CPP Tests and fixed some CPP Tests bugs,
- Added a Visual Studio project for C++ test scripts.
 - Increased message buffer size in sendReadTest to account for assumptions made by sendUDP.
 - Fixed a bug in sendCTRLTest where not all DREF sizes were being set.
 - Fixed a bug in sendCTRLTest where not all DREFs were being requested.
 - All C++ tests are now passing on Windows for XP9, XP10-32 and XP10-64
2015-03-27 08:43:20 -07:00
Jason Watkins
b91776e687 Removed files that were previously in version control that should be ignored. 2015-03-25 11:32:40 -07:00
Christopher Teubert
aac59dccf1 Merge pull request #26 from jason-watkins/master
CTest Fixes
2015-03-24 16:49:44 -07:00
Jason Watkins
fbeb297717 Fixed CTests bugs, minor plugin enhancements, and removed old files
- Fixed incorrect message buffer size in sendCTRL function.
 - Fixed a bug in sendCTRLTest where not all DREF sizes were being set.
 - Increased message buffer size in sendReadTest to account for assumptions made by sendUDP.
 - Fixed a bug in updateLog where the log message would sometimes start with several null characters, causing the log message to be effectively ignored by fprintf.

 - The xpcPlugin Visual Studio solution now supports 32 bit and 64 bit builds.
 - Logging performed by the plugin now works correctly on Windows.
 - Long log messages are now truncated to 500 characters. Previously, messages over 500 characters would be omitted, and an error message logged in their place.

 - Several files which were incorrectly added to source control have been deleted.
2015-03-24 14:29:39 -07:00
Chris Teubert
6236ffc69d Fixed closeUDP bug in CPP Tests 2015-03-24 09:37:38 -07:00
jason-watkins
f902303b20 Added Visual Studio solution for C test scripts and fixed test bug
- Added a Visual Studio solution that builds the C test scripts on Windows.
 - Updated .gitignore to ignore user specific Visual Studio files
 - Updated .gitignore to ignore Windows build folders
 - Fixed a bug in closeTest. It now properly closes the UDP port a second time after reopening the port to verify that it closed successfully.
2015-03-23 16:10:50 -07:00
Chris Teubert
dd7f4cc83e Updated .gitignore to ignore mac xcuserstate files 2014-12-04 10:37:47 -08:00
Chris Teubert
dcce37573f Quick fix- msTimeOut to usTimeOut 2014-12-03 10:26:01 -08:00
Chris Teubert
a5c75f4a64 Update to fix Windows test script bug (C) 2014-12-02 13:42:57 -08:00
Chris Teubert
b8822d4ad9 Updated Function Names for CPP Test 2014-12-02 12:08:47 -08:00
Chris Teubert
26995ddfbc Testing Updates to work with Windows 2014-12-02 10:30:31 -08:00
Chris Teubert
6ec1aceac7 Fix
Merge branch 'master' into Testing-Scripts

Conflicts:
	TestScripts/C Tests.xcodeproj/project.xcworkspace/xcuserdata/cteubert.xcuserdatad/UserInterfaceState.xcuserstate
	TestScripts/Cpp Tests.xcodeproj/project.xcworkspace/xcuserdata/cteubert.xcuserdatad/UserInterfaceState.xcuserstate
2014-12-01 15:50:09 -08:00
Chris Teubert
fce3b5a5a8 Resolved Conflicts 2014-12-01 15:42:40 -08:00
Chris Teubert
851cebeea0 Testing improvements- C/C++ 2014-12-01 15:36:37 -08:00