Diff

Differences From Artifact [cf8d3f1fd9]:

To Artifact [6b4cd9a999]:


   129    129   
   130    130   		# Create Tclkit
   131    131   		createdkit="tclkit-${version}"
   132    132   		outputname="${TESTDIR}/kits/tclkit-${version}-${kit}"
   133    133   		failoutputname="${TESTDIR}/kits/failed/tclkit-${version}-${kit}"
   134    134   		buildlog="${outputname}-build.log"
   135    135   		failbuildlog="${failoutputname}-build.log"
          136  +		testresultslog="${outputname}-tests.log"
   136    137   
   137    138   		if [ ! -f "${outputname}" ]; then
   138    139   			unset KITCREATOR_PKGS STATICTK
   139    140   
   140    141   			if [ -f "${failoutputname}" ]; then
   141    142   				echo "Skipping rebuilding failed kit ${version}/${kit} ..."
   142    143   
................................................................................
   262    263   
   263    264   		# Do not continue past here for un-runnable kits
   264    265   		if [ "${runnable}" != "1" ]; then
   265    266   			continue
   266    267   		fi
   267    268   
   268    269   		# Perform battery of tests
          270  +		## Clean tests log
          271  +		rm -f "${testresultslog}"
   269    272   		for testscp in "${TESTDIR}"/tests/*.tcl; do
   270    273   			testscp_tag="$(basename "${testscp}" .tcl)"
   271    274   			testscppre="$(dirname "${testscp}")/${testscp_tag}.sh"
   272    275   			scplogfile="${outputname}-${testscp_tag}.log"
   273    276   
   274    277   			(
   275    278   				if [ -f "${testscppre}" ]; then
................................................................................
   280    283   			) > "${scplogfile}" 2>&1
   281    284   
   282    285   			if [ "$?" != "0" ]; then
   283    286   				echo "Script failed: ${testscp_tag} on ${version}/${kit}" >&2
   284    287   
   285    288   				failed="${failed} ${version}/${kit}-test-${testscp_tag}"
   286    289   
          290  +				echo "${testscp_tag}: FAIL" >>  "${testresultslog}"
          291  +
   287    292   				continue
   288    293   			fi
          294  +
          295  +			echo "${testscp_tag}: PASS" >>  "${testresultslog}"
   289    296   
   290    297   			rm -f "${scplogfile}"
   291    298   		done
   292    299   	done
   293    300   done
   294    301   
   295    302   if [ -n "${failed}" ]; then
   296    303   	echo "Failed: ${failed}"
   297    304   fi