Jack Nagel
58a75b0f71
Use assert_predicate
2014-06-18 20:34:09 -05:00
Jack Nagel
982e9239b8
Use a custom test class so we can avoid monkeypatching
2014-06-18 20:32:51 -05:00
Jack Nagel
0505582507
Rename TEST_FOLDER to TEST_DIRECTORY
2014-06-10 21:49:41 -05:00
Jack Nagel
9a0098dbec
Scope setup to the tests that need it
2014-06-10 21:21:09 -05:00
Jack Nagel
6e634890e8
Add methods for building test file paths
2014-06-10 21:21:06 -05:00
Jack Nagel
5263f50f74
Trust the fixtures and stop asserting on file(1) output
2014-06-10 20:40:51 -05:00
Jack Nagel
e3472540c1
Pull common code into setup method
2014-06-10 20:40:51 -05:00
Jack Nagel
3c9523516b
Clean up some test assertions
2014-06-04 16:31:57 -05:00
Misty De Meo
0f580953b4
Mach: improve tests
2013-08-15 22:46:56 -07:00
Jack Nagel
a886a1b3e3
test_mach: move helper method out of global namespace
2013-06-01 19:40:26 -05:00
Jack Nagel
d994c6cdda
Suppress ambiguous argument and grouped expression warnings
2013-03-28 17:37:29 -05:00
Jack Nagel
be8827d8a4
tests: avoid unnecessary chdir
...
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-08-30 00:10:02 -05:00
Jack Nagel
93f8c71e21
tests: clean up whitespace
...
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-07-04 22:47:34 -05:00
Jack Nagel
90dbb8a141
Prune some requires from test files
...
testing_env already requires utils; set up the ARGV and ENV extensions
there as well.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-07-04 22:47:34 -05:00
Jack Nagel
2cca8e1a4f
Teach Mach-O machinery about bundles
...
c.f. Homebrew/homebrew#12810 .
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-06-16 11:43:43 -05:00
Jack Nagel
7002359f7a
Improve Pathname#text_executable? regexp
...
file(1) does not allow leading whitespace on shebang lines, and there
appears to be no restrictions on what characters follow '#!', either.
While at it, fix an erroneous shebang test.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-06-15 20:06:36 -05:00
Jack Nagel
53ce9dba53
archs_for_command: use new Mach-O Pathname methods
...
- Reimplement archs_for_command on top of the new Mach-O methods
- Move ArchitectureListExtension to mach.rb
- Add a test for the ArchitectureListExtension
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-05-30 22:32:48 -05:00
Jack Nagel
a786178382
Pathname: add Mach-O module
...
The MachO module contains methods for learning about Mach-O binaries,
and can be used where one might normally shell out to file(1).
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-05-30 22:32:48 -05:00