Andrew Janke
acc9a7ca85
brew test, install, update-test: add --keep-tmp option
...
Also enables sandbox for --interactive and --debug use of install
and test, using automatic retention.
Closes #66 .
Signed-off-by: Andrew Janke <andrew@apjanke.net>
2016-04-18 12:23:08 -04:00
Max Nordlund
fa1fd70a37
Add all the top level comments
2016-04-10 22:59:25 +02:00
Mike McQuaid
0c20957f5b
test: enable sandbox by default.
...
Closes Homebrew/homebrew#45843 .
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-11-10 09:09:03 +00:00
Xu Cheng
76a5ba6ae5
test: allow writing to certain var directories
...
Closes Homebrew/homebrew#44458 .
Closes Homebrew/homebrew#44773 .
Signed-off-by: Xu Cheng <xucheng@me.com>
2015-10-10 11:54:10 +08:00
Xu Cheng
fe3b69d388
test: sanitize ARGV options
...
Otherwise, it will use the wrong prefix to test devel/HEAD install.
2015-10-10 01:34:42 +08:00
Dominyk Tiller
98499d1d29
sandbox: permit /var/tmp & DerivedData
...
Long term it would be nice to sandbox everything that writes to DerivedData
but it is essentially a cache directory of sorts.
The downside of allowing stuff to write there particularly is that DerivedData
is notoriously bad at getting cleaned up, so if you do a lot of Xcode-using
installations very quickly, you can chew your disk space up.
Closes Homebrew/homebrew#43276 .
Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
2015-08-25 22:01:24 +01:00
BrewTestBot
13d544e11e
Core files style updates.
...
Closes Homebrew/homebrew#42354 .
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-08-03 13:22:35 +01:00
Xu Cheng
2ebd1c974b
print sandbox message
...
Closes Homebrew/homebrew#42293 .
Signed-off-by: Xu Cheng <xucheng@me.com>
2015-07-31 19:52:36 +08:00
Xu Cheng
8cebb64eec
auto disable sandbox for interactive shell
...
Closes Homebrew/homebrew#38792 .
Signed-off-by: Xu Cheng <xucheng@me.com>
2015-07-22 15:12:15 +08:00
Xu Cheng
cd22a722e4
test: use Formula#full_name
2015-05-29 17:02:22 +08:00
Xu Cheng
356df9baee
test: use ARGV.resolved_formulae
2015-05-27 13:53:42 +08:00
Jack Nagel
2ca8172fe9
Let the test environment inject its own load path
2015-04-29 19:15:11 -04:00
Jack Nagel
cac6f2f070
Fix variable name
2015-04-26 21:59:47 -04:00
Jack Nagel
b42259f628
Fix variable name
2015-04-26 21:56:22 -04:00
Jack Nagel
16dfe3dd40
Add Formula#logs
2015-04-25 23:14:05 -04:00
Xu Cheng
3287c5f388
test: add missing require "timeout"
...
When the timeout exception is propagated backed from `safe_fork`,
it requires "timeout" to restore the exception.
2015-04-21 16:59:37 +08:00
Xu Cheng
adedbb86f1
sandbox: record log
...
Closes Homebrew/homebrew#38711 .
Signed-off-by: Xu Cheng <xucheng@me.com>
2015-04-17 14:09:24 +08:00
Xu Cheng
b621edf89d
sandbox test
2015-04-15 19:51:54 +08:00
Jack Nagel
7f7742c2b6
Add message to the exception raised when tests return false
2015-01-13 12:35:50 -05:00
Jack Nagel
4bdfb27d9f
Move assertion setup into formula_assertions.rb
2015-01-13 12:33:50 -05:00
Jack Nagel
b61528e757
Save and restore ENV around test invocations
...
This prevents mutations that happen in individual tests from leaking
into other tests.
2015-01-13 12:19:56 -05:00
Jack Nagel
79a6e59e6e
Implement brew test --debug
2014-09-18 14:16:07 -05:00
Adam Vandenberg
c003e805be
add helpers for formula tests
2014-08-01 07:58:09 -07:00
Jack Nagel
58b99f2cee
Try to workaround gem packaging shenanigans
2014-07-11 17:23:39 -05:00
Jack Nagel
83b9043c8e
Remove more unused requires
2014-06-19 19:15:35 -05:00
Jack Nagel
10a1952d2c
Only "extend self" once on the Homebrew module
2014-06-19 13:10:36 -05:00
Jack Nagel
2afad083ee
Stop hiding exceptions completely in brew test
2014-06-18 23:33:31 -05:00
Jack Nagel
2122620d71
Fix brew test
when conflicting minitest gems are installed
2014-06-18 23:20:56 -05:00
Jack Nagel
e9cf30eb2c
Support older Minitest constant
2014-06-12 21:28:00 -05:00
Jack Nagel
d0be32f60b
Rescue Minitest::Assertion under Ruby 2.0
2014-06-04 15:38:33 -05:00
Jack Nagel
dd9c269c69
Rename HomebrewEnvExtension to Stdenv
2013-08-19 12:32:59 -05:00
Jack Nagel
bae36f0830
Make Test::Unit assertions available in formula tests
...
Closes Homebrew/homebrew#18753 .
Closes Homebrew/homebrew#20358 .
2013-06-08 21:31:44 -05:00
Mike McQuaid
4a7c68763e
brew-test: add five minute timeout.
2013-06-08 16:41:44 +01:00
Jack Nagel
967a60a054
Detect when tests are defined
2013-01-07 17:37:28 -06:00
Jack Nagel
86b2307791
test: be less eager to set up the build environment
...
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-09-11 14:47:06 -05:00
Mike McQuaid
fe969c21ad
Add ofail command and fix bottle command output.
2012-04-30 21:38:08 +08:00
Jack Nagel
d33f60815c
test: improve "formula not installed" error text
...
Closes Homebrew/homebrew#11779 .
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-04-20 14:00:09 -05:00
Mike McQuaid
0cbdeeaa3c
Exit with bad exit code on command failures.
2012-03-29 18:44:37 +11:00
Adam Vandenberg
33221835dc
brew test
now gets a compilation environment
2012-03-13 20:44:40 -05:00
Jack Nagel
6feb56ce37
test: returning false indicates failure
...
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-02-18 21:33:36 -06:00
Jack Nagel
1a3a1249bf
Warn the user of required arguments
...
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-02-04 00:27:05 -06:00
Adam Vandenberg
bda9ffa5d7
'brew test' now an official command
2011-03-12 11:55:10 -08:00