-
Notifications
You must be signed in to change notification settings - Fork 304
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
HPCC-30310 Allow esdl ecl command to output to stdout
Update esdl ecl command to allow output to stdout by making the outputDir parameter optional. When using stdout, restrict the use of options to those combinations that result in a single file output. Disabled verbose output in the call to EsdlCmdHelper::convertECMtoESXDL to avoid printing extra text to stdout. Update esdl regression test with cases for esdl ecl, though the suite needs independent updates to bring tests of the other commands in line with recent platform changes. This will be handled in the ticket HPCC-30699. Signed-off-by: Terrence Asselin <[email protected]>
- Loading branch information
Showing
6 changed files
with
405 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
/*** Not to be hand edited (changes will be lost on re-generation) ***/ | ||
/*** ECL Interface generated by esdl2ecl version 1.0 from allversionreport.xml. ***/ | ||
/*===================================================*/ | ||
|
||
|
||
EXPORT allversionreport := MODULE | ||
|
||
EXPORT t_FooBar := RECORD | ||
UTF8 Foo {XPATH('Foo')}; | ||
UTF8 Bar {XPATH('Bar')}; | ||
END; | ||
|
||
EXPORT t_AllVersionArrays := RECORD | ||
SET OF UTF8 StringArray {XPATH('StringArray/Item'), MAXCOUNT(1)}; // max_count must be specified in ESDL defintion! | ||
DATASET(t_FooBar) FooBarArray {XPATH('FooBarArray/FooBar'), MAXCOUNT(1)}; // max_count must be specified in ESDL defintion! | ||
DATASET(t_FooBar) NamedItemFooBarArray {XPATH('NamedItemFooBarArray/NamedItem'), MAXCOUNT(1)}; // max_count must be specified in ESDL defintion! | ||
END; | ||
|
||
EXPORT t_AllVersionReportRequest := RECORD | ||
UTF8 OptionalDeveloperStringVal {XPATH('OptionalDeveloperStringVal')};//hidden[developer] | ||
INTEGER Annotate20ColsIntVal {XPATH('Annotate20ColsIntVal')}; | ||
t_AllVersionArrays Arrays {XPATH('Arrays')}; | ||
UTF8 UnrelentingForce {XPATH('UnrelentingForce')}; //values['1','2','3',''] | ||
END; | ||
|
||
EXPORT t_AllVersionReportResponse := RECORD | ||
UTF8 ResultVal {XPATH('ResultVal')}; | ||
t_AllVersionArrays ResultArrays {XPATH('ResultArrays')}; | ||
END; | ||
|
||
|
||
END; | ||
|
||
/*** Not to be hand edited (changes will be lost on re-generation) ***/ | ||
/*** ECL Interface generated by esdl2ecl version 1.0 from allversionreport.xml. ***/ | ||
/*===================================================*/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
/*** Not to be hand edited (changes will be lost on re-generation) ***/ | ||
/*** ECL Interface generated by esdl2ecl version 1.0 from ws_test.xml. ***/ | ||
/*===================================================*/ | ||
|
||
|
||
EXPORT ws_test := MODULE | ||
|
||
EXPORT t_MinVersionReportRequest := RECORD | ||
UTF8 RequestString {XPATH('RequestString')}; | ||
END; | ||
|
||
EXPORT t_VersionRangeReportRequest := RECORD | ||
UTF8 RequestString {XPATH('RequestString')}; | ||
END; | ||
|
||
EXPORT t_VersionRangeReportResponse := RECORD | ||
UTF8 ResponseString {XPATH('ResponseString')}; | ||
END; | ||
|
||
/*Empty record generated from empty EsdlRequest | ||
EXPORT t_WsTestPingRequest := RECORD | ||
END; | ||
*/ | ||
|
||
EXPORT t_MinVersionReportResponse := RECORD | ||
UTF8 ResponseString {XPATH('ResponseString')}; | ||
END; | ||
|
||
/*Empty record generated from empty EsdlResponse | ||
EXPORT t_WsTestPingResponse := RECORD | ||
END; | ||
*/ | ||
|
||
|
||
END; | ||
|
||
/*** Not to be hand edited (changes will be lost on re-generation) ***/ | ||
/*** ECL Interface generated by esdl2ecl version 1.0 from ws_test.xml. ***/ | ||
/*===================================================*/ | ||
|
63 changes: 63 additions & 0 deletions
63
testing/esp/esdlcmd/key/ecl-stdout-incl-rollup/from-stdout.ecl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
/*** Not to be hand edited (changes will be lost on re-generation) ***/ | ||
/*** ECL Interface generated by esdl2ecl version 1.0 from ws_test.xml. ***/ | ||
/*===================================================*/ | ||
|
||
|
||
EXPORT ws_test := MODULE | ||
|
||
EXPORT t_FooBar := RECORD | ||
UTF8 Foo {XPATH('Foo')}; | ||
UTF8 Bar {XPATH('Bar')}; | ||
END; | ||
|
||
EXPORT t_AllVersionArrays := RECORD | ||
SET OF UTF8 StringArray {XPATH('StringArray/Item'), MAXCOUNT(1)}; // max_count must be specified in ESDL defintion! | ||
DATASET(t_FooBar) FooBarArray {XPATH('FooBarArray/FooBar'), MAXCOUNT(1)}; // max_count must be specified in ESDL defintion! | ||
DATASET(t_FooBar) NamedItemFooBarArray {XPATH('NamedItemFooBarArray/NamedItem'), MAXCOUNT(1)}; // max_count must be specified in ESDL defintion! | ||
END; | ||
|
||
EXPORT t_AllVersionReportRequest := RECORD | ||
UTF8 OptionalDeveloperStringVal {XPATH('OptionalDeveloperStringVal')};//hidden[developer] | ||
INTEGER Annotate20ColsIntVal {XPATH('Annotate20ColsIntVal')}; | ||
t_AllVersionArrays Arrays {XPATH('Arrays')}; | ||
UTF8 UnrelentingForce {XPATH('UnrelentingForce')}; //values['1','2','3',''] | ||
END; | ||
|
||
EXPORT t_MinVersionReportRequest := RECORD | ||
UTF8 RequestString {XPATH('RequestString')}; | ||
END; | ||
|
||
EXPORT t_VersionRangeReportRequest := RECORD | ||
UTF8 RequestString {XPATH('RequestString')}; | ||
END; | ||
|
||
EXPORT t_VersionRangeReportResponse := RECORD | ||
UTF8 ResponseString {XPATH('ResponseString')}; | ||
END; | ||
|
||
/*Empty record generated from empty EsdlRequest | ||
EXPORT t_WsTestPingRequest := RECORD | ||
END; | ||
*/ | ||
|
||
EXPORT t_AllVersionReportResponse := RECORD | ||
UTF8 ResultVal {XPATH('ResultVal')}; | ||
t_AllVersionArrays ResultArrays {XPATH('ResultArrays')}; | ||
END; | ||
|
||
EXPORT t_MinVersionReportResponse := RECORD | ||
UTF8 ResponseString {XPATH('ResponseString')}; | ||
END; | ||
|
||
/*Empty record generated from empty EsdlResponse | ||
EXPORT t_WsTestPingResponse := RECORD | ||
END; | ||
*/ | ||
|
||
|
||
END; | ||
|
||
/*** Not to be hand edited (changes will be lost on re-generation) ***/ | ||
/*** ECL Interface generated by esdl2ecl version 1.0 from ws_test.xml. ***/ | ||
/*===================================================*/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
/*** Not to be hand edited (changes will be lost on re-generation) ***/ | ||
/*** ECL Interface generated by esdl2ecl version 1.0 from ws_test.xml. ***/ | ||
/*===================================================*/ | ||
|
||
|
||
EXPORT ws_test := MODULE | ||
|
||
EXPORT t_MinVersionReportRequest := RECORD | ||
UTF8 RequestString {XPATH('RequestString')}; | ||
END; | ||
|
||
EXPORT t_VersionRangeReportRequest := RECORD | ||
UTF8 RequestString {XPATH('RequestString')}; | ||
END; | ||
|
||
EXPORT t_VersionRangeReportResponse := RECORD | ||
UTF8 ResponseString {XPATH('ResponseString')}; | ||
END; | ||
|
||
/*Empty record generated from empty EsdlRequest | ||
EXPORT t_WsTestPingRequest := RECORD | ||
END; | ||
*/ | ||
|
||
EXPORT t_MinVersionReportResponse := RECORD | ||
UTF8 ResponseString {XPATH('ResponseString')}; | ||
END; | ||
|
||
/*Empty record generated from empty EsdlResponse | ||
EXPORT t_WsTestPingResponse := RECORD | ||
END; | ||
*/ | ||
|
||
|
||
END; | ||
|
||
/*** Not to be hand edited (changes will be lost on re-generation) ***/ | ||
/*** ECL Interface generated by esdl2ecl version 1.0 from ws_test.xml. ***/ | ||
/*===================================================*/ | ||
|
Oops, something went wrong.