I''m trying to run facter tests against sources pulled from git. I''m guessing I need to issue ''rake'' from the top facter sources repository. I''m getting: maciej@solaris /export/home/maciej/src/facter $ git pull Already up-to-date. maciej@solaris /export/home/maciej/src/facter $ rake (in /export/home/maciej/src/facter) ./lib/facter.rb:30: warning: already initialized constant FACTERVERSION ./lib/facter.rb:48: warning: already initialized constant GREEN ./lib/facter.rb:49: warning: already initialized constant RESET ./lib/facter.rb:54: warning: redefine collection ./lib/facter.rb:62: warning: redefine version ./lib/facter.rb:67: warning: redefine debug ./lib/facter.rb:78: warning: redefine [] ./lib/facter.rb:100: warning: redefine add ./lib/facter.rb:104: warning: redefine each ./lib/facter.rb:116: warning: method redefined; discarding old method_missing ./lib/facter.rb:145: warning: redefine clear ./lib/facter.rb:151: warning: redefine debugging ./lib/facter.rb:177: warning: redefine reset ./lib/facter.rb:182: warning: redefine loadfacts ./lib/facter.rb:189: warning: redefine search ./lib/facter.rb:194: warning: redefine search_path rake aborted! Don''t know how to build task ''default'' (See full trace by running task with --trace) maciej@solaris /export/home/maciej/src/facter $ rake --version rake, version 0.8.7 Do you have any hints on how to run the tests? Maciej --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Maciej Bliziński wrote: rake, version 0.8.7> > Do you have any hints on how to run the tests? >Try: $ rake -T to see all the rake tasks and: $ rake spec To run the tests. Regards James Turnbull - -- Author of: * Pro Linux Systems Administration (http://tinyurl.com/linuxadmin) * Pulling Strings with Puppet (http://tinyurl.com/pupbook) * Pro Nagios 2.0 (http://tinyurl.com/pronagios) * Hardening Linux (http://tinyurl.com/hardeninglinux) -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iD8DBQFKio/d9hTGvAxC30ARAgU2AJ41bMerpLfdwL870zpcs46bJKVhHgCgzqvl Ys0ZgKJI6Z/Zkd4N3clvSgo=EO4Y -----END PGP SIGNATURE----- --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
2009/8/18 Maciej Bliziński <maciej.blizinski@gmail.com>:> > I''m trying to run facter tests against sources pulled from git. I''m > guessing I need to issue ''rake'' from the top facter sources > repository. I''m getting: > > maciej@solaris /export/home/maciej/src/facter $ git pull > Already up-to-date. > maciej@solaris /export/home/maciej/src/facter $ rake > (in /export/home/maciej/src/facter) > ./lib/facter.rb:30: warning: already initialized constant > FACTERVERSION > ./lib/facter.rb:48: warning: already initialized constant GREEN > ./lib/facter.rb:49: warning: already initialized constant RESET > ./lib/facter.rb:54: warning: redefine collection > ./lib/facter.rb:62: warning: redefine version > ./lib/facter.rb:67: warning: redefine debug > ./lib/facter.rb:78: warning: redefine [] > ./lib/facter.rb:100: warning: redefine add > ./lib/facter.rb:104: warning: redefine each > ./lib/facter.rb:116: warning: method redefined; discarding old > method_missing > ./lib/facter.rb:145: warning: redefine clear > ./lib/facter.rb:151: warning: redefine debugging > ./lib/facter.rb:177: warning: redefine reset > ./lib/facter.rb:182: warning: redefine loadfacts > ./lib/facter.rb:189: warning: redefine search > ./lib/facter.rb:194: warning: redefine search_path > rake aborted! > Don''t know how to build task ''default'' > > (See full trace by running task with --trace) > maciej@solaris /export/home/maciej/src/facter $ rake --version > rake, version 0.8.7 > > Do you have any hints on how to run the tests?I tend to run from the spec dir or use autotest: cd spec rake wfm Finished in 4.424296 seconds 186 examples, 0 failures Paul --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
On Aug 18, 12:46 pm, Paul Nasrat <pnas...@googlemail.com> wrote:> 2009/8/18 Maciej Bliziński <maciej.blizin...@gmail.com>: > > Do you have any hints on how to run the tests? > > I tend to run from the spec dir or use autotest: > > cd spec > rake > > wfmTurns out, my problem is the absence of rspec. I''m working on packaging it for Solaris at the moment. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
2009/8/18 Maciej Bliziński <maciej.blizinski@gmail.com>:> Turns out, my problem is the absence of rspec. I''m working on > packaging it for Solaris at the moment.OK you''ll want mocha as well, when I''m fixing issues on OpenSolaris I normally just install using rubygems. Paul --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---