Browse files

update informational files and only run the lvm backup tests if you s…

…et the environmental variable SLOW_TESTS_TOO=true
  • Loading branch information...
1 parent 311c5b7 commit f0bc80395c87b916955322b8885db383c38c3269 @atmos committed May 26, 2008
Showing with 23 additions and 11 deletions.
  1. +10 −0 README
  2. +4 −4 Rakefile
  3. +3 −3 TODO
  4. +6 −4 spec/integration/lvm_backup_spec.rb
View
10 README
@@ -6,3 +6,13 @@ of config and backup file formats on linux can be parsed into simple data
structures. The goal here is to write real grammars for things like lvmbackups
and xenstore-ls output into hashes we can work with easily in Ruby. We're
using treetop.
+
+Supported Files/Output from shell commands
+* output generated by 'xm info' and 'xm list' on xen boxes
+* output generated from 'xenstore-ls' on xen boxes
+* lvm_backup files
+
+I'm trying to spec everything out, please run the specs while you hack on this.
+
+% gem install ZenTest
+% autotest
View
8 Rakefile
@@ -5,10 +5,10 @@ require 'date'
GEM = "pars"
GEM_VERSION = "0.0.1"
-AUTHOR = "Your Name"
-EMAIL = "Your Email"
-HOMEPAGE = "http://example.com"
-SUMMARY = "A gem that provides..."
+AUTHOR = "Corey Donohoe"
+EMAIL = "cdonohoe@engineyard.com"
+HOMEPAGE = "http://github.com/atmos/pars/tree/master"
+SUMMARY = "A gem that provides parse routines for various linux config file formats"
spec = Gem::Specification.new do |s|
s.name = GEM
View
6 TODO
@@ -1,4 +1,4 @@
TODO:
-Fix LICENSE with your name
-Fix Rakefile with your name and contact info
-Add your code to lib/<%= name %>.rb
+* keepalived file parsing
+* live lvm status(from shell output)
+* live keepalived status(from shell output)
View
10 spec/integration/lvm_backup_spec.rb
@@ -33,10 +33,12 @@
end
end
end
- describe "should be able to handle all of the test fixtures" do
- it "succesful parsing" do
- Dir[File.dirname(__FILE__)+'/../fixtures/lvm_backups/*'].each do |file|
- lambda { @parser.parse(File.read(file)) }.should_not raise_error
+ if ENV['SLOW_TESTS_TOO']
+ describe "should be able to handle all of the test fixtures" do
+ it "succesful parsing" do
+ Dir[File.dirname(__FILE__)+'/../fixtures/lvm_backups/*'].each do |file|
+ lambda { @parser.parse(File.read(file)) }.should_not raise_error
+ end
end
end
end

0 comments on commit f0bc803

Please sign in to comment.