buildframework/helium/sf/java/legacy/tests/antunit/test_feature_enabled_flags.ant.xml
author wbernard
Fri, 13 Aug 2010 14:59:05 +0300
changeset 628 7c4a911dc066
permissions -rw-r--r--
helium_11.0.0-e00f171ca185

<?xml version="1.0" encoding="UTF-8"?>
<!-- 
============================================================================ 
Name        : test_feature_enabled_flags.ant.xml 
Part of     : Helium 

Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
All rights reserved.
This component and the accompanying materials are made available
under the terms of the License "Eclipse Public License v1.0"
which accompanies this distribution, and is available
at the URL "http://www.eclipse.org/legal/epl-v10.html".

Initial Contributors:
Nokia Corporation - initial contribution.

Contributors:

Description:

============================================================================
-->
<project name="test_feature_enabled_flags" xmlns:au="antlib:org.apache.ant.antunit" xmlns:hlm="http://www.nokia.com/helium">
    <description>
    Testing targets.
    </description>
    
    <property environment="env"/>
    <import file="run-scenario.ant.xml"/>
    
    <target name="test-target-disabled">
        <runScenario scenario="test" target="run-target-disabled" />
        <au:assertLogContains text="Skipped because property 'feature.enabled' not set to 'true'"/>
        <au:assertLogContains text="Warning: enable.feature property has been deprecated since 11.0. Start using feature.enabled property"/>
        <au:assertLogContains text="Warning: internal.abc.enabled property has been overridden"/>
        <au:assertLogContains text="Warning: internal.bla.enabled property has been deprecated since 6.0. Start using internal.abc.enabled property"/>
        <au:assertLogContains text="Warning: feature.enabled property has been overridden"/>
    </target>
    
    <target name="test-target-enabled">
        <runScenario scenario="test" target="run-target-enabled" />
        <au:assertLogContains text="[echo] Running run-target-enabled"/>
    </target>
    
    <target name="test-target-enabled-with-old-flag">
        <runScenario scenario="test" target="run-with-old-flag-enabled" />
        <au:assertLogContains text="[echo] Running run-with-old-flag-enabled"/>
    </target>
    
    <target name="test-target-enabled-with-new-flag">
        <runScenario scenario="test" target="run-with-new-flag-enabled" />
        <au:assertLogContains text="[echo] Running run-with-new-flag-enabled"/>
    </target>
    
    <target name="test-target-enabled-with-both">
        <runScenario scenario="test" target="run-with-both-enabled" />
        <au:assertLogContains text="[echo] Running run-with-both-enabled"/>
    </target>
    
    <target name="test-target-unless-enabled">
        <runScenario scenario="test" target="run-with-unless-enabled" />
        <au:assertLogContains text="Skipped because property 'skip.ats.sending' set"/>        
    </target>  
    
    <target name="test-target-unless-internal-enabled">
        <runScenario scenario="test" target="run-with-unless-internal-enabled" />
        <au:assertLogContains text="Skipped because property 'old.enabled' is set"/>        
    </target>  
    
    

</project>