19 sys.path.insert(1,
"../")
25 from ManagerConfig
import *
27 configsample_spec = [
"implementation_id",
"ConfigSample",
28 "type_name",
"ConfigSample",
29 "description",
"Configuration example component",
31 "vendor",
"Shinji Kurihara, AIST",
32 "category",
"example",
33 "activity_type",
"DataFlowComponent",
36 "lang_type",
"compile",
38 "conf.default.int_param0",
"0",
39 "conf.default.int_param1",
"1",
40 "conf.default.double_param0",
"0.11",
41 "conf.default.double_param1",
"9.9",
42 "conf.default.str_param0",
"hoge",
43 "conf.default.str_param1",
"dara",
44 "conf.default.vector_param0",
"0.0,1.0,2.0,3.0,4.0",
50 argv = (sys.argv[0],
"-f",
"./rtc.conf")
55 OpenRTM_aist.Manager.instance().shutdownManager()
61 self.assertEqual(prop.getProperty(
"type_name"),
"ConfigSample",
"Result failed.")
65 argv = (sys.argv[0],
"-f",
"./rtc.conf")
74 self.assertEqual(self.
mgrConf.findConfigFile(),
True,
"Result failed.")
82 prop = self.
mgrConf.setSystemInformation(prop)
83 self.assertEqual(prop.getProperty(
"manager.os.name"),
"Linux",
"Result failed.")
88 self.assertEqual(self.
mgrConf.fileExist(
"rtc.conf"),
True,
"Result failed.")
89 self.assertEqual(self.
mgrConf.fileExist(
"./rtc.conf"),
True,
"Result failed.")
96 if __name__ ==
'__main__':
def test_findConfigFile(self)
The Properties class represents a persistent set of properties.
def test_setSystemInformation(self)