Bug 4088

Summary: Improved DataType_Handler
Product: DAnCE Reporter: Jiang Wei <jiangwei_1976>
Component: LocalityManagerAssignee: Jiang Wei <jiangwei_1976>
Status: NEW ---    
Severity: enhancement    
Priority: P3    
Version: 1.1.7   
Hardware: All   
OS: All   
Attachments: handle tk_enum, tk_struct, tk_sequence and tk_enum
ccd handler unit test
new test for ccd_handler

Description Jiang Wei 2013-01-29 04:29:01 CST
Created attachment 1448 [details]
handle tk_enum, tk_struct, tk_sequence and tk_enum

Repository Manager cann't handle tk_enum, tk_struct, tk_sequence, tk_enum.

The following two files seem to be useless.
* DAnCE/tools/Config_Handlers/DynAny_Handler/DataType_Handler.cpp
* DAnCE/tools/Config_Handlers/DynAny_Handler/DataType_Handler.h
Comment 1 Johnny Willemsen 2013-01-29 08:01:06 CST
Also for this one, any test extensions that tests this?
Comment 2 Jiang Wei 2013-01-29 21:18:12 CST
Created attachment 1450 [details]
ccd handler unit test

$ tao_idl3_to_ccd test.idl
processing test.idl
$ for ccd in *.ccd; do echo -e "\ntesting $ccd ..."; ./test -i $ccd; done 

testing Foo.ccd ...
Instance document import succeeded.

testing FooUnion.ccd ...
Parse Error : open FooUnion.ccd faild

testing FooValue.ccd ...
terminate called after throwing an instance of 'int'
Aborted (core dumped)

testing FooValueBox.ccd ...
Parse Error : open FooValueBox.ccd faild
Comment 3 Jiang Wei 2013-01-30 20:39:59 CST
Created attachment 1451 [details]
new test for ccd_handler

for ccd in *.ccd; do ./test -i $ccd; done
"FooAliasSequence.ccd" import succeeded.
"FooEnum.ccd" import succeeded.
"FooStruct.ccd" import succeeded.
"FooUnion.ccd" Parse Error: create_dom failed.
"FooValueBox.ccd" Config Error : Unsupport data type.
"FooValue.ccd" Config Error : Unsupport data type.