From 667ced26144ff58ace5d89d2dc0959e45c3baf75 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Sun, 25 Mar 2012 00:49:18 +1100 Subject: Add brew tests command to run all unit tests. --- Library/Contributions/cmds/brew-tests.rb | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100755 Library/Contributions/cmds/brew-tests.rb (limited to 'Library') diff --git a/Library/Contributions/cmds/brew-tests.rb b/Library/Contributions/cmds/brew-tests.rb new file mode 100755 index 000000000..f7f7f78ca --- /dev/null +++ b/Library/Contributions/cmds/brew-tests.rb @@ -0,0 +1,29 @@ +require 'utils' + +Dir.chdir HOMEBREW_REPOSITORY + "Library/Homebrew/test" + +$tests_passed = true + +def test t + test_passed = system "/usr/bin/ruby test_#{t}.rb" + $tests_passed &&= test_passed + puts; puts "#" * 80; puts +end + +test "bucket" +test "formula" +test "versions" +test "checksums" +test "inreplace" +test "hardware" +test "formula_install" +test "patching" +test "external_deps" +test "pathname_install" +test "utils" +test "ARGV" +test "ENV" +test "updater" +test "string" + +exit $tests_passed ? 0 : 1 \ No newline at end of file -- cgit v1.2.3