Bug 296953 - error regression tests needed
Summary: error regression tests needed
Status: CLOSED FIXED
Alias: None
Product: RTSC (ARCHIVED)
Classification: Technology
Component: Tools (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P1 normal (vote)
Target Milestone: ---   Edit
Assignee: Sasha Slijepcevic CLA
QA Contact:
URL:
Whiteboard: target:3.23
Keywords: test
Depends on:
Blocks:
 
Reported: 2009-12-04 13:40 EST by Dave Russo CLA
Modified: 2011-11-24 13:10 EST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dave Russo CLA 2009-12-04 13:40:18 EST
To prevent bugs like 296749 we need a set of tests in the xdctest tree that exercise _every_ "throw xdc.$$XDCException" line in every *.xs file in the xdccore tree.
Comment 1 Sasha Slijepcevic CLA 2010-07-21 15:05:30 EDT
The tree xdctest-a24 contains multiple tests under ecl/ecl296953*. These tests are exercising XDCExceptions from xdc core packages.
Comment 2 Dave Russo CLA 2011-06-15 20:21:38 EDT
Moved to fix verify to XDCtools 3.22.02
Comment 3 Vikram Adiga CLA 2011-11-14 20:42:45 EST
Verification:

XDC product:	xdctools_3_23_00_29_eng

XDC testtree:	xdctest-b06


Found 19 Occurences of "throw xdc.$$XDCException" were found in 3 .xs files (BuildEnvironment.xs, PackageContents.xs, Main.xs). 

The following table shows the test cases for each error type.

ERROR TYPE (# of occurences) - 		TEST CASES

BuildEnvironment.xs (6)   


xdc.bld.DUPLICATE_TARGET_ERROR - 	ecl296953b/duplicateTarget/
xdc.bld.TARGET_CONFIG_ERROR - 	 	ecl296953b/undefinedTarget/
xdc.bld.ROOTDIR_NOT_SET - 		ecl296953b/noRootDir/
xdc.bld.PARAMETER_MISMATCH - 		Not tested
xdc.bld.PACKAGE_NOT_BUILT - 		ecl296953b/invalidReleaseDesc/
xdc.bld.INVALID_PACKAGE - 		ecl296953b/invalidReleaseDesc2/

PackageContents.xs (11)

xdc.bld.LIBRARY_EXISTS - 		ecl296953b/testpkg2/
xdc.bld.EXECUTABLE_EXISTS - 		ecl296953b/testpkg3/
xdc.bld.INVALID_RELEASE_NAME - 		ecl296953b/invalidReleaseName/
xdc.bld.INVALID_RELEASE_PREFIX - 	ecl296953b/testpkg4/
xdc.bld.RELEASE_EXISTS - 		ecl296953b/testpkg5/
xdc.bld.REPOSITORY_EXISTS - 		ecl296953b/repositoryExists/
xdc.bld.SCRIPT_EXISTS - 		ecl296953b/scriptExists/
xdc.bld.INCORRECT_PACKAGE_NAME - 	ecl296953b/wrongPackageName/
xdc.bld.CREATE_DIR_ERROR (3) - 		ecl296953b/cfgDirFail/ 
					ecl296953b/libDirFail/ 
					ecl296953b/relDirFail/


Main.xs (2)
xdc.cfg.CONFIG_ERROR (2) - 		ecl296953b/


RESULT:

  All "xdc.$$XDCException"s have been verified to have test cases except xdc.bld.PARAMETER_MISMATCH
Comment 4 Dave Russo CLA 2011-11-24 13:10:23 EST
shipped in XDCtools 3.23 (http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/rtsc/3_23_00_32)