<commit_before>#!/bin/bash

DOMAIN="Application Framework"
FEATURE="DuiControlPanel SystemUIApplets"
TYPE="Functional"
LEVEL="Component"

UT_TESTCASES=""
FT_TESTCASES=""

for T in `ls -d tests/?t_*`; do
	TEST=`basename $T`
    if [ -x $T/$TEST ]; then

TESTCASE_TEMPLATE="<case name=\"$TEST\" description=\"$TEST\" requirement=\"\" timeout=\"60\">
        <step expected_result=\"0\">/usr/lib/systemui-applets-tests/$TEST</step>
      </case>
      "

		if [ -n "`echo $TEST | egrep '^u'`" ]; then
			UT_TESTCASES="${UT_TESTCASES}${TESTCASE_TEMPLATE}"
		else
			FT_TESTCASES="${FT_TESTCASES}${TESTCASE_TEMPLATE}"
		fi
	fi
done

TESTSUITE_TEMPLATE="<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?>
<testdefinition version=\"0.1\">
  <suite name=\"systemui-applets-tests\" domain=\"$DOMAIN\" type=\"$TYPE\" level=\"$LEVEL\">
    <set name=\"unit_tests\" description=\"Unit Tests\" feature=\"$FEATURE\">

      $UT_TESTCASES

      <environments>
        <scratchbox>false</scratchbox>
        <hardware>true</hardware>    
      </environments> 

    </set>
    <set name=\"functional_tests\" description=\"Functional Tests\" feature=\"$FEATURE\">

      $FT_TESTCASES

      <environments>
        <scratchbox>false</scratchbox>
        <hardware>true</hardware>    
      </environments> 

    </set>
  </suite>
</testdefinition>"

echo "$TESTSUITE_TEMPLATE"

<commit_msg>Added a note to the xml generator.<commit_after>#!/bin/bash

DOMAIN="Application Framework"
FEATURE="DuiControlPanel SystemUIApplets"
TYPE="Functional"
LEVEL="Component"

UT_TESTCASES=""
FT_TESTCASES=""

for T in `ls -d tests/?t_*`; do
	TEST=`basename $T`
    if [ -x $T/$TEST ]; then

TESTCASE_TEMPLATE="<case name='$TEST' description='$TEST' requirement='' timeout='60'>
        <step expected_result='0'>/usr/lib/systemui-applets-tests/$TEST</step>
      </case>
      "

		if [ -n "`echo $TEST | egrep '^u'`" ]; then
			UT_TESTCASES="${UT_TESTCASES}${TESTCASE_TEMPLATE}"
		else
			FT_TESTCASES="${FT_TESTCASES}${TESTCASE_TEMPLATE}"
		fi
	fi
done

TESTSUITE_TEMPLATE="<?xml version='1.0' encoding='ISO-8859-1'?>
<testdefinition version='0.1'>
  <!-- This XML file is generated by the $(basename $0). Please do not modify
  this file for it is going to be overwritten the next time the application 
  is built. -->
  <suite name='systemui-applets-tests' domain='$DOMAIN' type='$TYPE' level='$LEVEL'>
    <set name='unit_tests' description='Unit Tests' feature='$FEATURE'>
      $UT_TESTCASES
      <environments>
        <scratchbox>false</scratchbox>
        <hardware>true</hardware>    
      </environments> 
    </set>
    <set name='functional_tests' description='Functional Tests' feature='$FEATURE'>
      $FT_TESTCASES
      <environments>
        <scratchbox>false</scratchbox>
        <hardware>true</hardware>    
      </environments> 
    </set>
  </suite>
</testdefinition>"

echo "$TESTSUITE_TEMPLATE"


{'fraction_non_alphanumeric': 0.1715076071922545, 'fraction_numerical': 0.008644536652835409, 'mean_word_length': 3.711726384364821, 'pattern_counts': {'":': 0, '<': 54, '<?xml version=': 2, '>': 54, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 3}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4856021', 'n_tokens_mistral': 1031, 'n_tokens_neox': 994, 'n_words': 193}