~ubuntu-branches/ubuntu/feisty/nant/feisty

« back to all changes in this revision

Viewing changes to tests/NAnt.VisualCpp/Tasks/ClTaskTest.cs

  • Committer: Bazaar Package Importer
  • Author(s): Dave Beckett
  • Date: 2006-06-12 23:30:36 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20060612233036-a1uwh0949z0218ep
Tags: 0.84+0.85-rc4-1
* New upstream release
* Acknowledge NMU (Closes: #372588)
* Standards-Version 3.7.2
* Update to latest CLI policy package split.  Build-Depends-Indep: on
  cli-common-dev, libmono-winforms1.0-cil, libmono-winforms2.0-cil and
  mono-gmcs to get 1.0 and 2.0 packages
* Removed patches no longer needed:
  - 01-AssemblyInfoTask.cs.patch
  - 02-ScriptTask.cs.patch
  - 03-XmlResultFormatter.cs.patch
  - 04-SourceControl.patch
  - 05-ExceptionTest.cs

Show diffs side-by-side

added added

removed removed

Lines of Context:
34
34
    public class ClTaskTest_HelloWorld : VisualCppTestBase {
35
35
        string _objDir;
36
36
        string _sourceDir;
37
 
        string _sourcePathName;
 
37
 
38
38
        const string _test_build = @"<?xml version='1.0'?>
39
39
                <project>
40
40
                    <cl outputdir=""objs""
41
 
                        options=""-Zi -MDd -GA -Gz -YX -DWIN32 -DUNICODE -DDEBUG -D_DEBUG"" >
 
41
                        options=""-Zi -MDd -GA -Gz -YX"" >
42
42
                        <sources>
43
43
                            <include name=""src\HelloWorld.cpp"" />
44
44
                        </sources>
 
45
                        <defines>
 
46
                            <define name=""WIN32"" />
 
47
                            <define name=""UNICODE"" />
 
48
                            <define name=""DEBUG"" />
 
49
                            <define name=""_DEBUG"" />
 
50
                            <define name=""TEST"" if=""false"" />
 
51
                        </defines>
45
52
                    </cl>
46
53
                </project>";
47
54
        const string _helloWorld_cpp = @"
48
55
                #include <stdio.h>
 
56
                #ifdef TEST
 
57
                    causes error
 
58
                #endif
49
59
                void main(void) {
50
60
                    printf(""Hello, World."");
51
61
                }";
55
65
            base.SetUp();
56
66
            _objDir = CreateTempDir("objs");
57
67
            _sourceDir = CreateTempDir("src");
58
 
            _sourcePathName = CreateTempFile(Path.Combine(_sourceDir, "HelloWorld.cpp"), _helloWorld_cpp);
 
68
            CreateTempFile(Path.Combine(_sourceDir, "HelloWorld.cpp"), _helloWorld_cpp);
59
69
        }
60
70
 
61
71
        /// <summary>Test to make sure simple compile works.</summary>
105
115
        const string _test_build = @"<?xml version='1.0'?>
106
116
                <project>
107
117
                    <cl outputdir=""objs""
108
 
                        options=""-Zi -MDd -GA -Gz -YX -DWIN32 -DUNICODE -DDEBUG -D_DEBUG"" >
 
118
                        options=""-Zi -MDd -GA -Gz -YX"" >
109
119
                        <sources>
110
120
                            <include name=""src\*.cpp"" />
111
121
                        </sources>
 
122
                        <defines>
 
123
                            <define name=""WIN32"" />
 
124
                            <define name=""UNICODE"" />
 
125
                            <define name=""DEBUG"" />
 
126
                            <define name=""_DEBUG"" />
 
127
                        </defines>
112
128
                    </cl>
113
129
                </project>";
114
130