628
|
1 |
<?xml version="1.0" encoding="UTF-8"?>
|
|
2 |
<!--
|
|
3 |
============================================================================
|
|
4 |
Name : test_executetasknotifier.ant.xml
|
|
5 |
Part of : Helium AntLib
|
|
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_executetasknotifier" xmlns:au="antlib:org.apache.ant.antunit" xmlns:ac="antlib:net.sf.antcontrib" xmlns:hlm="http://www.nokia.com/helium">
|
|
24 |
<description>Helium Antlib Signal unittests.</description>
|
|
25 |
<taskdef resource="com/nokia/helium/core/ant/antlib.xml" uri="http://www.nokia.com/helium" />
|
|
26 |
<taskdef resource="com/nokia/helium/signal/ant/antlib.xml" uri="http://www.nokia.com/helium" />
|
|
27 |
<property environment="env" />
|
|
28 |
<property name="build.summary.file" location="../data/ido_tedo_mcl_devlon52_ec_MCL.52.105_summary.log.xml" />
|
|
29 |
|
|
30 |
<!-- Deferred signal -->
|
|
31 |
<hlm:notifierList id="testSignalNotifiers">
|
|
32 |
<hlm:executeTaskNotifier>
|
|
33 |
<echo>Signal: ${signal.name}</echo>
|
|
34 |
</hlm:executeTaskNotifier>
|
|
35 |
</hlm:notifierList>
|
|
36 |
|
|
37 |
<hlm:notifierList id="testSignalNotifiersRuntarget">
|
|
38 |
<hlm:executeTaskNotifier>
|
|
39 |
<ac:runtarget target="some-custom-target" />
|
|
40 |
</hlm:executeTaskNotifier>
|
|
41 |
</hlm:notifierList>
|
|
42 |
|
|
43 |
<hlm:signalInput id="testNeverSignalInput" failBuild="never">
|
|
44 |
<hlm:notifierListRef refid="testSignalNotifiers" />
|
|
45 |
</hlm:signalInput>
|
|
46 |
|
|
47 |
<hlm:signalInput id="testNeverSignalInputRuntarget" failBuild="never">
|
|
48 |
<hlm:notifierListRef refid="testSignalNotifiersRuntarget" />
|
|
49 |
</hlm:signalInput>
|
|
50 |
|
|
51 |
<!-- is called prior to the test -->
|
|
52 |
<target name="setUp">
|
|
53 |
<!-- cleaning deferred pending failures. -->
|
|
54 |
<hlm:clearDeferredFailures />
|
|
55 |
</target>
|
|
56 |
|
|
57 |
<!-- is called after the test, even if that caused an error -->
|
|
58 |
<target name="tearDown">
|
|
59 |
<!-- cleaning deferred pending failures. -->
|
|
60 |
<hlm:clearDeferredFailures />
|
|
61 |
</target>
|
|
62 |
|
|
63 |
<target name="some-custom-target">
|
|
64 |
<echo>Signal: ${signal.name}</echo>
|
|
65 |
</target>
|
|
66 |
|
|
67 |
<target name="test-notifier-is-called">
|
|
68 |
<hlm:signal name="testSignal" result="0" message="message">
|
|
69 |
<signalNotifierInput>
|
|
70 |
<hlm:signalInput refid="testNeverSignalInput" />
|
|
71 |
</signalNotifierInput>
|
|
72 |
</hlm:signal>
|
|
73 |
<au:assertLogContains text="Signal: testSignal" />
|
|
74 |
</target>
|
|
75 |
|
|
76 |
<target name="test-notifier-with-runtarget-works">
|
|
77 |
<hlm:signal name="testSignal" result="0" message="message">
|
|
78 |
<signalNotifierInput>
|
|
79 |
<hlm:signalInput refid="testNeverSignalInputRuntarget" />
|
|
80 |
</signalNotifierInput>
|
|
81 |
</hlm:signal>
|
|
82 |
<au:assertLogContains text="Signal: testSignal" />
|
|
83 |
</target>
|
|
84 |
</project>
|