mirror of
https://github.com/nasa/fprime.git
synced 2025-12-10 00:44:37 -06:00
mstarch: finalizing Autocoders -> Autocoders/Python move
This commit is contained in:
parent
b52e1d68d4
commit
6a9e0f3369
@ -193,7 +193,7 @@ def runTestGen(testGenPath, verbose):
|
||||
supported_apps = generate_constants()
|
||||
# Change open all supported applications and run testGen
|
||||
for app in supported_apps:
|
||||
appPath = "{BUILD_ROOT}/Autocoders/test/{APP_DIR}".format(BUILD_ROOT=os.environ.get('BUILD_ROOT'), APP_DIR=app)
|
||||
appPath = "{BUILD_ROOT}/Autocoders/Python/test/{APP_DIR}".format(BUILD_ROOT=os.environ.get('BUILD_ROOT'), APP_DIR=app)
|
||||
logging.debug("Entering: %s" % appPath)
|
||||
|
||||
os.chdir(appPath)
|
||||
@ -218,7 +218,7 @@ def cleanTestGen():
|
||||
supported_apps = generate_constants()
|
||||
# Change open all supported applications and run testGen
|
||||
for app in supported_apps:
|
||||
appPath = "{BUILD_ROOT}/Autocoders/test/{APP_DIR}".format(BUILD_ROOT=os.environ.get('BUILD_ROOT'), APP_DIR=app)
|
||||
appPath = "{BUILD_ROOT}/Autocoders/Python/test/{APP_DIR}".format(BUILD_ROOT=os.environ.get('BUILD_ROOT'), APP_DIR=app)
|
||||
logging.debug("Entering: %s" % appPath)
|
||||
|
||||
os.chdir(appPath)
|
||||
@ -235,15 +235,15 @@ def run_nose(nose_call):
|
||||
@param nose_call:
|
||||
Execute nose
|
||||
"""
|
||||
# Change directory to Autocoders/test
|
||||
os.chdir("{BUILD_ROOT}/Autocoders/test".format(BUILD_ROOT=os.environ.get('BUILD_ROOT')))
|
||||
# Change directory to Autocoders/Python/test
|
||||
os.chdir("{BUILD_ROOT}/Autocoders/Python/test".format(BUILD_ROOT=os.environ.get('BUILD_ROOT')))
|
||||
|
||||
print "\n\n--------------- Calling NoseTest ---------------\n %s\n" % nose_call
|
||||
print "--------------- Test List ---------------"
|
||||
subprocess.call(nose_call, shell=True)
|
||||
|
||||
# Reset directory
|
||||
os.chdir("{BUILD_ROOT}/Autocoders/".format(BUILD_ROOT=os.environ.get('BUILD_ROOT')))
|
||||
os.chdir("{BUILD_ROOT}/Autocoders/Python/".format(BUILD_ROOT=os.environ.get('BUILD_ROOT')))
|
||||
|
||||
|
||||
def init_parser():
|
||||
@ -255,7 +255,7 @@ def init_parser():
|
||||
Test Suite Utility
|
||||
''''''''''''''''''
|
||||
|
||||
README located in Autocoders/utils/Nosetests
|
||||
README located in Autocoders/Python/utils/Nosetests
|
||||
|
||||
Supported applications and their
|
||||
tests are specified below. To test
|
||||
@ -295,7 +295,7 @@ if __name__ == "__main__":
|
||||
|
||||
## Setup Paths
|
||||
BUILD_ROOT = os.environ.get('BUILD_ROOT')
|
||||
testGenPath = os.path.join(BUILD_ROOT, 'Autocoders/utils/NoseTests/TestGenerator.py')
|
||||
testGenPath = os.path.join(BUILD_ROOT, 'Autocoders/Python/utils/NoseTests/TestGenerator.py')
|
||||
|
||||
Parser = init_parser()
|
||||
args = Parser.parse_args()
|
||||
|
||||
@ -15,6 +15,6 @@ setenv PYTHON_BASE `make -f ${BUILD_ROOT}/mk/makefiles/build_vars.mk print_pytho
|
||||
echo "PYTHON_BASE: ${PYTHON_BASE}"
|
||||
|
||||
setenv LD_LIBRARY_PATH ${PYTHON_BASE}/lib
|
||||
setenv PYTHONPATH ${BUILD_ROOT}/Autocoders/src
|
||||
setenv PYTHONPATH ${BUILD_ROOT}/Autocoders/Python/src
|
||||
echo "PYTHONPATH: ${PYTHONPATH}"
|
||||
${PYTHON_BASE}/bin/python ${BUILD_ROOT}/Autocoders/bin/JSONDictionaryGen.py $*
|
||||
${PYTHON_BASE}/bin/python ${BUILD_ROOT}/Autocoders/Python/bin/JSONDictionaryGen.py $*
|
||||
|
||||
@ -704,7 +704,7 @@ def main():
|
||||
parser.add_argument('--template',
|
||||
action = 'store',
|
||||
required = True,
|
||||
help = 'Required. Fully-qualified file name of the cheetah template used by this script (normally in Autocoders/src/utils/TlmPacketDefBase.tmpl)')
|
||||
help = 'Required. Fully-qualified file name of the cheetah template used by this script (normally in Autocoders/Python/src/utils/TlmPacketDefBase.tmpl)')
|
||||
parser.add_argument('input_file',
|
||||
nargs='+',
|
||||
help = 'One or more input tab-delimited csv file names')
|
||||
|
||||
@ -13,7 +13,7 @@ which are lxml and cheetah.
|
||||
|
||||
To install lxml go to http://lxml.de/installation.html for download and
|
||||
install instructions. You might like to use the pip tool for installing
|
||||
and a version is already in accurev and located at Autocoders/utils/pip-1.2.1.
|
||||
and a version is already in accurev and located at Autocoders/Python/utils/pip-1.2.1.
|
||||
The other package you will need is the cheetah template language although I
|
||||
think the yacgen.py will actually run without it. Really Cheetah is just
|
||||
used to generate the template Python. I do not do the conversion at run-time
|
||||
@ -21,7 +21,7 @@ but precompile all templates and version control both templates and generated
|
||||
python. Anyways documentation on Cheetah is located at
|
||||
http://www.cheetahtemplate.org/index.html and one can download the
|
||||
software from this site as well. Cheetah is also in accurev and is
|
||||
located at Autocoders/utils/Cheetah-2.4.4.
|
||||
located at Autocoders/Python/utils/Cheetah-2.4.4.
|
||||
|
||||
|
||||
|
||||
|
||||
@ -92,16 +92,16 @@ class ConfigManager(ConfigParser.SafeConfigParser):
|
||||
################################################################
|
||||
#When using these, make sure to either prepend the build root env var or the appropriate amount of "../"
|
||||
self.__prop['schema'] = dict()
|
||||
self.__prop['schema']["commands"] = '/Autocoders/schema/default/command_schema.rng'
|
||||
self.__prop['schema']["events"] = '/Autocoders/schema/default/event_schema.rng'
|
||||
self.__prop['schema']["telemetry"] = '/Autocoders/schema/default/channel_schema.rng'
|
||||
self.__prop['schema']["component"] = '/Autocoders/schema/default/component_schema.rng'
|
||||
self.__prop['schema']["assembly"] = '/Autocoders/schema/default/topology_schema.rng'
|
||||
self.__prop['schema']["deployment"] = '/Autocoders/schema/default/topology_schema.rng'
|
||||
self.__prop['schema']["internal_interfaces"] = '/Autocoders/schema/default/internal_interface_schema.rng'
|
||||
self.__prop['schema']["interface"] = '/Autocoders/schema/default/interface_schema.rng'
|
||||
self.__prop['schema']["serializable"] = '/Autocoders/schema/default/serializable_schema.rng'
|
||||
self.__prop['schema']["parameters"] = '/Autocoders/schema/default/parameters_schema.rng'
|
||||
self.__prop['schema']["commands"] = '/Autocoders/Python/schema/default/command_schema.rng'
|
||||
self.__prop['schema']["events"] = '/Autocoders/Python/schema/default/event_schema.rng'
|
||||
self.__prop['schema']["telemetry"] = '/Autocoders/Python/schema/default/channel_schema.rng'
|
||||
self.__prop['schema']["component"] = '/Autocoders/Python/schema/default/component_schema.rng'
|
||||
self.__prop['schema']["assembly"] = '/Autocoders/Python/schema/default/topology_schema.rng'
|
||||
self.__prop['schema']["deployment"] = '/Autocoders/Python/schema/default/topology_schema.rng'
|
||||
self.__prop['schema']["internal_interfaces"] = '/Autocoders/Python/schema/default/internal_interface_schema.rng'
|
||||
self.__prop['schema']["interface"] = '/Autocoders/Python/schema/default/interface_schema.rng'
|
||||
self.__prop['schema']["serializable"] = '/Autocoders/Python/schema/default/serializable_schema.rng'
|
||||
self.__prop['schema']["parameters"] = '/Autocoders/Python/schema/default/parameters_schema.rng'
|
||||
self._setSectionDefaults('schema')
|
||||
################################################################
|
||||
# component parameters here.
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<?oxygen RNGSchema="file:../../Autocoders/schema/ISF_Type_Schema.rnc" type="compact"?>
|
||||
<?oxygen RNGSchema="file:../../Autocoders/Python/schema/ISF_Type_Schema.rnc" type="compact"?>
|
||||
<interface name="Another" namespace="SomeOtherNamespace">
|
||||
<comment>
|
||||
Another example port
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<?oxygen RNGSchema="file:../../Autocoders/schema/ISF_Type_Schema.rnc" type="compact"?>
|
||||
<?oxygen RNGSchema="file:../../Autocoders/Python/schema/ISF_Type_Schema.rnc" type="compact"?>
|
||||
<serializable namespace="Example4" name="Example2">
|
||||
<comment>
|
||||
This is an optional comment describing the serializable class.
|
||||
|
||||
@ -2,10 +2,10 @@
|
||||
<?oxygen RNGSchema="file:../xml/ISF_Component_Schema.rnc" type="compact"?>
|
||||
|
||||
<component name="Example" kind="active" namespace="ExampleComponents">
|
||||
<import_port_type>Autocoders/templates/ExamplePortAi.xml</import_port_type>
|
||||
<import_port_type>Autocoders/templates/AnotherPortAi.xml</import_port_type>
|
||||
<import_serializable_type>Autocoders/templates/Example2SerializableAi.xml</import_serializable_type>
|
||||
<include_header>Autocoders/templates/ExampleType.hpp</include_header>
|
||||
<import_port_type>Autocoders/Python/templates/ExamplePortAi.xml</import_port_type>
|
||||
<import_port_type>Autocoders/Python/templates/AnotherPortAi.xml</import_port_type>
|
||||
<import_serializable_type>Autocoders/Python/templates/Example2SerializableAi.xml</import_serializable_type>
|
||||
<include_header>Autocoders/Python/templates/ExampleType.hpp</include_header>
|
||||
<comment>An example component</comment>
|
||||
<ports>
|
||||
<port name="exampleInput" data_type="AnotherExample::Example" kind="async_input" priority="2" max_number="6" full="drop">
|
||||
|
||||
@ -5,7 +5,7 @@
|
||||
* Author: tcanham
|
||||
*/
|
||||
|
||||
#include <Autocoders/templates/ExampleComponentImpl.hpp>
|
||||
#include <Autocoders/Python/templates/ExampleComponentImpl.hpp>
|
||||
#include <stdio.h>
|
||||
|
||||
namespace ExampleComponents {
|
||||
|
||||
@ -8,7 +8,7 @@
|
||||
#ifndef EXAMPLECOMPONENTIMPL_HPP_
|
||||
#define EXAMPLECOMPONENTIMPL_HPP_
|
||||
|
||||
#include <Autocoders/templates/ExampleComponentAc.hpp>
|
||||
#include <Autocoders/Python/templates/ExampleComponentAc.hpp>
|
||||
|
||||
namespace ExampleComponents {
|
||||
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<?oxygen RNGSchema="file:../../Autocoders/schema/ISF_Type_Schema.rnc" type="compact"?>
|
||||
<?oxygen RNGSchema="file:../../Autocoders/Python/schema/ISF_Type_Schema.rnc" type="compact"?>
|
||||
<interface name="Example" namespace="AnotherExample">
|
||||
<include_header>Autocoders/templates/ExampleType.hpp</include_header>
|
||||
<import_serializable_type>Autocoders/templates/ExampleSerializableAi.xml</import_serializable_type>
|
||||
<include_header>Autocoders/Python/templates/ExampleType.hpp</include_header>
|
||||
<import_serializable_type>Autocoders/Python/templates/ExampleSerializableAi.xml</import_serializable_type>
|
||||
<comment>
|
||||
An example port
|
||||
</comment>
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<?oxygen RNGSchema="file:../../Autocoders/schema/ISF_Type_Schema.rnc" type="compact"?>
|
||||
<?oxygen RNGSchema="file:../../Autocoders/Python/schema/ISF_Type_Schema.rnc" type="compact"?>
|
||||
<serializable namespace="Example3" name="ExampleSerializable" typeid = "123">
|
||||
<import_serializable_type>Autocoders/templates/Example2SerializableAi.xml</import_serializable_type>
|
||||
<include_header>Autocoders/templates/ExampleType.hpp</include_header>
|
||||
<import_serializable_type>Autocoders/Python/templates/Example2SerializableAi.xml</import_serializable_type>
|
||||
<include_header>Autocoders/Python/templates/ExampleType.hpp</include_header>
|
||||
<comment>
|
||||
This is an optional comment describing the serializable class.
|
||||
</comment>
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
#include <Autocoders/templates/ExampleType.hpp>
|
||||
#include <Autocoders/Python/templates/ExampleType.hpp>
|
||||
#include <Fw/Types/Assert.hpp>
|
||||
#if FW_SERIALIZABLE_TO_STRING
|
||||
#include <Fw/Types/EightyCharString.hpp>
|
||||
|
||||
@ -4,7 +4,7 @@
|
||||
|
||||
# derive module name from directory
|
||||
|
||||
MODULE_DIR = Autocoders/templates
|
||||
MODULE_DIR = Autocoders/Python/templates
|
||||
MODULE = $(subst /,,$(MODULE_DIR))
|
||||
|
||||
BUILD_ROOT ?= $(subst /$(MODULE_DIR),,$(CURDIR))
|
||||
@ -12,4 +12,4 @@ export BUILD_ROOT
|
||||
|
||||
include $(BUILD_ROOT)/mk/makefiles/module_targets.mk
|
||||
|
||||
# Add module specific targets here
|
||||
# Add module specific targets here
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
NOTE:
|
||||
|
||||
To regenerate the example component, from Autocoders/templates, type:
|
||||
To regenerate the example component, from Autocoders/Python/templates, type:
|
||||
"make test_<host os>", where host_os = cygwin, linux, darwin.
|
||||
Then copy the "ExampleComponentTestAc.cpp/.hpp" files to this directory. Change the header include in the .cpp file to match the unit test directory path.
|
||||
|
||||
@ -12,4 +12,4 @@ TestComponentImpl.cpp(.hpp) - Developer-written test component.
|
||||
|
||||
mod.mk - make configuration file listing sources to build
|
||||
|
||||
test/ut - sample unit test for testing component
|
||||
test/ut - sample unit test for testing component
|
||||
|
||||
@ -20,7 +20,7 @@
|
||||
#ifndef Example_TESTER_BASE_HPP
|
||||
#define Example_TESTER_BASE_HPP
|
||||
|
||||
#include <Autocoders/templates/ExampleComponentAc.hpp>
|
||||
#include <Autocoders/Python/templates/ExampleComponentAc.hpp>
|
||||
#include <Fw/Types/Assert.hpp>
|
||||
#include <Fw/Comp/PassiveComponentBase.hpp>
|
||||
#include <stdio.h>
|
||||
|
||||
@ -21,5 +21,5 @@
|
||||
|
||||
TEST_SRC = TesterBase.cpp GTestBase.cpp main.cpp
|
||||
|
||||
TEST_MODS = Autocoders/templates Fw/Cmd Fw/Comp Fw/Port Fw/Prm Fw/Time Fw/Tlm Fw/Types Fw/Log Fw/Obj Os Fw/Com gtest
|
||||
TEST_MODS = Autocoders/Python/templates Fw/Cmd Fw/Comp Fw/Port Fw/Prm Fw/Time Fw/Tlm Fw/Types Fw/Log Fw/Obj Os Fw/Com gtest
|
||||
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
#!/bin/sh
|
||||
echo "Running ${BUILD_ROOT}/Autocoders/templates/test/ut/$1/test_ut"
|
||||
${BUILD_ROOT}/Autocoders/templates/test/ut/$1/test_ut
|
||||
echo "Running ${BUILD_ROOT}/Autocoders/Python/templates/test/ut/$1/test_ut"
|
||||
${BUILD_ROOT}/Autocoders/Python/templates/test/ut/$1/test_ut
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
#!/bin/sh
|
||||
echo "Running ${BUILD_ROOT}/Autocoders/templates/test/ut/$1/test_ut"
|
||||
${BUILD_ROOT}/Autocoders/templates/test/ut/$1/test_ut
|
||||
echo "Running ${BUILD_ROOT}/Autocoders/Python/templates/test/ut/$1/test_ut"
|
||||
${BUILD_ROOT}/Autocoders/Python/templates/test/ut/$1/test_ut
|
||||
|
||||
~
|
||||
~
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
#!/bin/sh
|
||||
echo "Running ${BUILD_ROOT}/Autocoders/templates/test/ut/$1/test_ut"
|
||||
${BUILD_ROOT}/Autocoders/templates/test/ut/$1/test_ut
|
||||
echo "Running ${BUILD_ROOT}/Autocoders/Python/templates/test/ut/$1/test_ut"
|
||||
${BUILD_ROOT}/Autocoders/Python/templates/test/ut/$1/test_ut
|
||||
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
#ifndef __COMPONENTS_HPP_
|
||||
#define __COMPONENTS_HPP_
|
||||
|
||||
#include <Autocoders/test/active_tester/Simple_Active_TesterImpl.hpp>
|
||||
#include <Autocoders/test/active_tester/Simple_ActiveImpl.hpp>
|
||||
#include <Autocoders/Python/test/active_tester/Simple_Active_TesterImpl.hpp>
|
||||
#include <Autocoders/Python/test/active_tester/Simple_ActiveImpl.hpp>
|
||||
|
||||
extern Simple_Active_Tester::Simple_Active_TesterImpl CompA_Tester;
|
||||
extern Simple_Active::Simple_ActiveImpl CompA;
|
||||
|
||||
@ -5,7 +5,7 @@
|
||||
# derive module name from directory
|
||||
DEPLOYMENT = Top
|
||||
|
||||
MODULE_DIR = Autocoders/test/active_tester
|
||||
MODULE_DIR = Autocoders/Python/test/active_tester
|
||||
MODULE = $(subst /,,$(MODULE_DIR))
|
||||
|
||||
BUILD_ROOT ?= $(subst /$(MODULE_DIR),,$(CURDIR))
|
||||
|
||||
@ -3,8 +3,8 @@
|
||||
|
||||
<component name="Simple_Active" kind="active" namespace="Simple_Active" modeler="true">
|
||||
|
||||
<import_port_type>Autocoders/test/active_tester/F32PortAi.xml</import_port_type>
|
||||
<import_port_type>Autocoders/test/active_tester/U32PortAi.xml</import_port_type>
|
||||
<import_port_type>Autocoders/Python/test/active_tester/F32PortAi.xml</import_port_type>
|
||||
<import_port_type>Autocoders/Python/test/active_tester/U32PortAi.xml</import_port_type>
|
||||
|
||||
<ports>
|
||||
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
#include <Autocoders/test/active_tester/Simple_ActiveImpl.hpp>
|
||||
#include <Autocoders/Python/test/active_tester/Simple_ActiveImpl.hpp>
|
||||
#include <iostream>
|
||||
|
||||
namespace Simple_Active{
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
#ifndef SIMPLE_ACTIVE_IMPL_HPP
|
||||
#define SIMPLE_ACTIVE_IMPL_HPP
|
||||
|
||||
#include <Autocoders/test/active_tester/Simple_ActiveComponentAc.hpp>
|
||||
#include <Autocoders/Python/test/active_tester/Simple_ActiveComponentAc.hpp>
|
||||
|
||||
namespace Simple_Active{
|
||||
|
||||
|
||||
@ -3,8 +3,8 @@
|
||||
|
||||
<component name="Simple_Active_Tester" kind="passive" namespace="Simple_Active_Tester" modeler="true">
|
||||
|
||||
<import_port_type>Autocoders/test/active_tester/F32PortAi.xml</import_port_type>
|
||||
<import_port_type>Autocoders/test/active_tester/U32PortAi.xml</import_port_type>
|
||||
<import_port_type>Autocoders/Python/test/active_tester/F32PortAi.xml</import_port_type>
|
||||
<import_port_type>Autocoders/Python/test/active_tester/U32PortAi.xml</import_port_type>
|
||||
|
||||
<ports>
|
||||
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
#include <Autocoders/test/active_tester/Simple_Active_TesterImpl.hpp>
|
||||
#include <Autocoders/Python/test/active_tester/Simple_Active_TesterImpl.hpp>
|
||||
|
||||
namespace Simple_Active_Tester {
|
||||
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
#include <Autocoders/test/active_tester/Simple_Active_TesterComponentAc.hpp>
|
||||
#include <Autocoders/Python/test/active_tester/Simple_Active_TesterComponentAc.hpp>
|
||||
|
||||
|
||||
namespace Simple_Active_Tester{
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
#include <Autocoders/test/active_tester/Simple_ActiveImpl.hpp>
|
||||
#include <Autocoders/test/active_tester/Simple_Active_TesterImpl.hpp>
|
||||
#include <Autocoders/Python/test/active_tester/Simple_ActiveImpl.hpp>
|
||||
#include <Autocoders/Python/test/active_tester/Simple_Active_TesterImpl.hpp>
|
||||
|
||||
|
||||
#include <iostream>
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
#Autocoders/test/active_tester
|
||||
#Autocoders/Python/test/active_tester
|
||||
|
||||
|
||||
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
<test_module path="/Autocoders/test/active_tester">
|
||||
<test_module path="/Autocoders/Python/test/active_tester">
|
||||
<test_case name="Sync_InputPortF32">
|
||||
<p_group>
|
||||
<p_expect>Enter g to go or q to quit:</p_expect>
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
#include <Autocoders/test/active_tester/Simple_ActiveImpl.hpp>
|
||||
#include <Autocoders/test/active_tester/Simple_Active_TesterImpl.hpp>
|
||||
#include <Autocoders/Python/test/active_tester/Simple_ActiveImpl.hpp>
|
||||
#include <Autocoders/Python/test/active_tester/Simple_Active_TesterImpl.hpp>
|
||||
|
||||
|
||||
#include <iostream>
|
||||
|
||||
@ -22,6 +22,6 @@
|
||||
TEST_SRC = Top.cpp
|
||||
|
||||
|
||||
TEST_MODS = Autocoders/test/active_tester Fw/Cmd Fw/Comp Fw/Port Fw/Prm Fw/Time Fw/Tlm Fw/Types Fw/Log Fw/Obj Os Fw/Com
|
||||
TEST_MODS = Autocoders/Python/test/active_tester Fw/Cmd Fw/Comp Fw/Port Fw/Prm Fw/Time Fw/Tlm Fw/Types Fw/Log Fw/Obj Os Fw/Com
|
||||
|
||||
|
||||
|
||||
@ -1,3 +1,3 @@
|
||||
#!/bin/sh
|
||||
echo "Running ${BUILD_ROOT}/Autocoders/test/active_tester/test/ut/$1/test_ut"
|
||||
${BUILD_ROOT}/Autocoders/test/active_tester/test/ut/$1/test_ut
|
||||
echo "Running ${BUILD_ROOT}/Autocoders/Python/test/active_tester/test/ut/$1/test_ut"
|
||||
${BUILD_ROOT}/Autocoders/Python/test/active_tester/test/ut/$1/test_ut
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
#!/bin/sh
|
||||
echo "Running ${BUILD_ROOT}/Autocoders/test/active_tester/test/ut/$1/test_ut"
|
||||
${BUILD_ROOT}/Autocoders/test/active_tester/test/ut/$1/test_ut
|
||||
echo "Running ${BUILD_ROOT}/Autocoders/Python/test/active_tester/test/ut/$1/test_ut"
|
||||
${BUILD_ROOT}/Autocoders/Python/test/active_tester/test/ut/$1/test_ut
|
||||
|
||||
|
||||
@ -1,11 +1,11 @@
|
||||
|
||||
#include <Autocoders/test/app1/Top.hpp>
|
||||
#include <Autocoders/Python/test/app1/Top.hpp>
|
||||
|
||||
#include <Fw/Obj/SimpleObjRegistry.hpp>
|
||||
#include <iostream>
|
||||
#include <string.h>
|
||||
|
||||
#include <Autocoders/test/app1/DuckDuckImpl.hpp>
|
||||
#include <Autocoders/Python/test/app1/DuckDuckImpl.hpp>
|
||||
|
||||
#include <unistd.h>
|
||||
|
||||
|
||||
@ -7,7 +7,7 @@
|
||||
Note kind attribute of component can be ether active or passive.
|
||||
-->
|
||||
<component name="Duck" kind="active" namespace="Duck">
|
||||
<import_port_type>Autocoders/test/app1/Msg1PortAi.xml</import_port_type>
|
||||
<import_port_type>Autocoders/Python/test/app1/Msg1PortAi.xml</import_port_type>
|
||||
<comment>A demonstration Duck component with three ports</comment>
|
||||
<ports>
|
||||
<!-- First port defined-->
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
#include <Autocoders/test/app1/DuckImpl.hpp>
|
||||
#include <Autocoders/Python/test/app1/DuckImpl.hpp>
|
||||
#include <Fw/Types/BasicTypes.hpp>
|
||||
#include <iostream>
|
||||
#include <stdio.h>
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
#ifndef DUCK_DUCK_IMPL_HPP
|
||||
#define DUCK_DUCK_IMPL_HPP
|
||||
|
||||
#include <Autocoders/test/app1/DuckComponentAc.hpp>
|
||||
#include <Autocoders/Python/test/app1/DuckComponentAc.hpp>
|
||||
|
||||
namespace Duck {
|
||||
|
||||
|
||||
@ -5,7 +5,7 @@
|
||||
# derive module name from directory
|
||||
DEPLOYMENT = Top
|
||||
|
||||
MODULE_DIR = Autocoders/test/app1
|
||||
MODULE_DIR = Autocoders/Python/test/app1
|
||||
MODULE = $(subst /,,$(MODULE_DIR))
|
||||
|
||||
BUILD_ROOT ?= $(subst /$(MODULE_DIR),,$(CURDIR))
|
||||
|
||||
@ -1,10 +1,10 @@
|
||||
#include <Autocoders/test/app1/Top.hpp>
|
||||
#include <Autocoders/Python/test/app1/Top.hpp>
|
||||
|
||||
#include <Fw/Obj/SimpleObjRegistry.hpp>
|
||||
#include <iostream>
|
||||
#include <string.h>
|
||||
|
||||
#include <Autocoders/test/app1/DuckImpl.hpp>
|
||||
#include <Autocoders/Python/test/app1/DuckImpl.hpp>
|
||||
|
||||
#include <unistd.h>
|
||||
|
||||
|
||||
@ -4,6 +4,6 @@ XMLDefaultFileName = False
|
||||
[port]
|
||||
XMLDefaultFileName = False
|
||||
[includes]
|
||||
comp_include_path=Autocoders/test/app1
|
||||
port_include_path=Autocoders/test/app1
|
||||
comp_include_path=Autocoders/Python/test/app1
|
||||
port_include_path=Autocoders/Python/test/app1
|
||||
|
||||
|
||||
@ -51,7 +51,7 @@ def c_port_send_test():
|
||||
|
||||
|
||||
def setup_module():
|
||||
os.chdir("{BUILD_ROOT}/Autocoders/test/app1".format(BUILD_ROOT=os.environ.get('BUILD_ROOT')))
|
||||
os.chdir("{BUILD_ROOT}/Autocoders/Python/test/app1".format(BUILD_ROOT=os.environ.get('BUILD_ROOT')))
|
||||
|
||||
make()
|
||||
make_ut()
|
||||
@ -66,7 +66,7 @@ def teardown_module():
|
||||
print "MAKE CLEAN ERROR"
|
||||
print "''''''''''''''''"
|
||||
print e.output
|
||||
os.chdir("{BUILD_ROOT}/Autocoders/test".format(BUILD_ROOT=os.environ.get('BUILD_ROOT')))
|
||||
os.chdir("{BUILD_ROOT}/Autocoders/Python/test".format(BUILD_ROOT=os.environ.get('BUILD_ROOT')))
|
||||
|
||||
def make():
|
||||
try:
|
||||
|
||||
@ -1,10 +1,10 @@
|
||||
#include <Autocoders/test/app1/Top.hpp>
|
||||
#include <Autocoders/Python/test/app1/Top.hpp>
|
||||
|
||||
#include <Fw/Obj/SimpleObjRegistry.hpp>
|
||||
#include <iostream>
|
||||
#include <string.h>
|
||||
|
||||
#include <Autocoders/test/app1/DuckImpl.hpp>
|
||||
#include <Autocoders/Python/test/app1/DuckImpl.hpp>
|
||||
|
||||
#include <unistd.h>
|
||||
|
||||
|
||||
@ -22,6 +22,6 @@
|
||||
TEST_SRC = Top.cpp
|
||||
|
||||
|
||||
TEST_MODS = Autocoders/test/app1 Fw/Cmd Fw/Comp Fw/Port Fw/Prm Fw/Time Fw/Tlm Fw/Types Fw/Log Fw/Obj Os Fw/Com
|
||||
TEST_MODS = Autocoders/Python/test/app1 Fw/Cmd Fw/Comp Fw/Port Fw/Prm Fw/Time Fw/Tlm Fw/Types Fw/Log Fw/Obj Os Fw/Com
|
||||
|
||||
|
||||
|
||||
@ -1,3 +1,3 @@
|
||||
#!/bin/sh
|
||||
echo "Running ${BUILD_ROOT}/Autocoders/test/app1/test/ut/$1/test_ut"
|
||||
${BUILD_ROOT}/Autocoders/test/app1/test/ut/$1/test_ut
|
||||
echo "Running ${BUILD_ROOT}/Autocoders/Python/test/app1/test/ut/$1/test_ut"
|
||||
${BUILD_ROOT}/Autocoders/Python/test/app1/test/ut/$1/test_ut
|
||||
|
||||
@ -1,3 +1,3 @@
|
||||
#!/bin/sh
|
||||
echo "Running ${BUILD_ROOT}/Autocoders/test/app1/test/ut/$1/test_ut"
|
||||
${BUILD_ROOT}/Autocoders/test/app1/test/ut/$1/test_ut
|
||||
echo "Running ${BUILD_ROOT}/Autocoders/Python/test/app1/test/ut/$1/test_ut"
|
||||
${BUILD_ROOT}/Autocoders/Python/test/app1/test/ut/$1/test_ut
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
#include <Autocoders/test/app2/App2VoidArgImpl.hpp>
|
||||
#include <Autocoders/Python/test/app2/App2VoidArgImpl.hpp>
|
||||
#include <Fw/Types/BasicTypes.hpp>
|
||||
#include <iostream>
|
||||
#include <stdio.h>
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
#ifndef DUCK_DUCK_IMPL_HPP
|
||||
#define DUCK_DUCK_IMPL_HPP
|
||||
|
||||
#include <Autocoders/test/app2/VoidArgComponentAc.hpp>
|
||||
#include <Autocoders/Python/test/app2/VoidArgComponentAc.hpp>
|
||||
|
||||
namespace App2 {
|
||||
|
||||
|
||||
@ -5,7 +5,7 @@
|
||||
# derive module name from directory
|
||||
DEPLOYMENT = Top
|
||||
|
||||
MODULE_DIR = Autocoders/test/app2
|
||||
MODULE_DIR = Autocoders/Python/test/app2
|
||||
MODULE = $(subst /,,$(MODULE_DIR))
|
||||
|
||||
BUILD_ROOT ?= $(subst /$(MODULE_DIR),,$(CURDIR))
|
||||
|
||||
@ -1,10 +1,10 @@
|
||||
#include <Autocoders/test/app2/Top.hpp>
|
||||
#include <Autocoders/Python/test/app2/Top.hpp>
|
||||
|
||||
#include <Fw/Obj/SimpleObjRegistry.hpp>
|
||||
#include <iostream>
|
||||
#include <string.h>
|
||||
|
||||
#include <Autocoders/test/app2/App2VoidArgImpl.hpp>
|
||||
#include <Autocoders/Python/test/app2/App2VoidArgImpl.hpp>
|
||||
|
||||
#include <unistd.h>
|
||||
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<?oxygen RNGSchema="file:../xml/ISF_Component_Schema.rnc" type="compact"?>
|
||||
<component name="VoidArg" kind="active" namespace="App2">
|
||||
<import_port_type>Autocoders/test/app2/VoidPortAi.xml</import_port_type>
|
||||
<import_port_type>Autocoders/test/app2/MsgPortAi.xml</import_port_type>
|
||||
<import_port_type>Autocoders/Python/test/app2/VoidPortAi.xml</import_port_type>
|
||||
<import_port_type>Autocoders/Python/test/app2/MsgPortAi.xml</import_port_type>
|
||||
<comment>
|
||||
A demonstration component that contains six instances
|
||||
of ports. Two input ports have no args and an outport
|
||||
|
||||
@ -4,6 +4,6 @@ XMLDefaultFileName = False
|
||||
[port]
|
||||
XMLDefaultFileName = False
|
||||
[includes]
|
||||
comp_include_path=Autocoders/test/app2
|
||||
port_include_path=Autocoders/test/app2
|
||||
comp_include_path=Autocoders/Python/test/app2
|
||||
port_include_path=Autocoders/Python/test/app2
|
||||
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
#Autocoders/test/app2
|
||||
#Autocoders/Python/test/app2
|
||||
|
||||
|
||||
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
<test_module path="/Autocoders/test/app2">
|
||||
<test_module path="/Autocoders/Python/test/app2">
|
||||
<test_case name="void_send">
|
||||
<p_group>
|
||||
<p_expect>\(1 or 2 or quit\):</p_expect>
|
||||
|
||||
@ -1,10 +1,10 @@
|
||||
#include <Autocoders/test/app2/Top.hpp>
|
||||
#include <Autocoders/Python/test/app2/Top.hpp>
|
||||
|
||||
#include <Fw/Obj/SimpleObjRegistry.hpp>
|
||||
#include <iostream>
|
||||
#include <string.h>
|
||||
|
||||
#include <Autocoders/test/app2/App2VoidArgImpl.hpp>
|
||||
#include <Autocoders/Python/test/app2/App2VoidArgImpl.hpp>
|
||||
|
||||
#include <unistd.h>
|
||||
|
||||
|
||||
@ -21,4 +21,4 @@
|
||||
|
||||
TEST_SRC = Top.cpp
|
||||
|
||||
TEST_MODS = Autocoders/test/app2 Fw/Cmd Fw/Comp Fw/Port Fw/Prm Fw/Time Fw/Tlm Fw/Types Fw/Log Fw/Obj Os Fw/Com
|
||||
TEST_MODS = Autocoders/Python/test/app2 Fw/Cmd Fw/Comp Fw/Port Fw/Prm Fw/Time Fw/Tlm Fw/Types Fw/Log Fw/Obj Os Fw/Com
|
||||
|
||||
@ -1,3 +1,3 @@
|
||||
#!/bin/sh
|
||||
echo "Running ${BUILD_ROOT}/Autocoders/test/app2/test/ut/$1/test_ut"
|
||||
${BUILD_ROOT}/Autocoders/test/app2/test/ut/$1/test_ut
|
||||
echo "Running ${BUILD_ROOT}/Autocoders/Python/test/app2/test/ut/$1/test_ut"
|
||||
${BUILD_ROOT}/Autocoders/Python/test/app2/test/ut/$1/test_ut
|
||||
|
||||
@ -1,3 +1,3 @@
|
||||
#!/bin/sh
|
||||
echo "Running ${BUILD_ROOT}/Autocoders/test/app2/test/ut/$1/test_ut"
|
||||
${BUILD_ROOT}/Autocoders/test/app2/test/ut/$1/test_ut
|
||||
echo "Running ${BUILD_ROOT}/Autocoders/Python/test/app2/test/ut/$1/test_ut"
|
||||
${BUILD_ROOT}/Autocoders/Python/test/app2/test/ut/$1/test_ut
|
||||
|
||||
@ -4,6 +4,6 @@ XMLDefaultFileName = False
|
||||
[port]
|
||||
XMLDefaultFileName = False
|
||||
[includes]
|
||||
comp_include_path=Autocoders/test/app3
|
||||
port_include_path=Autocoders/test/app3
|
||||
comp_include_path=Autocoders/Python/test/app3
|
||||
port_include_path=Autocoders/Python/test/app3
|
||||
|
||||
|
||||
@ -4,5 +4,5 @@ XMLDefaultFileName = True
|
||||
[port]
|
||||
XMLDefaultFileName = True
|
||||
[includes]
|
||||
comp_include_path=Autocoders/test/app4
|
||||
port_include_path=Autocoders/test/app4
|
||||
comp_include_path=Autocoders/Python/test/app4
|
||||
port_include_path=Autocoders/Python/test/app4
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
#include <Fw/Obj/SimpleObjRegistry.hpp>
|
||||
#include <string.h>
|
||||
|
||||
#include <Autocoders/test/app4/PartitionHubPartitionHubImpl.hpp>
|
||||
#include <Autocoders/test/app4/DuckDuckImpl.hpp>
|
||||
#include <Autocoders/Python/test/app4/PartitionHubPartitionHubImpl.hpp>
|
||||
#include <Autocoders/Python/test/app4/DuckDuckImpl.hpp>
|
||||
|
||||
#include <unistd.h>
|
||||
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
#include <Autocoders/test/cnt_only/Top.hpp>
|
||||
#include <Autocoders/test/cnt_only/DuckImpl.hpp>
|
||||
#include <Autocoders/Python/test/cnt_only/Top.hpp>
|
||||
#include <Autocoders/Python/test/cnt_only/DuckImpl.hpp>
|
||||
|
||||
extern Duck::DuckImpl* Huey_ptr;
|
||||
extern Duck::DuckImpl* Duey_ptr;
|
||||
|
||||
@ -7,7 +7,7 @@
|
||||
-->
|
||||
<?xml-model href="../../schema/ISF/component_schema.rng" type="application/xml" schematypens="http://relaxng.org/ns/structure/1.0"?>
|
||||
<component name="Duck" kind="active" namespace="Duck">
|
||||
<import_port_type>Autocoders/test/cnt_only/Msg1PortAi.xml</import_port_type>
|
||||
<import_port_type>Autocoders/Python/test/cnt_only/Msg1PortAi.xml</import_port_type>
|
||||
<comment>A demonstration Duck component with three ports</comment>
|
||||
<ports>
|
||||
<!-- First port defined-->
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
#include <Autocoders/test/cnt_only/DuckImpl.hpp>
|
||||
#include <Autocoders/Python/test/cnt_only/DuckImpl.hpp>
|
||||
#include <Fw/Types/BasicTypes.hpp>
|
||||
#include <iostream>
|
||||
#include <stdio.h>
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
#ifndef DUCK_DUCK_IMPL_HPP
|
||||
#define DUCK_DUCK_IMPL_HPP
|
||||
|
||||
#include <Autocoders/test/cnt_only/DuckComponentAc.hpp>
|
||||
#include <Autocoders/Python/test/cnt_only/DuckComponentAc.hpp>
|
||||
|
||||
namespace Duck {
|
||||
|
||||
|
||||
@ -5,7 +5,7 @@
|
||||
# derive module name from directory
|
||||
DEPLOYMENT = Top
|
||||
|
||||
MODULE_DIR = Autocoders/test/cnt_only
|
||||
MODULE_DIR = Autocoders/Python/test/cnt_only
|
||||
MODULE = $(subst /,,$(MODULE_DIR))
|
||||
|
||||
BUILD_ROOT ?= $(subst /$(MODULE_DIR),,$(CURDIR))
|
||||
|
||||
@ -1,10 +1,10 @@
|
||||
#include <Autocoders/test/cnt_only/Top.hpp>
|
||||
#include <Autocoders/Python/test/cnt_only/Top.hpp>
|
||||
|
||||
#include <Fw/Obj/SimpleObjRegistry.hpp>
|
||||
#include <iostream>
|
||||
#include <string.h>
|
||||
|
||||
#include <Autocoders/test/cnt_only/DuckImpl.hpp>
|
||||
#include <Autocoders/Python/test/cnt_only/DuckImpl.hpp>
|
||||
|
||||
#include <unistd.h>
|
||||
|
||||
|
||||
@ -44,7 +44,7 @@ def c_port_send_test():
|
||||
except EOF:
|
||||
assert True
|
||||
def setup_module():
|
||||
os.chdir("{BUILD_ROOT}/Autocoders/test/cnt_only".format(BUILD_ROOT=os.environ.get('BUILD_ROOT')))
|
||||
os.chdir("{BUILD_ROOT}/Autocoders/Python/test/cnt_only".format(BUILD_ROOT=os.environ.get('BUILD_ROOT')))
|
||||
|
||||
make()
|
||||
make_ut()
|
||||
@ -59,7 +59,7 @@ def teardown_module():
|
||||
print "MAKE CLEAN ERROR"
|
||||
print "''''''''''''''''"
|
||||
print e.output
|
||||
os.chdir("{BUILD_ROOT}/Autocoders/test".format(BUILD_ROOT=os.environ.get('BUILD_ROOT')))
|
||||
os.chdir("{BUILD_ROOT}/Autocoders/Python/test".format(BUILD_ROOT=os.environ.get('BUILD_ROOT')))
|
||||
|
||||
def make():
|
||||
try:
|
||||
|
||||
@ -1,10 +1,10 @@
|
||||
#include <Autocoders/test/cnt_only/Top.hpp>
|
||||
#include <Autocoders/Python/test/cnt_only/Top.hpp>
|
||||
|
||||
#include <Fw/Obj/SimpleObjRegistry.hpp>
|
||||
#include <iostream>
|
||||
#include <string.h>
|
||||
|
||||
#include <Autocoders/test/cnt_only/DuckImpl.hpp>
|
||||
#include <Autocoders/Python/test/cnt_only/DuckImpl.hpp>
|
||||
|
||||
#include <unistd.h>
|
||||
|
||||
|
||||
@ -22,6 +22,6 @@
|
||||
TEST_SRC = Top.cpp
|
||||
|
||||
|
||||
TEST_MODS = Autocoders/test/cnt_only Fw/Cmd Fw/Comp Fw/Port Fw/Prm Fw/Time Fw/Tlm Fw/Types Fw/Log Fw/Obj Os Fw/Com
|
||||
TEST_MODS = Autocoders/Python/test/cnt_only Fw/Cmd Fw/Comp Fw/Port Fw/Prm Fw/Time Fw/Tlm Fw/Types Fw/Log Fw/Obj Os Fw/Com
|
||||
|
||||
|
||||
|
||||
@ -1,3 +1,3 @@
|
||||
#!/bin/sh
|
||||
echo "Running ${BUILD_ROOT}/Autocoders/test/cnt_only/test/ut/$1/test_ut"
|
||||
${BUILD_ROOT}/Autocoders/test/cnt_only/test/ut/$1/test_ut
|
||||
echo "Running ${BUILD_ROOT}/Autocoders/Python/test/cnt_only/test/ut/$1/test_ut"
|
||||
${BUILD_ROOT}/Autocoders/Python/test/cnt_only/test/ut/$1/test_ut
|
||||
|
||||
@ -1,3 +1,3 @@
|
||||
#!/bin/sh
|
||||
echo "Running ${BUILD_ROOT}/Autocoders/test/cnt_only/test/ut/$1/test_ut"
|
||||
${BUILD_ROOT}/Autocoders/test/cnt_only/test/ut/$1/test_ut
|
||||
echo "Running ${BUILD_ROOT}/Autocoders/Python/test/cnt_only/test/ut/$1/test_ut"
|
||||
${BUILD_ROOT}/Autocoders/Python/test/cnt_only/test/ut/$1/test_ut
|
||||
|
||||
@ -4,7 +4,7 @@
|
||||
|
||||
# derive module name from directory
|
||||
|
||||
MODULE_DIR = Autocoders/test/command1
|
||||
MODULE_DIR = Autocoders/Python/test/command1
|
||||
MODULE = $(subst /,,$(MODULE_DIR))
|
||||
|
||||
BUILD_ROOT ?= $(subst /$(MODULE_DIR),,$(CURDIR))
|
||||
@ -12,4 +12,4 @@ export BUILD_ROOT
|
||||
|
||||
include $(BUILD_ROOT)/mk/makefiles/module_targets.mk
|
||||
|
||||
# Add module specific targets here
|
||||
# Add module specific targets here
|
||||
|
||||
@ -7,7 +7,7 @@
|
||||
Note kind attribute of component can be ether active or passive.
|
||||
-->
|
||||
<component name="Test1" kind="passive" namespace="Cmd">
|
||||
<import_port_type>Autocoders/test/command1/Test2PortAi.xml</import_port_type>
|
||||
<import_port_type>Autocoders/Python/test/command1/Test2PortAi.xml</import_port_type>
|
||||
<comment>A component with a single command</comment>
|
||||
<commands opcode_base="0x10">
|
||||
<!-- Input test command -->
|
||||
|
||||
@ -5,7 +5,7 @@
|
||||
* Author: tcanham
|
||||
*/
|
||||
|
||||
#include <Autocoders/test/command1/TestCommand1Impl.hpp>
|
||||
#include <Autocoders/Python/test/command1/TestCommand1Impl.hpp>
|
||||
#include <stdio.h>
|
||||
|
||||
#if FW_OBJECT_NAMES == 1
|
||||
|
||||
@ -8,7 +8,7 @@
|
||||
#ifndef TESTCOMMAND1IMPL_HPP_
|
||||
#define TESTCOMMAND1IMPL_HPP_
|
||||
|
||||
#include <Autocoders/test/command1/Test1ComponentAc.hpp>
|
||||
#include <Autocoders/Python/test/command1/Test1ComponentAc.hpp>
|
||||
|
||||
class TestCommand1Impl: public Cmd::Test1ComponentBase {
|
||||
public:
|
||||
|
||||
@ -5,7 +5,7 @@
|
||||
* Author: tcanham
|
||||
*/
|
||||
|
||||
#include <Autocoders/test/command1/TestCommandSourceImpl.hpp>
|
||||
#include <Autocoders/Python/test/command1/TestCommandSourceImpl.hpp>
|
||||
#include <stdio.h>
|
||||
|
||||
#if FW_OBJECT_NAMES == 1
|
||||
|
||||
@ -8,7 +8,7 @@
|
||||
#ifndef TESTCOMMANDSOURCEIMPL_HPP_
|
||||
#define TESTCOMMANDSOURCEIMPL_HPP_
|
||||
|
||||
#include <Autocoders/test/command_tester/CommandTestComponentAc.hpp>
|
||||
#include <Autocoders/Python/test/command_tester/CommandTestComponentAc.hpp>
|
||||
|
||||
class TestCommandSourceImpl: public Cmd::CommandTesterComponentBase {
|
||||
public:
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
#include <Autocoders/test/command1/TestCommand1Impl.hpp>
|
||||
#include <Autocoders/test/command1/TestCommandSourceImpl.hpp>
|
||||
#include <Autocoders/Python/test/command1/TestCommand1Impl.hpp>
|
||||
#include <Autocoders/Python/test/command1/TestCommandSourceImpl.hpp>
|
||||
#include <Fw/Obj/SimpleObjRegistry.hpp>
|
||||
|
||||
int main(int argc, char* argv[]) {
|
||||
|
||||
@ -21,7 +21,7 @@
|
||||
#define TESTER_HPP
|
||||
|
||||
#include "GTestBase.hpp"
|
||||
#include "Autocoders/test/command1/Test1ComponentImpl.hpp"
|
||||
#include "Autocoders/Python/test/command1/Test1ComponentImpl.hpp"
|
||||
|
||||
namespace Cmd {
|
||||
|
||||
|
||||
@ -20,7 +20,7 @@
|
||||
#ifndef Test1_TESTER_BASE_HPP
|
||||
#define Test1_TESTER_BASE_HPP
|
||||
|
||||
#include <Autocoders/test/command1/Test1ComponentAc.hpp>
|
||||
#include <Autocoders/Python/test/command1/Test1ComponentAc.hpp>
|
||||
#include <Fw/Types/Assert.hpp>
|
||||
#include <Fw/Comp/PassiveComponentBase.hpp>
|
||||
#include <stdio.h>
|
||||
|
||||
@ -21,4 +21,4 @@
|
||||
|
||||
TEST_SRC = GTestBase.cpp TesterBase.cpp main.cpp
|
||||
|
||||
TEST_MODS = Autocoders/test/command1 Fw/Cmd Fw/Comp Fw/Port Fw/Prm Fw/Time Fw/Tlm Fw/Types Fw/Log Fw/Obj Os Fw/Com gtest
|
||||
TEST_MODS = Autocoders/Python/test/command1 Fw/Cmd Fw/Comp Fw/Port Fw/Prm Fw/Time Fw/Tlm Fw/Types Fw/Log Fw/Obj Os Fw/Com gtest
|
||||
|
||||
@ -4,7 +4,7 @@
|
||||
|
||||
# derive module name from directory
|
||||
|
||||
MODULE_DIR = Autocoders/test/command2
|
||||
MODULE_DIR = Autocoders/Python/test/command2
|
||||
MODULE = $(subst /,,$(MODULE_DIR))
|
||||
|
||||
BUILD_ROOT ?= $(subst /$(MODULE_DIR),,$(CURDIR))
|
||||
@ -12,4 +12,4 @@ export BUILD_ROOT
|
||||
|
||||
include $(BUILD_ROOT)/mk/makefiles/module_targets.mk
|
||||
|
||||
# Add module specific targets here
|
||||
# Add module specific targets here
|
||||
|
||||
@ -18,7 +18,7 @@
|
||||
// ======================================================================
|
||||
|
||||
|
||||
#include <Autocoders/test/command2/TestCommandComponentImpl.hpp>
|
||||
#include <Autocoders/Python/test/command2/TestCommandComponentImpl.hpp>
|
||||
#include "Fw/Types/BasicTypes.hpp"
|
||||
|
||||
namespace AcTest {
|
||||
|
||||
@ -20,7 +20,7 @@
|
||||
#ifndef TestCommand_HPP
|
||||
#define TestCommand_HPP
|
||||
|
||||
#include "Autocoders/test/command2/TestComponentAc.hpp"
|
||||
#include "Autocoders/Python/test/command2/TestComponentAc.hpp"
|
||||
|
||||
namespace AcTest {
|
||||
|
||||
|
||||
@ -7,7 +7,7 @@
|
||||
Note kind attribute of component can be ether active or passive.
|
||||
-->
|
||||
<component name="TestCommand" kind="active" namespace="AcTest">
|
||||
<import_port_type>Autocoders/test/command2/TestPortAi.xml</import_port_type>
|
||||
<import_port_type>Autocoders/Python/test/command2/TestPortAi.xml</import_port_type>
|
||||
<comment>A component with a single command</comment>
|
||||
<commands>
|
||||
<!-- Input test command -->
|
||||
|
||||
@ -21,7 +21,7 @@
|
||||
#define TESTER_HPP
|
||||
|
||||
#include "GTestBase.hpp"
|
||||
#include "Autocoders/test/command2/TestCommandComponentImpl.hpp"
|
||||
#include "Autocoders/Python/test/command2/TestCommandComponentImpl.hpp"
|
||||
|
||||
namespace AcTest {
|
||||
|
||||
|
||||
@ -20,7 +20,7 @@
|
||||
#ifndef TestCommand_TESTER_BASE_HPP
|
||||
#define TestCommand_TESTER_BASE_HPP
|
||||
|
||||
#include <Autocoders/test/command2/TestComponentAc.hpp>
|
||||
#include <Autocoders/Python/test/command2/TestComponentAc.hpp>
|
||||
#include <Fw/Types/Assert.hpp>
|
||||
#include <Fw/Comp/PassiveComponentBase.hpp>
|
||||
#include <stdio.h>
|
||||
|
||||
@ -21,4 +21,4 @@
|
||||
|
||||
TEST_SRC = GTestBase.cpp TesterBase.cpp Tester.cpp main.cpp
|
||||
|
||||
TEST_MODS = Autocoders/test/command2 Fw/Cmd Fw/Comp Fw/Port Fw/Prm Fw/Time Fw/Tlm Fw/Types Fw/Log Fw/Obj Os Fw/Com gtest
|
||||
TEST_MODS = Autocoders/Python/test/command2 Fw/Cmd Fw/Comp Fw/Port Fw/Prm Fw/Time Fw/Tlm Fw/Types Fw/Log Fw/Obj Os Fw/Com gtest
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
#!/bin/sh
|
||||
cd ${BUILD_ROOT}/Autocoders/test/command2/test/ut
|
||||
echo "Running ${BUILD_ROOT}/Autocoders/test/command2/test/ut/$1/test_ut"
|
||||
${BUILD_ROOT}/Autocoders/test/command2/test/ut/$1/test_ut
|
||||
cd ${BUILD_ROOT}/Autocoders/Python/test/command2/test/ut
|
||||
echo "Running ${BUILD_ROOT}/Autocoders/Python/test/command2/test/ut/$1/test_ut"
|
||||
${BUILD_ROOT}/Autocoders/Python/test/command2/test/ut/$1/test_ut
|
||||
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
#!/bin/sh
|
||||
cd ${BUILD_ROOT}/Autocoders/test/command2/test/ut
|
||||
echo "Running ${BUILD_ROOT}/Autocoders/test/command2/test/ut/$1/test_ut"
|
||||
${BUILD_ROOT}/Autocoders/test/command2/test/ut/$1/test_ut
|
||||
cd ${BUILD_ROOT}/Autocoders/Python/test/command2/test/ut
|
||||
echo "Running ${BUILD_ROOT}/Autocoders/Python/test/command2/test/ut/$1/test_ut"
|
||||
${BUILD_ROOT}/Autocoders/Python/test/command2/test/ut/$1/test_ut
|
||||
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
#!/bin/sh
|
||||
cd ${BUILD_ROOT}/Autocoders/test/command2/test/ut
|
||||
echo "Running ${BUILD_ROOT}/Autocoders/test/command2/test/ut/$1/test_ut"
|
||||
${BUILD_ROOT}/Autocoders/test/command2/test/ut/$1/test_ut
|
||||
cd ${BUILD_ROOT}/Autocoders/Python/test/command2/test/ut
|
||||
echo "Running ${BUILD_ROOT}/Autocoders/Python/test/command2/test/ut/$1/test_ut"
|
||||
${BUILD_ROOT}/Autocoders/Python/test/command2/test/ut/$1/test_ut
|
||||
|
||||
|
||||
@ -4,7 +4,7 @@
|
||||
|
||||
# derive module name from directory
|
||||
|
||||
MODULE_DIR = Autocoders/test/command_multi_inst
|
||||
MODULE_DIR = Autocoders/Python/test/command_multi_inst
|
||||
MODULE = $(subst /,,$(MODULE_DIR))
|
||||
|
||||
BUILD_ROOT ?= $(subst /$(MODULE_DIR),,$(CURDIR))
|
||||
@ -12,4 +12,4 @@ export BUILD_ROOT
|
||||
|
||||
include $(BUILD_ROOT)/mk/makefiles/module_targets.mk
|
||||
|
||||
# Add module specific targets here
|
||||
# Add module specific targets here
|
||||
|
||||
@ -7,7 +7,7 @@
|
||||
Note kind attribute of component can be ether active or passive.
|
||||
-->
|
||||
<component name="Test1" kind="active" namespace="Cmd">
|
||||
<import_port_type>Autocoders/test/command_multi_inst/Test2PortAi.xml</import_port_type>
|
||||
<import_port_type>Autocoders/Python/test/command_multi_inst/Test2PortAi.xml</import_port_type>
|
||||
<comment>A component with a single command</comment>
|
||||
<commands opcode_base="0x10,0x20">
|
||||
<!-- Input test command -->
|
||||
|
||||
@ -5,7 +5,7 @@
|
||||
* Author: tcanham
|
||||
*/
|
||||
|
||||
#include <Autocoders/test/command_multi_inst/TestCommand1Impl.hpp>
|
||||
#include <Autocoders/Python/test/command_multi_inst/TestCommand1Impl.hpp>
|
||||
#include <stdio.h>
|
||||
|
||||
#if FW_OBJECT_NAMES == 1
|
||||
|
||||
@ -8,7 +8,7 @@
|
||||
#ifndef TESTCOMMAND1IMPL_HPP_
|
||||
#define TESTCOMMAND1IMPL_HPP_
|
||||
|
||||
#include <Autocoders/test/command_multi_inst/Test1ComponentAc.hpp>
|
||||
#include <Autocoders/Python/test/command_multi_inst/Test1ComponentAc.hpp>
|
||||
|
||||
class TestCommand1Impl: public Cmd::Test1ComponentBase {
|
||||
public:
|
||||
|
||||
@ -5,7 +5,7 @@
|
||||
* Author: tcanham
|
||||
*/
|
||||
|
||||
#include <Autocoders/test/command1/TestCommandSourceImpl.hpp>
|
||||
#include <Autocoders/Python/test/command1/TestCommandSourceImpl.hpp>
|
||||
#include <stdio.h>
|
||||
|
||||
#if FW_OBJECT_NAMES == 1
|
||||
|
||||
@ -8,7 +8,7 @@
|
||||
#ifndef TESTCOMMANDSOURCEIMPL_HPP_
|
||||
#define TESTCOMMANDSOURCEIMPL_HPP_
|
||||
|
||||
#include <Autocoders/test/command_tester/CommandTestComponentAc.hpp>
|
||||
#include <Autocoders/Python/test/command_tester/CommandTestComponentAc.hpp>
|
||||
|
||||
class TestCommandSourceImpl: public Cmd::CommandTesterComponentBase {
|
||||
public:
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
#include <Autocoders/test/command_multi_inst/TestCommand1Impl.hpp>
|
||||
#include <Autocoders/test/command_multi_inst/TestCommandSourceImpl.hpp>
|
||||
#include <Autocoders/Python/test/command_multi_inst/TestCommand1Impl.hpp>
|
||||
#include <Autocoders/Python/test/command_multi_inst/TestCommandSourceImpl.hpp>
|
||||
#include <Fw/Obj/SimpleObjRegistry.hpp>
|
||||
|
||||
int main(int argc, char* argv[]) {
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user