buildframework/helium/tools/common/test/test_common.ant.xml
changeset 628 7c4a911dc066
parent 588 c7c26511138f
equal deleted inserted replaced
588:c7c26511138f 628:7c4a911dc066
    26     </description>
    26     </description>
    27     
    27     
    28     <property environment="env"/>
    28     <property environment="env"/>
    29     
    29     
    30     <property name="helium.dir" location="../../.." />
    30     <property name="helium.dir" location="../../.." />
       
    31     <property name="temp.dir" location="${helium.dir}/build/temp" />
    31     <import file="../../../build.xml"/>
    32     <import file="../../../build.xml"/>
    32         
    33         
    33     <target name="test-text-config">
    34     <target name="test-text-config">
    34         <hlm:configuration file="${helium.dir}/tests/data/ant_config_test.txt"/>
    35         <hlm:configuration file="${helium.dir}/tests/data/ant_config_test.txt"/>
    35         <au:assertPropertyEquals name="text.a" value="text.value.A"/>
    36         <au:assertPropertyEquals name="text.a" value="text.value.A"/>
   268     
   269     
   269     <target name="test-grep-macro">
   270     <target name="test-grep-macro">
   270         <hlm:grepMacro filename="${helium.dir}/tests/data/logs/test_log.log" regexp="([^\\]*.confml)$" output="confml.file.list"/>
   271         <hlm:grepMacro filename="${helium.dir}/tests/data/logs/test_log.log" regexp="([^\\]*.confml)$" output="confml.file.list"/>
   271         <au:assertPropertySet name="confml.file.list"/>
   272         <au:assertPropertySet name="confml.file.list"/>
   272     </target>
   273     </target>
       
   274     
       
   275     <target name="test-filebackup-attributes">
       
   276         <au:expectfailure>
       
   277             <hlm:fileBackupMacro/>
       
   278         </au:expectfailure>
       
   279     </target>
       
   280     
       
   281     <target name="test-single-file-backup">
       
   282         <copy file="${helium.dir}/tests/data/logs/test_helium_dev_9.1.50_targetTimesLog.csv" tofile="${temp.dir}/test_helium_dev_9.1.50_targetTimesLog.csv"/>
       
   283         <hlm:fileBackupMacro file="${temp.dir}/test_helium_dev_9.1.50_targetTimesLog.csv"/>
       
   284         <au:assertFileExists file="${temp.dir}/test_helium_dev_9.1.50_targetTimesLog.csv.${file.backup.format}.bak"/>
       
   285     </target>
       
   286     
       
   287     <target name="test-folder-file-backup">
       
   288         <hlm:fileBackupMacro srcdir="${helium.dir}/tests/data/logs" destdir="${temp.dir}/backuptest"/>
       
   289         <au:assertFileExists file="${temp.dir}/backuptest/test_log.log.${file.backup.format}.bak"/>
       
   290         <au:assertFileExists file="${temp.dir}/backuptest/test_helium_dev_9.2.10_test_test_compile.log.${file.backup.format}.bak"/>
       
   291     </target>
       
   292     
       
   293     <target name="test-folder-file-backup-regexp">
       
   294         <hlm:fileBackupMacro srcdir="${helium.dir}/tests/data/logs" destdir="${temp.dir}/backuptest" regexp="(.*?targetTimes.*?)$"/>
       
   295         <au:assertFileExists file="${temp.dir}/backuptest/test_helium_dev_9.1.50_targetTimesLog.csv.${file.backup.format}.bak"/>
       
   296     </target>
   273 
   297 
   274 </project>
   298 </project>
   275 
   299