aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAdam Vandenberg2010-03-20 23:13:25 -0700
committerAdam Vandenberg2010-04-06 08:27:12 -0700
commitcacb057b912c433928534f61293e0994e0dd040a (patch)
tree77585bd5fd22cae14670c11c2521bb3ad63887c2 /Library
parent31ebf6a293f8fbcbe9df8544ba3fdc9dfc27aa91 (diff)
downloadbrew-cacb057b912c433928534f61293e0994e0dd040a.tar.bz2
Move ENV tests to separate file.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/test/test_ENV.rb20
-rw-r--r--Library/Homebrew/test/test_bucket.rb16
-rwxr-xr-xLibrary/Homebrew/test/tests1
3 files changed, 21 insertions, 16 deletions
diff --git a/Library/Homebrew/test/test_ENV.rb b/Library/Homebrew/test/test_ENV.rb
new file mode 100644
index 000000000..1cd716dfd
--- /dev/null
+++ b/Library/Homebrew/test/test_ENV.rb
@@ -0,0 +1,20 @@
+require 'testing_env'
+require 'utils'
+require 'brew.h'
+require 'extend/ENV'
+ENV.extend(HomebrewEnvExtension)
+
+class EnvironmentTests < Test::Unit::TestCase
+ def test_ENV_options
+ ENV.gcc_4_0
+ ENV.gcc_4_2
+ ENV.O3
+ ENV.minimal_optimization
+ ENV.no_optimization
+ ENV.libxml2
+ ENV.x11
+ ENV.enable_warnings
+ assert !ENV.cc.empty?
+ assert !ENV.cxx.empty?
+ end
+end
diff --git a/Library/Homebrew/test/test_bucket.rb b/Library/Homebrew/test/test_bucket.rb
index 4e623e6e9..290929cca 100644
--- a/Library/Homebrew/test/test_bucket.rb
+++ b/Library/Homebrew/test/test_bucket.rb
@@ -175,20 +175,4 @@ class BeerTasting < Test::Unit::TestCase
assert_equal 'foo-0.1', foo1.stem
assert_equal '0.1', foo1.version
end
-
- def test_ENV_options
- require 'extend/ENV'
- ENV.extend(HomebrewEnvExtension)
-
- ENV.gcc_4_0
- ENV.gcc_4_2
- ENV.O3
- ENV.minimal_optimization
- ENV.no_optimization
- ENV.libxml2
- ENV.x11
- ENV.enable_warnings
- assert !ENV.cc.empty?
- assert !ENV.cxx.empty?
- end
end
diff --git a/Library/Homebrew/test/tests b/Library/Homebrew/test/tests
index 41e08a6ba..b292bb570 100755
--- a/Library/Homebrew/test/tests
+++ b/Library/Homebrew/test/tests
@@ -23,6 +23,7 @@ ruby test_external_deps.rb $*
ruby test_pathname_install.rb $*
ruby test_utils.rb $*
ruby test_ARGV.rb $*
+ruby test_ENV.rb $*
# Update tests (only seem to work for mxcl)
ruby test_updater.rb $*