Merge pull request #19 from nasa/Testing-Scripts
Updated Function Names for CPP Test
This commit is contained in:
Binary file not shown.
@@ -37,13 +37,13 @@ void runTest(void (*f)())
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void test1() // openUDP Test
|
void openUDPTest() // openUDP Test
|
||||||
{
|
{
|
||||||
std::cout << "openUDP - ";
|
std::cout << "openUDP - ";
|
||||||
struct xpcSocket sendPort = openUDP( 49062, "127.0.0.1", 49009 );
|
struct xpcSocket sendPort = openUDP( 49062, "127.0.0.1", 49009 );
|
||||||
}
|
}
|
||||||
|
|
||||||
void test2() // closeUDP test
|
void closeUDPTest() // closeUDP test
|
||||||
{
|
{
|
||||||
std::cout << "closeUDP - ";
|
std::cout << "closeUDP - ";
|
||||||
struct xpcSocket sendPort = openUDP( 49063, "127.0.0.1", 49009 );
|
struct xpcSocket sendPort = openUDP( 49063, "127.0.0.1", 49009 );
|
||||||
@@ -51,7 +51,7 @@ void test2() // closeUDP test
|
|||||||
sendPort = openUDP( 49063, "127.0.0.1", 49009 );
|
sendPort = openUDP( 49063, "127.0.0.1", 49009 );
|
||||||
}
|
}
|
||||||
|
|
||||||
void test3() // send/read Test
|
void sendReadTest() // send/read Test
|
||||||
{
|
{
|
||||||
std::cout << "send/readUDP - ";
|
std::cout << "send/readUDP - ";
|
||||||
|
|
||||||
@@ -84,7 +84,7 @@ void test3() // send/read Test
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void test4() // Request DREF Test (Required for next tests)
|
void requestDREFTest() // Request DREF Test (Required for next tests)
|
||||||
{
|
{
|
||||||
std::cout << "requestDREF - ";
|
std::cout << "requestDREF - ";
|
||||||
|
|
||||||
@@ -127,7 +127,7 @@ void test4() // Request DREF Test (Required for next tests)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void test5() // sendDREF test
|
void sendDREFTest() // sendDREF test
|
||||||
{
|
{
|
||||||
std::cout << "sendDREF - ";
|
std::cout << "sendDREF - ";
|
||||||
|
|
||||||
@@ -175,7 +175,7 @@ void test5() // sendDREF test
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void test6() // sendDATA test
|
void sendDATATest() // sendDATA test
|
||||||
{
|
{
|
||||||
std::cout << "sendData - ";
|
std::cout << "sendData - ";
|
||||||
|
|
||||||
@@ -229,7 +229,7 @@ void test6() // sendDATA test
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void test7() // sendCTRL test
|
void sendCTRLTest() // sendCTRL test
|
||||||
{
|
{
|
||||||
std::cout << "sendCTRL - ";
|
std::cout << "sendCTRL - ";
|
||||||
|
|
||||||
@@ -282,7 +282,7 @@ void test7() // sendCTRL test
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void test8() // sendPOSI test
|
void sendPOSITest() // sendPOSI test
|
||||||
{
|
{
|
||||||
std::cout << "sendPOSI - ";
|
std::cout << "sendPOSI - ";
|
||||||
|
|
||||||
@@ -346,7 +346,7 @@ void test8() // sendPOSI test
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void test9() // pauseSim test
|
void pauseTest() // pauseSim test
|
||||||
{
|
{
|
||||||
std::cout << "pauseSim - ";
|
std::cout << "pauseSim - ";
|
||||||
|
|
||||||
@@ -412,7 +412,7 @@ void test9() // pauseSim test
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void test10() // setConn test
|
void connTest() // setConn test
|
||||||
{
|
{
|
||||||
std::cout << "setConn - ";
|
std::cout << "setConn - ";
|
||||||
|
|
||||||
@@ -468,16 +468,16 @@ int main(int argc, const char * argv[])
|
|||||||
std::cout << "(Linux) \n";
|
std::cout << "(Linux) \n";
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
runTest(test1);
|
runTest(openUDPTest);
|
||||||
runTest(test2);
|
runTest(closeUDPTest);
|
||||||
runTest(test3);
|
runTest(sendReadTest);
|
||||||
runTest(test4);
|
runTest(requestDREFTest);
|
||||||
runTest(test5);
|
runTest(sendDREFTest);
|
||||||
runTest(test6);
|
runTest(sendDATATest);
|
||||||
runTest(test7);
|
runTest(sendCTRLTest);
|
||||||
runTest(test8);
|
runTest(sendPOSITest);
|
||||||
runTest(test9);
|
runTest(pauseTest);
|
||||||
runTest(test10);
|
runTest(connTest);
|
||||||
|
|
||||||
std::cout << "----------------\nTest Summary\n\tFailed: " << testFailed << "\n\tPassed: " << testPassed << std::endl;
|
std::cout << "----------------\nTest Summary\n\tFailed: " << testFailed << "\n\tPassed: " << testPassed << std::endl;
|
||||||
|
|
||||||
|
|||||||
Binary file not shown.
@@ -0,0 +1,86 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<Scheme
|
||||||
|
LastUpgradeVersion = "0500"
|
||||||
|
version = "1.3">
|
||||||
|
<BuildAction
|
||||||
|
parallelizeBuildables = "YES"
|
||||||
|
buildImplicitDependencies = "YES">
|
||||||
|
<BuildActionEntries>
|
||||||
|
<BuildActionEntry
|
||||||
|
buildForTesting = "YES"
|
||||||
|
buildForRunning = "YES"
|
||||||
|
buildForProfiling = "YES"
|
||||||
|
buildForArchiving = "YES"
|
||||||
|
buildForAnalyzing = "YES">
|
||||||
|
<BuildableReference
|
||||||
|
BuildableIdentifier = "primary"
|
||||||
|
BlueprintIdentifier = "BE9C6BAA1A253FA100EBE08A"
|
||||||
|
BuildableName = "Cpp Tests"
|
||||||
|
BlueprintName = "Cpp Tests"
|
||||||
|
ReferencedContainer = "container:Cpp Tests.xcodeproj">
|
||||||
|
</BuildableReference>
|
||||||
|
</BuildActionEntry>
|
||||||
|
</BuildActionEntries>
|
||||||
|
</BuildAction>
|
||||||
|
<TestAction
|
||||||
|
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
||||||
|
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
||||||
|
shouldUseLaunchSchemeArgsEnv = "YES"
|
||||||
|
buildConfiguration = "Debug">
|
||||||
|
<Testables>
|
||||||
|
</Testables>
|
||||||
|
<MacroExpansion>
|
||||||
|
<BuildableReference
|
||||||
|
BuildableIdentifier = "primary"
|
||||||
|
BlueprintIdentifier = "BE9C6BAA1A253FA100EBE08A"
|
||||||
|
BuildableName = "Cpp Tests"
|
||||||
|
BlueprintName = "Cpp Tests"
|
||||||
|
ReferencedContainer = "container:Cpp Tests.xcodeproj">
|
||||||
|
</BuildableReference>
|
||||||
|
</MacroExpansion>
|
||||||
|
</TestAction>
|
||||||
|
<LaunchAction
|
||||||
|
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
||||||
|
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
||||||
|
launchStyle = "0"
|
||||||
|
useCustomWorkingDirectory = "NO"
|
||||||
|
buildConfiguration = "Debug"
|
||||||
|
ignoresPersistentStateOnLaunch = "NO"
|
||||||
|
debugDocumentVersioning = "YES"
|
||||||
|
allowLocationSimulation = "YES">
|
||||||
|
<BuildableProductRunnable>
|
||||||
|
<BuildableReference
|
||||||
|
BuildableIdentifier = "primary"
|
||||||
|
BlueprintIdentifier = "BE9C6BAA1A253FA100EBE08A"
|
||||||
|
BuildableName = "Cpp Tests"
|
||||||
|
BlueprintName = "Cpp Tests"
|
||||||
|
ReferencedContainer = "container:Cpp Tests.xcodeproj">
|
||||||
|
</BuildableReference>
|
||||||
|
</BuildableProductRunnable>
|
||||||
|
<AdditionalOptions>
|
||||||
|
</AdditionalOptions>
|
||||||
|
</LaunchAction>
|
||||||
|
<ProfileAction
|
||||||
|
shouldUseLaunchSchemeArgsEnv = "YES"
|
||||||
|
savedToolIdentifier = ""
|
||||||
|
useCustomWorkingDirectory = "NO"
|
||||||
|
buildConfiguration = "Release"
|
||||||
|
debugDocumentVersioning = "YES">
|
||||||
|
<BuildableProductRunnable>
|
||||||
|
<BuildableReference
|
||||||
|
BuildableIdentifier = "primary"
|
||||||
|
BlueprintIdentifier = "BE9C6BAA1A253FA100EBE08A"
|
||||||
|
BuildableName = "Cpp Tests"
|
||||||
|
BlueprintName = "Cpp Tests"
|
||||||
|
ReferencedContainer = "container:Cpp Tests.xcodeproj">
|
||||||
|
</BuildableReference>
|
||||||
|
</BuildableProductRunnable>
|
||||||
|
</ProfileAction>
|
||||||
|
<AnalyzeAction
|
||||||
|
buildConfiguration = "Debug">
|
||||||
|
</AnalyzeAction>
|
||||||
|
<ArchiveAction
|
||||||
|
buildConfiguration = "Release"
|
||||||
|
revealArchiveInOrganizer = "YES">
|
||||||
|
</ArchiveAction>
|
||||||
|
</Scheme>
|
||||||
@@ -0,0 +1,22 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||||
|
<plist version="1.0">
|
||||||
|
<dict>
|
||||||
|
<key>SchemeUserState</key>
|
||||||
|
<dict>
|
||||||
|
<key>Cpp Tests.xcscheme</key>
|
||||||
|
<dict>
|
||||||
|
<key>orderHint</key>
|
||||||
|
<integer>0</integer>
|
||||||
|
</dict>
|
||||||
|
</dict>
|
||||||
|
<key>SuppressBuildableAutocreation</key>
|
||||||
|
<dict>
|
||||||
|
<key>BE9C6BAA1A253FA100EBE08A</key>
|
||||||
|
<dict>
|
||||||
|
<key>primary</key>
|
||||||
|
<true/>
|
||||||
|
</dict>
|
||||||
|
</dict>
|
||||||
|
</dict>
|
||||||
|
</plist>
|
||||||
Reference in New Issue
Block a user