Changes:
[Alex Eagle <aeagl...@gmail.com>] Add an example of exception handling, and a test which verifies that all the example code parses
------------------------------------------
A SCM change trigger started this job
[workspace] $ hg incoming --quiet --bundle hg.bundle --template "<changeset node='{node}' author='{author|xmlescape}' rev='{rev}' date='{date}'><msg>{desc|xmlescape}</msg><added>{file_adds|stringify|xmlescape}</added><deleted>{file_dels|stringify|xmlescape}</deleted><files>{files|stringify|xmlescape}</files><parents>{parents}</parents></changeset>\n"
[workspace] $ hg pull -u hg.bundle
pulling from hg.bundle
searching for changes
adding changesets
adding manifests
adding file changes
added 1 changesets with 7 changes to 7 files
7 files updated, 0 files merged, 0 files removed, 0 files unresolved
[workspace] $ /bin/sh -xe /tmp/hudson32688.sh
+ buildr clean package
<http://jakeherringbone.com:8080/job/Noop/ws/core/src/main/antlr3/noop/grammar/antlr/Doc.g>
<http://jakeherringbone.com:8080/job/Noop/ws/core/src/main/antlr3/noop/grammar/antlr/Noop.g>
<http://jakeherringbone.com:8080/job/Noop/ws/core/src/main/antlr3/noop/grammar/antlr/NoopAST.g>
Note: <http://jakeherringbone.com:8080/job/Noop/ws/core/target/generated/antlr/noop/grammar/antlr/NoopAST.java> uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
warning: there were deprecation warnings; re-run with -deprecation for details
one warning found
- allows the binding operator in a binding
- can appear as an anonymous binding block
- can appear as a named binding block
- can appear in a method declaration with a name
- can appear anonymously in a method declaration
- can appear in a unittest declaration with a name
- can appear anonymously in a unittest declaration
Run completed. Total number of tests run was: 7
All tests passed.
- should allow a return statement
- should allow chained property access on properties
- should allow a method call on implicit 'this'
- should allow calling a method on an identifier
- should allow method chaining
- should allow a method call on a property
- should allow a method call with arguments
Run completed. Total number of tests run was: 7
All tests passed.
line 1:10 mismatched input '{' expecting '('
- should fail to parse a class with no parenthesis
- should parse a class with no parameters
- should parse a class with one parameter
- should parse a class with a fully-qualified type in a parameter
- should parse a class with multiple parameters
- should allow modifiers on the parameters
- should allow an implements clause with one interface
- should allow an implements clause with several interfaces
- should allow the native modifier on a class
Run completed. Total number of tests run was: 9
All tests passed.
- should be able to parse a single line comment
- should be able to parse a multi-line comment
- should be able to parse nested comments
- should allow tab characters to appear in the source
Run completed. Total number of tests run was: 4
All tests passed.
- should appear before a class definition, in a string literal
- should appear before a method declaration
Run completed. Total number of tests run was: 2
All tests passed.
- should parse a variable assignment
- should parse arithmetic
Run completed. Total number of tests run was: 2
All tests passed.
- should allow the word 'test' as a package name
- should parse namespace declaration
- should allow import in default namespace
- should parse import statements
line 1:16 mismatched input ';' expecting '.'
line 0:-1 no viable alternative at input '<EOF>'
- should not allow import without a type on the end
- should parse a realistic looking file header
- should not allow extra stuff after the class definition
Run completed. Total number of tests run was: 7
All tests passed.
- should parse correctly equality expression on two literals
- should parse correctly an inequality expression on two literals
- should parse correctly an inequality expression followed by an or'ed equality expression on literals
- should parse correctly an inequality expression followed by an and'ed equality expression on literals
- should parse correctly complex conditional with or and and primaries
- should parse correctly greater than conditional
- should parse correctly lesser than conditional
- should parse correctly greater than or equal conditional
- should parse correctly lesser than or equal conditional
- should parse regular expression
Run completed. Total number of tests run was: 10
All tests passed.
- should parse an interface with no methods
- should parse an interface with one method
line 1:41 mismatched input '{' expecting ';'
line 1:49 mismatched input '=' expecting '('
- should not parse an interface with a method having a body
Run completed. Total number of tests run was: 3
All tests passed.
- should parse an import as interpretable
- should parse a class definition as interpretable
- should parse a variable declaratian as interpretable
- should parse several statements at once
Run completed. Total number of tests run was: 4
All tests passed.
- should parse integer literals
- should parse a string literal
- should parse a multi-line string literal
line 1:13 mismatched character '\n' expecting '"'
line 2:10 mismatched character '<EOF>' expecting '"'
line 1:4 no viable alternative at input '='
line 1:4 no viable alternative at input '='
- should not allow a single-double-quoted string to span lines
- should parse boolean literals
Run completed. Total number of tests run was: 5
All tests passed.
- should be formed with a while statement
- should be formed with a for-in statement
- should allow an existing identifier to be the loop variable
- should allow a c-style loop with explicit initialization, termination, and iteration expressions
Run completed. Total number of tests run was: 4
All tests passed.
- should parse a method with no parameters
- should parse a method with parameters
- should allow variable declaration without an initial value
- should parse a method invocation on a parameter reference
- should parse a method with a return statement
- should allow the native modifier on a method
- should parse a method with one return type (no parentheses)
- should parse a method with one return type (parentheses)
- should parse a method with multiple return types
line 1:21 extraneous input 'calculate' expecting '('
- should NOT parse a method with one named return parameter (no parentheses)
line 1:20 extraneous input 'a' expecting ')'
- should NOT parse a method with one named return parameter (parentheses)
line 1:25 missing ')' at 'b'
line 1:26 mismatched input ',' expecting '('
line 1:31 no viable alternative at input ')'
line 1:31 no viable alternative at input ')'
line 1:42 no viable alternative at input '('
line 1:42 no viable alternative at input '('
line 1:43 no viable alternative at input ')'
- should NOT parse a method with a mixture of named and unnamed return parameters
line 1:20 missing ')' at 'a'
line 1:21 mismatched input ',' expecting '('
line 1:27 no viable alternative at input 'b'
line 1:27 no viable alternative at input 'b'
line 1:28 no viable alternative at input ')'
line 1:39 no viable alternative at input '('
line 1:39 no viable alternative at input '('
line 1:40 no viable alternative at input ')'
- should NOT parse a method with multiple named return parameters
Run completed. Total number of tests run was: 13
All tests passed.
- should parse all the .noop files found under the /examples directory *** FAILED ***
java.lang.NullPointerException
at scala.runtime.BoxedObjectArray.length(BoxedObjectArray.scala:21)
at scala.runtime.BoxedArray$AnyIterator.hasNext(BoxedArray.scala:47)
at scala.Iterator$class.foreach(Iterator.scala:414)
at scala.runtime.BoxedArray$AnyIterator.foreach(BoxedArray.scala:45)
at scala.Iterable$class.foreach(Iterable.scala:256)
at scala.runtime.BoxedArray.foreach(BoxedArray.scala:24)
at noop.grammar.ParseExamplesTest.parseAllFilesInDirectory(ParseExamplesTest.scala:37)
at noop.grammar.ParseExamplesTest$$anonfun$1$$anonfun$apply$1.apply(ParseExamplesTest.scala:32)
at noop.grammar.ParseExamplesTest$$anonfun$1$$anonfun$apply$1.apply(ParseExamplesTest.scala:27)
at org.scalatest.Spec$class.runTest(Spec.scala:748)
at noop.grammar.ParseExamplesTest.runTest(ParseExamplesTest.scala:22)
at org.scalatest.Spec$$anonfun$org$scalatest$Spec$$runTestsInBranch$1.apply(Spec.scala:694)
at org.scalatest.Spec$$anonfun$org$scalatest$Spec$$runTestsInBranch$1.apply(Spec.scala:678)
at scala.List.foreach(List.scala:841)
at org.scalatest.Spec$class.org$scalatest$Spec$$runTestsInBranch(Spec.scala:677)
at org.scalatest.Spec$$anonfun$org$scalatest$Spec$$runTestsInBranch$1.apply(Spec.scala:698)
at org.scalatest.Spec$$anonfun$org$scalatest$Spec$$runTestsInBranch$1.apply(Spec.scala:678)
at scala.List.foreach(List.scala:841)
at org.scalatest.Spec$class.org$scalatest$Spec$$runTestsInBranch(Spec.scala:677)
at org.scalatest.Spec$class.runTests(Spec.scala:865)
at noop.grammar.ParseExamplesTest.runTests(ParseExamplesTest.scala:22)
at org.scalatest.Suite$class.execute(Suite.scala:1372)
at noop.grammar.ParseExamplesTest.execute(ParseExamplesTest.scala:22)
at org.scalatest.tools.SuiteRunner.run(SuiteRunner.scala:55)
at org.scalatest.tools.Runner$$anonfun$doRunRunRunADoRunRun$2.apply(Runner.scala:1056)
at org.scalatest.tools.Runner$$anonfun$doRunRunRunADoRunRun$2.apply(Runner.scala:1053)
at scala.List.foreach(List.scala:841)
at org.scalatest.tools.Runner$.doRunRunRunADoRunRun(Runner.scala:1053)
at org.scalatest.tools.Runner$$anonfun$main$2.apply(Runner.scala:437)
at org.scalatest.tools.Runner$$anonfun$main$2.apply(Runner.scala:436)
at org.scalatest.tools.Runner$.withClassLoaderAndDispatchReporter(Runner.scala:1105)
at org.scalatest.tools.Runner$.main(Runner.scala:435)
at org.scalatest.tools.Runner.main(Runner.scala)
at org.scalatest.tools.ScalaTestTask.execute(ScalaTestTask.java:197)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
Run completed. Total number of tests run was: 1
*** 1 TEST FAILED ***
<http://jakeherringbone.com:8080/job/Noop/ws/core/src/main/antlr3/noop/grammar/antlr/NoopAST.g>: node from line 1:48 mismatched input 'List' expecting VariableIdentifier in statement
- should throw an exception if there's an error parsing the AST
Run completed. Total number of tests run was: 1
All tests passed.
- should parse a single property declaration
Run completed. Total number of tests run was: 1
All tests passed.
- should allow a unittest block in a class
line 1:25 missing '}' at 'unittest'
- should not allow a unittest block in a method
line 1:14 mismatched input 'test' expecting '}'
- should not allow a test block in a class
- should allow a test block in a file
- should allow a unittest block in a test block
- should allow a test block in a test block
line 1:0 no viable alternative at input 'unittest'
- should not allow a unittest block in a unittest block
- should have a 'should' operator
Run completed. Total number of tests run was: 8
All tests passed.
- should parse a try-catch block
- should parse a try-finally block
- should parse a try-catch-finally block
Run completed. Total number of tests run was: 3
All tests passed.
Buildr aborted!
Tests failed!
(See full trace by running task with --trace)
(in <http://jakeherringbone.com:8080/job/Noop/ws/,> development)
Cleaning noop
Building noop
Compiling noop:core into <http://jakeherringbone.com:8080/job/Noop/ws/core/target/classes>
Compiling noop:core:test into <http://jakeherringbone.com:8080/job/Noop/ws/core/target/test/classes>
Running tests in noop:core
ScalaTest "noop.grammar.BindingSpec"
ScalaTest "noop.grammar.BlockSpec"
ScalaTest "noop.grammar.ClassSpec"
ScalaTest "noop.grammar.CommentsSpec"
ScalaTest "noop.grammar.DocumentationSpec"
ScalaTest "noop.grammar.ExpressionsSpec"
ScalaTest "noop.grammar.FileSpec"
ScalaTest "noop.grammar.IfSpec"
ScalaTest "noop.grammar.InterfaceSpec"
ScalaTest "noop.grammar.InterpretableSpec"
ScalaTest "noop.grammar.LiteralsSpec"
ScalaTest "noop.grammar.LoopSpec"
ScalaTest "noop.grammar.MethodsSpec"
ScalaTest "noop.grammar.ParseExamplesTest"
ScalaTest "noop.grammar.ParserSpec"
ScalaTest "noop.grammar.PropertiesSpec"
ScalaTest "noop.grammar.TestSpec"
ScalaTest "noop.grammar.TryCatchSpec"
The following tests failed:
noop.grammar.ParseExamplesTest
Archiving artifacts
Changes:
[Alex Eagle <aeagl...@gmail.com>] Of course there are several source roots. Fix the build by picking the right one every time
------------------------------------------
A SCM change trigger started this job
[workspace] $ hg incoming --quiet --bundle hg.bundle --template "<changeset node='{node}' author='{author|xmlescape}' rev='{rev}' date='{date}'><msg>{desc|xmlescape}</msg><added>{file_adds|stringify|xmlescape}</added><deleted>{file_dels|stringify|xmlescape}</deleted><files>{files|stringify|xmlescape}</files><parents>{parents}</parents></changeset>\n"
[workspace] $ hg pull -u hg.bundle
pulling from hg.bundle
searching for changes
adding changesets
adding manifests
adding file changes
added 1 changesets with 1 changes to 1 files
1 files updated, 0 files merged, 0 files removed, 0 files unresolved
[workspace] $ /bin/sh -xe /tmp/hudson32699.sh
at noop.grammar.ParseExamplesTest$$anonfun$1$$anonfun$apply$1.apply(ParseExamplesTest.scala:30)