Skip to content

Commit

Permalink
split out all testml tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ingydotnet authored and ingy@ingy.net committed Jun 1, 2013
1 parent 4fdfffe commit 66b5978
Show file tree
Hide file tree
Showing 21 changed files with 291 additions and 37 deletions.
14 changes: 14 additions & 0 deletions test/testml-arguments.rb
@@ -0,0 +1,14 @@
require 'test/unit'
require 'testml'
require 'testml/compiler/pegex'
require_relative 'testml_bridge'

class Test::TestML < Test::Unit::TestCase
def test_arguments_tml(compiler=TestML::Compiler::Pegex)
TestML.new(
testml: 'testml/arguments.tml',
bridge: TestMLBridge,
compiler: compiler,
).run(self)
end
end
14 changes: 14 additions & 0 deletions test/testml-assertions.rb
@@ -0,0 +1,14 @@
require 'test/unit'
require 'testml'
require 'testml/compiler/pegex'
require_relative 'testml_bridge'

class Test::TestML < Test::Unit::TestCase
def test_assertions_tml(compiler=TestML::Compiler::Pegex)
TestML.new(
testml: 'testml/assertions.tml',
bridge: TestMLBridge,
compiler: compiler,
).run(self)
end
end
14 changes: 14 additions & 0 deletions test/testml-basic.rb
@@ -0,0 +1,14 @@
require 'test/unit'
require 'testml'
require 'testml/compiler/pegex'
require_relative 'testml_bridge'

class Test::TestML < Test::Unit::TestCase
def test_basic_tml(compiler=TestML::Compiler::Pegex)
TestML.new(
testml: 'testml/basic.tml',
bridge: TestMLBridge,
compiler: compiler,
).run(self)
end
end
14 changes: 14 additions & 0 deletions test/testml-dataless.rb
@@ -0,0 +1,14 @@
require 'test/unit'
require 'testml'
require 'testml/compiler/pegex'
require_relative 'testml_bridge'

class Test::TestML < Test::Unit::TestCase
def test_dataless_tml(compiler=TestML::Compiler::Pegex)
TestML.new(
testml: 'testml/dataless.tml',
bridge: TestMLBridge,
compiler: compiler,
).run(self)
end
end
14 changes: 14 additions & 0 deletions test/testml-exceptions.rb
@@ -0,0 +1,14 @@
require 'test/unit'
require 'testml'
require 'testml/compiler/pegex'
require_relative 'testml_bridge'

class Test::TestML < Test::Unit::TestCase
def test_exceptions_tml(compiler=TestML::Compiler::Pegex)
TestML.new(
testml: 'testml/exceptions.tml',
bridge: TestMLBridge,
compiler: compiler,
).run(self)
end
end
14 changes: 14 additions & 0 deletions test/testml-external.rb
@@ -0,0 +1,14 @@
require 'test/unit'
require 'testml'
require 'testml/compiler/pegex'
require_relative 'testml_bridge'

class Test::TestML < Test::Unit::TestCase
def test_external_tml(compiler=TestML::Compiler::Pegex)
TestML.new(
testml: 'testml/external.tml',
bridge: TestMLBridge,
compiler: compiler,
).run(self)
end
end
14 changes: 14 additions & 0 deletions test/testml-function.rb
@@ -0,0 +1,14 @@
require 'test/unit'
require 'testml'
require 'testml/compiler/pegex'
require_relative 'testml_bridge'

class Test::TestML < Test::Unit::TestCase
def test_function_tml(compiler=TestML::Compiler::Pegex)
TestML.new(
testml: 'testml/function.tml',
bridge: TestMLBridge,
compiler: compiler,
).run(self)
end
end
14 changes: 14 additions & 0 deletions test/testml-label.rb
@@ -0,0 +1,14 @@
require 'test/unit'
require 'testml'
require 'testml/compiler/pegex'
require_relative 'testml_bridge'

class Test::TestML < Test::Unit::TestCase
def test_label_tml(compiler=TestML::Compiler::Pegex)
TestML.new(
testml: 'testml/label.tml',
bridge: TestMLBridge,
compiler: compiler,
).run(self)
end
end
14 changes: 14 additions & 0 deletions test/testml-lite-arguments.rb
@@ -0,0 +1,14 @@
require 'test/unit'
require 'testml'
require 'testml/compiler/lite'
require_relative 'testml_bridge'

class Test::TestML < Test::Unit::TestCase
def test_arguments_tml(compiler=TestML::Compiler::Lite)
TestML.new(
testml: 'testml/arguments.tml',
bridge: TestMLBridge,
compiler: compiler,
).run(self)
end
end
14 changes: 14 additions & 0 deletions test/testml-lite-basic.rb
@@ -0,0 +1,14 @@
require 'test/unit'
require 'testml'
require 'testml/compiler/lite'
require_relative 'testml_bridge'

class Test::TestML < Test::Unit::TestCase
def test_basic_tml(compiler=TestML::Compiler::Lite)
TestML.new(
testml: 'testml/basic.tml',
bridge: TestMLBridge,
compiler: compiler,
).run(self)
end
end
14 changes: 14 additions & 0 deletions test/testml-lite-exceptions.rb
@@ -0,0 +1,14 @@
require 'test/unit'
require 'testml'
require 'testml/compiler/lite'
require_relative 'testml_bridge'

class Test::TestML < Test::Unit::TestCase
def test_exceptions_tml(compiler=TestML::Compiler::Lite)
TestML.new(
testml: 'testml/exceptions.tml',
bridge: TestMLBridge,
compiler: compiler,
).run(self)
end
end
14 changes: 14 additions & 0 deletions test/testml-lite-semicolons.rb
@@ -0,0 +1,14 @@
require 'test/unit'
require 'testml'
require 'testml/compiler/lite'
require_relative 'testml_bridge'

class Test::TestML < Test::Unit::TestCase
def test_semicolons_tml(compiler=TestML::Compiler::Lite)
TestML.new(
testml: 'testml/semicolons.tml',
bridge: TestMLBridge,
compiler: compiler,
).run(self)
end
end
23 changes: 23 additions & 0 deletions test/testml-lite.yaml
@@ -0,0 +1,23 @@
source_testml_dir: ../../testml-tml
local_testml_dir: ./testml
test_file_template: |
require 'test/unit'
require 'testml'
require 'testml/compiler/lite'
require_relative 'testml_bridge'
class Test::TestML < Test::Unit::TestCase
def test_%{name}(compiler=TestML::Compiler::Lite)
TestML.new(
testml: '%{file}',
bridge: TestMLBridge,
compiler: compiler,
).run(self)
end
end
test_file_prefix: testml-lite-
include_testml_files:
- arguments.tml
- basic.tml
- exceptions.tml
- semicolons.tml
14 changes: 14 additions & 0 deletions test/testml-markers.rb
@@ -0,0 +1,14 @@
require 'test/unit'
require 'testml'
require 'testml/compiler/pegex'
require_relative 'testml_bridge'

class Test::TestML < Test::Unit::TestCase
def test_markers_tml(compiler=TestML::Compiler::Pegex)
TestML.new(
testml: 'testml/markers.tml',
bridge: TestMLBridge,
compiler: compiler,
).run(self)
end
end
14 changes: 14 additions & 0 deletions test/testml-semicolons.rb
@@ -0,0 +1,14 @@
require 'test/unit'
require 'testml'
require 'testml/compiler/pegex'
require_relative 'testml_bridge'

class Test::TestML < Test::Unit::TestCase
def test_semicolons_tml(compiler=TestML::Compiler::Pegex)
TestML.new(
testml: 'testml/semicolons.tml',
bridge: TestMLBridge,
compiler: compiler,
).run(self)
end
end
14 changes: 14 additions & 0 deletions test/testml-semicolons2.rb
@@ -0,0 +1,14 @@
require 'test/unit'
require 'testml'
require 'testml/compiler/pegex'
require_relative 'testml_bridge'

class Test::TestML < Test::Unit::TestCase
def test_semicolons2_tml(compiler=TestML::Compiler::Pegex)
TestML.new(
testml: 'testml/semicolons2.tml',
bridge: TestMLBridge,
compiler: compiler,
).run(self)
end
end
14 changes: 14 additions & 0 deletions test/testml-standard.rb
@@ -0,0 +1,14 @@
require 'test/unit'
require 'testml'
require 'testml/compiler/pegex'
require_relative 'testml_bridge'

class Test::TestML < Test::Unit::TestCase
def test_standard_tml(compiler=TestML::Compiler::Pegex)
TestML.new(
testml: 'testml/standard.tml',
bridge: TestMLBridge,
compiler: compiler,
).run(self)
end
end
14 changes: 14 additions & 0 deletions test/testml-truth.rb
@@ -0,0 +1,14 @@
require 'test/unit'
require 'testml'
require 'testml/compiler/pegex'
require_relative 'testml_bridge'

class Test::TestML < Test::Unit::TestCase
def test_truth_tml(compiler=TestML::Compiler::Pegex)
TestML.new(
testml: 'testml/truth.tml',
bridge: TestMLBridge,
compiler: compiler,
).run(self)
end
end
14 changes: 14 additions & 0 deletions test/testml-types.rb
@@ -0,0 +1,14 @@
require 'test/unit'
require 'testml'
require 'testml/compiler/pegex'
require_relative 'testml_bridge'

class Test::TestML < Test::Unit::TestCase
def test_types_tml(compiler=TestML::Compiler::Pegex)
TestML.new(
testml: 'testml/types.tml',
bridge: TestMLBridge,
compiler: compiler,
).run(self)
end
end
37 changes: 0 additions & 37 deletions test/testml.rb

This file was deleted.

16 changes: 16 additions & 0 deletions test/testml.yaml
@@ -1,5 +1,21 @@
source_testml_dir: ../../testml-tml
local_testml_dir: ./testml
test_file_template: |
require 'test/unit'
require 'testml'
require 'testml/compiler/pegex'
require_relative 'testml_bridge'
class Test::TestML < Test::Unit::TestCase
def test_%{name}(compiler=TestML::Compiler::Pegex)
TestML.new(
testml: '%{file}',
bridge: TestMLBridge,
compiler: compiler,
).run(self)
end
end
test_file_prefix: testml-
exclude_testml_files:
- comments.tml
- data.tml
Expand Down

0 comments on commit 66b5978

Please sign in to comment.