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 - ";
|
||||
struct xpcSocket sendPort = openUDP( 49062, "127.0.0.1", 49009 );
|
||||
}
|
||||
|
||||
void test2() // closeUDP test
|
||||
void closeUDPTest() // closeUDP test
|
||||
{
|
||||
std::cout << "closeUDP - ";
|
||||
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 );
|
||||
}
|
||||
|
||||
void test3() // send/read Test
|
||||
void sendReadTest() // send/read Test
|
||||
{
|
||||
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 - ";
|
||||
|
||||
@@ -127,7 +127,7 @@ void test4() // Request DREF Test (Required for next tests)
|
||||
}
|
||||
}
|
||||
|
||||
void test5() // sendDREF test
|
||||
void sendDREFTest() // sendDREF test
|
||||
{
|
||||
std::cout << "sendDREF - ";
|
||||
|
||||
@@ -175,7 +175,7 @@ void test5() // sendDREF test
|
||||
}
|
||||
}
|
||||
|
||||
void test6() // sendDATA test
|
||||
void sendDATATest() // sendDATA test
|
||||
{
|
||||
std::cout << "sendData - ";
|
||||
|
||||
@@ -229,7 +229,7 @@ void test6() // sendDATA test
|
||||
}
|
||||
}
|
||||
|
||||
void test7() // sendCTRL test
|
||||
void sendCTRLTest() // sendCTRL test
|
||||
{
|
||||
std::cout << "sendCTRL - ";
|
||||
|
||||
@@ -282,7 +282,7 @@ void test7() // sendCTRL test
|
||||
}
|
||||
}
|
||||
|
||||
void test8() // sendPOSI test
|
||||
void sendPOSITest() // sendPOSI test
|
||||
{
|
||||
std::cout << "sendPOSI - ";
|
||||
|
||||
@@ -346,7 +346,7 @@ void test8() // sendPOSI test
|
||||
}
|
||||
}
|
||||
|
||||
void test9() // pauseSim test
|
||||
void pauseTest() // pauseSim test
|
||||
{
|
||||
std::cout << "pauseSim - ";
|
||||
|
||||
@@ -412,7 +412,7 @@ void test9() // pauseSim test
|
||||
}
|
||||
}
|
||||
|
||||
void test10() // setConn test
|
||||
void connTest() // setConn test
|
||||
{
|
||||
std::cout << "setConn - ";
|
||||
|
||||
@@ -468,16 +468,16 @@ int main(int argc, const char * argv[])
|
||||
std::cout << "(Linux) \n";
|
||||
#endif
|
||||
|
||||
runTest(test1);
|
||||
runTest(test2);
|
||||
runTest(test3);
|
||||
runTest(test4);
|
||||
runTest(test5);
|
||||
runTest(test6);
|
||||
runTest(test7);
|
||||
runTest(test8);
|
||||
runTest(test9);
|
||||
runTest(test10);
|
||||
runTest(openUDPTest);
|
||||
runTest(closeUDPTest);
|
||||
runTest(sendReadTest);
|
||||
runTest(requestDREFTest);
|
||||
runTest(sendDREFTest);
|
||||
runTest(sendDATATest);
|
||||
runTest(sendCTRLTest);
|
||||
runTest(sendPOSITest);
|
||||
runTest(pauseTest);
|
||||
runTest(connTest);
|
||||
|
||||
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