Skip to content

Commit

Permalink
Fixed examples build functions.
Browse files Browse the repository at this point in the history
  • Loading branch information
tritao committed Oct 25, 2013
1 parent b853713 commit 1593cb8
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 12 deletions.
17 changes: 14 additions & 3 deletions build/Tests.lua
Original file line number Diff line number Diff line change
@@ -1,8 +1,18 @@
-- Tests/examples helpers

function SetupExampleProject()
SetupNativeProjects()
location (path.join(builddir, "deps"))
kind "ConsoleApp"
language "C#"
debugdir "."

files { "**.cs", "./*.lua" }
links { "CppSharp.AST", "CppSharp.Generator" }
SetupParser()

location (path.join(builddir, "projects"))

configuration "vs*"
location "."
end

function SetupTestProject(name, file, lib)
Expand Down Expand Up @@ -41,8 +51,9 @@ function SetupTestGeneratorProject(name)
{
"CppSharp.AST",
"CppSharp.Generator",
"CppSharp.Parser",
}

SetupParser()
end

function SetupTestGeneratorBuildEvent(name)
Expand Down
10 changes: 1 addition & 9 deletions examples/SDL/premake4.lua
Original file line number Diff line number Diff line change
@@ -1,13 +1,5 @@
project "SDL"

kind "ConsoleApp"
language "C#"
location "."
debugdir "."

files { "**.cs", "./*.lua" }

links { "CppSharp.AST", "CppSharp.Generator" }
SetupExampleProject()

if config.ExampleTests then

Expand Down

6 comments on commit 1593cb8

@tritao
Copy link
Collaborator Author

@tritao tritao commented on 1593cb8 Oct 25, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TeamCity CppSharp :: VS2012 Build 298 is now running

@tritao
Copy link
Collaborator Author

@tritao tritao commented on 1593cb8 Oct 25, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TeamCity CppSharp :: VS2012 Build 298 outcome was FAILURE
Summary: Cannot start build runner; NUnit runner failure (new) Build time: 0:0:0

@tritao
Copy link
Collaborator Author

@tritao tritao commented on 1593cb8 Oct 25, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TeamCity CppSharp :: VS2012 Build 299 is now running

@tritao
Copy link
Collaborator Author

@tritao tritao commented on 1593cb8 Oct 25, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TeamCity CppSharp :: VS2012 Build 299 outcome was FAILURE
Summary: Cannot start build runner; NUnit runner failure (new) Build time: 0:0:0

@tritao
Copy link
Collaborator Author

@tritao tritao commented on 1593cb8 Oct 25, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TeamCity CppSharp :: VS2012 Build 300 is now running

@tritao
Copy link
Collaborator Author

@tritao tritao commented on 1593cb8 Oct 25, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TeamCity CppSharp :: VS2012 Build 300 outcome was FAILURE
Summary: Tests failed: 22 (22 new), passed: 48, ignored: 8 Build time: 0:0:0

Failed tests

CppSharp.Generator.Tests.dll: Generator.Tests.CLITypePrinterTest.TestArray: Test(s) failed. System.InvalidOperationException : Sequence contains no elements
   at System.Linq.Enumerable.First[TSource](IEnumerable`1 source)
   at Generator.Tests.LibraryQueryExtensions.Class(ASTContext context, String name) in c:\TeamCity\buildAgent\work\f541a87721b249fc\src\Generator.Tests\QueryHelpers.cs:line 16

CppSharp.Generator.Tests.dll: Generator.Tests.CLITypePrinterTest.TestFunctionPointers: Test(s) failed. System.InvalidOperationException : Sequence contains no elements
   at System.Linq.Enumerable.First[TSource](IEnumerable`1 source)
   at Generator.Tests.LibraryQueryExtensions.Class(ASTContext context, String name) in c:\TeamCity\buildAgent\work\f541a87721b249fc\src\Generator.Tests\QueryHelpers.cs:line 16

CppSharp.Generator.Tests.dll: Generator.Tests.CLITypePrinterTest.TestPointers: Test(s) failed. System.InvalidOperationException : Sequence contains no elements
   at System.Linq.Enumerable.First[TSource](IEnumerable`1 source)
   at Generator.Tests.LibraryQueryExtensions.Class(ASTContext context, String name) in c:\TeamCity\buildAgent\work\f541a87721b249fc\src\Generator.Tests\QueryHelpers.cs:line 16

CppSharp.Generator.Tests.dll: Generator.Tests.CLITypePrinterTest.TestPrimitive: Test(s) failed. System.InvalidOperationException : Sequence contains no elements
   at System.Linq.Enumerable.First[TSource](IEnumerable`1 source)
   at Generator.Tests.LibraryQueryExtensions.Class(ASTContext context, String name) in c:\TeamCity\buildAgent\work\f541a87721b249fc\src\Generator.Tests\QueryHelpers.cs:line 16

CppSharp.Generator.Tests.dll: Generator.Tests.CLITypePrinterTest.TestTags: Test(s) failed. System.InvalidOperationException : Sequence contains no elements
   at System.Linq.Enumerable.First[TSource](IEnumerable`1 source)
   at Generator.Tests.LibraryQueryExtensions.Class(ASTContext context, String name) in c:\TeamCity\buildAgent\work\f541a87721b249fc\src\Generator.Tests\QueryHelpers.cs:line 16

CppSharp.Generator.Tests.dll: Generator.Tests.CLITypePrinterTest.TestTypedefs: Test(s) failed. System.InvalidOperationException : Sequence contains no elements
   at System.Linq.Enumerable.First[TSource](IEnumerable`1 source)
   at Generator.Tests.LibraryQueryExtensions.Typedef(ASTContext context, String name) in c:\TeamCity\buildAgent\work\f541a87721b249fc\src\Generator.Tests\QueryHelpers.cs:line 31

CppSharp.Generator.Tests.dll: Generator.Tests.Passes.TestPasses.TestCaseRenamePass: Test(s) failed. System.InvalidOperationException : Sequence contains no elements
   at System.Linq.Enumerable.First[TSource](IEnumerable`1 source)
   at Generator.Tests.LibraryQueryExtensions.Class(ASTContext context, String name) in c:\TeamCity\buildAgent\work\f541a87721b249fc\src\Generator.Tests\QueryHelpers.cs:line 16

CppSharp.Generator.Tests.dll: Generator.Tests.Passes.TestPasses.TestCheckFlagEnumsPass: Test(s) failed. System.InvalidOperationException : Sequence contains no elements
   at System.Linq.Enumerable.First[TSource](IEnumerable`1 source)
   at Generator.Tests.LibraryQueryExtensions.Enum(ASTContext context, String name) in c:\TeamCity\buildAgent\work\f541a87721b249fc\src\Generator.Tests\QueryHelpers.cs:line 26

CppSharp.Generator.Tests.dll: Generator.Tests.Passes.TestPasses.TestCleanEnumItemNames: Test(s) failed. System.InvalidOperationException : Sequence contains no elements
   at System.Linq.Enumerable.First[TSource](IEnumerable`1 source)
   at Generator.Tests.LibraryQueryExtensions.Enum(ASTContext context, String name) in c:\TeamCity\buildAgent\work\f541a87721b249fc\src\Generator.Tests\QueryHelpers.cs:line 26

CppSharp.Generator.Tests.dll: Generator.Tests.Passes.TestPasses.TestFunctionToInstancePass: Test(s) failed. System.InvalidOperationException : Sequence contains no elements
   at System.Linq.Enumerable.First[TSource](IEnumerable`1 source)
   at Generator.Tests.LibraryQueryExtensions.Class(ASTContext context, String name) in c:\TeamCity\buildAgent\work\f541a87721b249fc\src\Generator.Tests\QueryHelpers.cs:line 16

CppSharp.Generator.Tests.dll: Generator.Tests.Passes.TestPasses.TestFunctionToStaticPass: Test(s) failed. System.InvalidOperationException : Sequence contains no elements
   at System.Linq.Enumerable.First[TSource](IEnumerable`1 source)
   at Generator.Tests.LibraryQueryExtensions.Class(ASTContext context, String name) in c:\TeamCity\buildAgent\work\f541a87721b249fc\src\Generator.Tests\QueryHelpers.cs:line 16


##### there are 12 more failed tests, see build details

Please sign in to comment.