Skip to content

Instantly share code, notes, and snippets.

@mytrile
Forked from judofyr/tilt_test.sh
Created April 13, 2011 17:04
Show Gist options
  • Save mytrile/917909 to your computer and use it in GitHub Desktop.
Save mytrile/917909 to your computer and use it in GitHub Desktop.
➜ tmp ./tilt_test.sh
### SETUP
ruby 1.8.7 (2011-02-18 patchlevel 334) [x86_64-linux]
Initialized empty Git repository in /tmp/tilt_tests/.git/
remote: Counting objects: 1481, done.
remote: Compressing objects: 100% (673/673), done.
remote: Total 1481 (delta 909), reused 1039 (delta 617)
Receiving objects: 100% (1481/1481), 210.99 KiB, done.
Resolving deltas: 100% (909/909), done.
b8587ff2a99a888dd8c6575d008ef91f7888d75b refs/remotes/origin/HEAD
Fetching: contest-0.1.2.gem (100%)
Successfully installed contest-0.1.2
Fetching: builder-3.0.0.gem (100%)
Successfully installed builder-3.0.0
Fetching: erubis-2.7.0.gem (100%)
Successfully installed erubis-2.7.0
Fetching: haml-3.0.25.gem (100%)
Successfully installed haml-3.0.25
Fetching: rdiscount-1.6.8.gem (100%)
Building native extensions. This could take a while...
Successfully installed rdiscount-1.6.8
Fetching: liquid-2.2.2.gem (100%)
Successfully installed liquid-2.2.2
Fetching: polyglot-0.3.1.gem (100%)
Fetching: treetop-1.4.9.gem (100%)
Fetching: mutter-0.5.3.gem (100%)
Fetching: less-1.2.21.gem (100%)
Successfully installed polyglot-0.3.1
Successfully installed treetop-1.4.9
Successfully installed mutter-0.5.3
Successfully installed less-1.2.21
Fetching: radius-0.6.1.gem (100%)
Successfully installed radius-0.6.1
Fetching: nokogiri-1.4.4.gem (100%)
Building native extensions. This could take a while...
Successfully installed nokogiri-1.4.4
Fetching: markaby-0.7.1.gem (100%)
Successfully installed markaby-0.7.1
Fetching: coffee-script-source-1.0.1.gem (100%)
Fetching: execjs-0.2.0.gem (100%)
Fetching: coffee-script-2.2.0.gem (100%)
Successfully installed coffee-script-source-1.0.1
Successfully installed execjs-0.2.0
Successfully installed coffee-script-2.2.0
Fetching: bluecloth-2.1.0.gem (100%)
Building native extensions. This could take a while...
Successfully installed bluecloth-2.1.0
Fetching: RedCloth-4.2.7.gem (100%)
Building native extensions. This could take a while...
Successfully installed RedCloth-4.2.7
Fetching: syntax-1.0.0.gem (100%)
Fetching: maruku-0.6.0.gem (100%)
Successfully installed syntax-1.0.0
Successfully installed maruku-0.6.0
Fetching: creole-0.4.1.gem (100%)
Successfully installed creole-0.4.1
Fetching: kramdown-0.13.2.gem (100%)
Successfully installed kramdown-0.13.2
22 gems installed
Fetching: json-1.5.1.gem (100%)
Building native extensions. This could take a while...
Successfully installed json-1.5.1
1 gem installed
### TESTS
(in /tmp/tilt_tests)
Tilt::RDocTemplate (disabled)
Loaded suite /home/mitko/.rvm/gems/ruby-1.8.7-p334/gems/rake-0.8.7/lib/rake/rake_test_loader
Started
.F...................................................................................................................F....FF..................FF.....................................................................................
Finished in 2.835611 seconds.
1) Failure:
test_preparing_and_evaluating_templates_on_render(BlueClothTemplateTest) [./test/tilt_blueclothtemplate_test.rb:22]:
<"<h1>Hello World!</h1>"> expected but was
<"<h1>Hello World!</h1>alu1">.
2) Failure:
test_escape_html_false(MarkdownBlueClothTest) [./test/tilt_markdown_test.rb:35]:
<"<p>Hello <b>World</b></p>"> expected but was
<"<p>Hello <b>World</b></p>\274W">.
3) Failure:
test_smarty_pants(MarkdownBlueClothTest) [./test/tilt_markdown_test.rb:60]:
<"<p>Hello ``World'' -- This is --- a test ...</p>"> expected but was
<"<p>Hello ``World'' -- This is --- a test ...</p>@">.
4) Failure:
test_smarty_pants_false(MarkdownBlueClothTest) [./test/tilt_markdown_test.rb:65]:
<"<p>Hello ``World'' -- This is --- a test ...</p>"> expected but was
<"<p>Hello ``World'' -- This is --- a test ...</p>@">.
5) Failure:
test_can_be_rendered_more_than_once(MarukuTemplateTest)
[./test/tilt_kramdown_test.rb:37:in `test_can_be_rendered_more_than_once'
./test/tilt_kramdown_test.rb:37:in `times'
./test/tilt_kramdown_test.rb:37:in `test_can_be_rendered_more_than_once']:
<"<h1 id='hello_world'>Hello World!</h1>"> expected but was
<"<h1 id=\"hello-world\">Hello World!</h1>\n">.
6) Failure:
test_preparing_and_evaluating_templates_on_render(MarukuTemplateTest) [./test/tilt_kramdown_test.rb:32]:
<"<h1 id='hello_world'>Hello World!</h1>"> expected but was
<"<h1 id=\"hello-world\">Hello World!</h1>\n">.
229 tests, 349 assertions, 6 failures, 0 errors
rake aborted!
Command failed with status (1): [/home/mitko/.rvm/rubies/ruby-1.8.7-p334/bi...]
(See full trace by running task with --trace)
tmp ./tilt_test.sh
### SETUP
ruby 1.9.2p180 (2011-02-18 revision 30909) [x86_64-linux]
Initialized empty Git repository in /tmp/tilt_tests/.git/
remote: Counting objects: 1481, done.
remote: Compressing objects: 100% (673/673), done.
remote: Total 1481 (delta 909), reused 1039 (delta 617)
Receiving objects: 100% (1481/1481), 210.99 KiB | 64 KiB/s, done.
Resolving deltas: 100% (909/909), done.
b8587ff2a99a888dd8c6575d008ef91f7888d75b refs/remotes/origin/HEAD
Fetching: contest-0.1.2.gem (100%)
Successfully installed contest-0.1.2
Successfully installed builder-3.0.0
Successfully installed erubis-2.7.0
Successfully installed haml-3.0.25
Building native extensions. This could take a while...
Successfully installed rdiscount-1.6.8
Successfully installed liquid-2.2.2
Fetching: mutter-0.5.3.gem (100%)
Fetching: less-1.2.21.gem (100%)
Successfully installed mutter-0.5.3
Successfully installed less-1.2.21
Fetching: radius-0.6.1.gem (100%)
Successfully installed radius-0.6.1
Building native extensions. This could take a while...
Successfully installed nokogiri-1.4.4
Fetching: markaby-0.7.1.gem (100%)
Successfully installed markaby-0.7.1
Fetching: coffee-script-source-1.0.1.gem (100%)
Fetching: execjs-0.2.0.gem (100%)
Fetching: coffee-script-2.2.0.gem (100%)
Successfully installed coffee-script-source-1.0.1
Successfully installed execjs-0.2.0
Successfully installed coffee-script-2.2.0
Fetching: bluecloth-2.1.0.gem (100%)
Building native extensions. This could take a while...
Successfully installed bluecloth-2.1.0
Fetching: RedCloth-4.2.7.gem (100%)
Building native extensions. This could take a while...
Successfully installed RedCloth-4.2.7
Fetching: syntax-1.0.0.gem (100%)
Fetching: maruku-0.6.0.gem (100%)
Successfully installed syntax-1.0.0
Successfully installed maruku-0.6.0
Fetching: creole-0.4.1.gem (100%)
Successfully installed creole-0.4.1
Fetching: kramdown-0.13.2.gem (100%)
Successfully installed kramdown-0.13.2
20 gems installed
You have requested to uninstall the gem:
markaby-0.7.1
tilt-1.2.2 depends on [markaby (>= 0)]
If you remove this gems, one or more dependencies will not be met.
Continue with Uninstall? [Yn] Y
Successfully uninstalled markaby-0.7.1
### TESTS
(in /tmp/tilt_tests)
Tilt::RadiusTemplate (disabled)
Tilt::MarkabyTemplate (disabled)
Loaded suite /home/mitko/.rvm/gems/ruby-1.9.2-p180/gems/rake-0.8.7/lib/rake/rake_test_loader
Started
.............................................................................................................FFF..................FF.................................................................................
Finished in 2.929812 seconds.
1) Failure:
test_smart_quotes_true(MarkdownBlueClothTest) [test/tilt_markdown_test.rb:55]:
<"<p>Hello “World”</p>"> expected but was
<"<p>Hello “World”</p>0">.
2) Failure:
test_smarty_pants(MarkdownBlueClothTest) [test/tilt_markdown_test.rb:60]:
<"<p>Hello ``World'' -- This is --- a test ...</p>"> expected but was
<"<p>Hello ``World'' -- This is --- a test ...</p>@">.
3) Failure:
test_smarty_pants_false(MarkdownBlueClothTest) [test/tilt_markdown_test.rb:65]:
<"<p>Hello ``World'' -- This is --- a test ...</p>"> expected but was
<"<p>Hello ``World'' -- This is --- a test ...</p>@">.
4) Failure:
test_can_be_rendered_more_than_once(MarukuTemplateTest) [test/tilt_kramdown_test.rb:37]:
<"<h1 id='hello_world'>Hello World!</h1>"> expected but was
<"<h1 id=\"hello-world\">Hello World!</h1>\n">.
5) Failure:
test_preparing_and_evaluating_templates_on_render(MarukuTemplateTest) [test/tilt_kramdown_test.rb:32]:
<"<h1 id='hello_world'>Hello World!</h1>"> expected but was
<"<h1 id=\"hello-world\">Hello World!</h1>\n">.
213 tests, 330 assertions, 5 failures, 0 errors, 0 skips
Test run options: --seed 38901
rake aborted!
Command failed with status (1): [/home/mitko/.rvm/rubies/ruby-1.9.2-p180/bi...]
(See full trace by running task with --trace)
### WARNING: This will install/uninstall gems, so please run it in a separate gemset.
echo "### SETUP"
ruby -v
rm -rf /tmp/tilt_tests
git clone git://github.com/rtomayko/tilt.git /tmp/tilt_tests
cd /tmp/tilt_tests
git show-ref HEAD
# Install development gems
cat tilt.gemspec | grep development | ruby -ne 'puts $_[/y .([\w-]+)/, 1]' | xargs gem install
# Install JSON if not available
ruby -rubygems -e'require "json"' 2>/dev/null || gem install json
# Uninstall Markaby if it fails (known bug on 1.9)
ruby -rubygems -e'require "markaby"' 2>/dev/null || gem uninstall markaby
echo "### TESTS"
rake test
rm -rf /tmp/tilt_tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment