|
1 <?xml version="1.0" encoding="UTF-8"?> |
|
2 <!-- |
|
3 ============================================================================ |
|
4 Name : test_feature_enabled_flags.ant.xml |
|
5 Part of : Helium |
|
6 |
|
7 Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
8 All rights reserved. |
|
9 This component and the accompanying materials are made available |
|
10 under the terms of the License "Eclipse Public License v1.0" |
|
11 which accompanies this distribution, and is available |
|
12 at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
13 |
|
14 Initial Contributors: |
|
15 Nokia Corporation - initial contribution. |
|
16 |
|
17 Contributors: |
|
18 |
|
19 Description: |
|
20 |
|
21 ============================================================================ |
|
22 --> |
|
23 <project name="test_feature_enabled_flags" xmlns:au="antlib:org.apache.ant.antunit" xmlns:hlm="http://www.nokia.com/helium"> |
|
24 <description> |
|
25 Testing targets. |
|
26 </description> |
|
27 |
|
28 <property environment="env"/> |
|
29 <import file="run-scenario.ant.xml"/> |
|
30 |
|
31 <target name="test-target-disabled"> |
|
32 <runScenario scenario="test" target="run-target-disabled" /> |
|
33 <au:assertLogContains text="Skipped because property 'feature.enabled' not set to 'true'"/> |
|
34 <au:assertLogContains text="Warning: enable.feature property has been deprecated since 11.0. Start using feature.enabled property"/> |
|
35 <au:assertLogContains text="Warning: internal.abc.enabled property has been overridden"/> |
|
36 <au:assertLogContains text="Warning: internal.bla.enabled property has been deprecated since 6.0. Start using internal.abc.enabled property"/> |
|
37 <au:assertLogContains text="Warning: feature.enabled property has been overridden"/> |
|
38 </target> |
|
39 |
|
40 <target name="test-target-enabled"> |
|
41 <runScenario scenario="test" target="run-target-enabled" /> |
|
42 <au:assertLogContains text="[echo] Running run-target-enabled"/> |
|
43 </target> |
|
44 |
|
45 <target name="test-target-enabled-with-old-flag"> |
|
46 <runScenario scenario="test" target="run-with-old-flag-enabled" /> |
|
47 <au:assertLogContains text="[echo] Running run-with-old-flag-enabled"/> |
|
48 </target> |
|
49 |
|
50 <target name="test-target-enabled-with-new-flag"> |
|
51 <runScenario scenario="test" target="run-with-new-flag-enabled" /> |
|
52 <au:assertLogContains text="[echo] Running run-with-new-flag-enabled"/> |
|
53 </target> |
|
54 |
|
55 <target name="test-target-enabled-with-both"> |
|
56 <runScenario scenario="test" target="run-with-both-enabled" /> |
|
57 <au:assertLogContains text="[echo] Running run-with-both-enabled"/> |
|
58 </target> |
|
59 |
|
60 <target name="test-target-unless-enabled"> |
|
61 <runScenario scenario="test" target="run-with-unless-enabled" /> |
|
62 <au:assertLogContains text="Skipped because property 'skip.ats.sending' set"/> |
|
63 </target> |
|
64 |
|
65 <target name="test-target-unless-internal-enabled"> |
|
66 <runScenario scenario="test" target="run-with-unless-internal-enabled" /> |
|
67 <au:assertLogContains text="Skipped because property 'old.enabled' is set"/> |
|
68 </target> |
|
69 |
|
70 |
|
71 |
|
72 </project> |
|
73 |