diff options
| author | Markus Reiter | 2016-10-24 22:53:25 +0200 |
|---|---|---|
| committer | Markus Reiter | 2016-11-16 23:52:38 +0100 |
| commit | 4db1317f38f5a55574854e7bf1dfe4379e807b4f (patch) | |
| tree | 5c59b2334ebae4fa235449dac8589858ac8afb8f /Library/Homebrew/test/support/fixtures | |
| parent | 4efdbbde06bc8785870315f7a334694e59b33528 (diff) | |
| download | brew-4db1317f38f5a55574854e7bf1dfe4379e807b4f.tar.bz2 | |
Move all remaining fixtures to `test/support/fixtures`.
Diffstat (limited to 'Library/Homebrew/test/support/fixtures')
65 files changed, 273 insertions, 0 deletions
diff --git a/Library/Homebrew/test/support/fixtures/bottles/testball_bottle-0.1.el_capitan.bottle.tar.gz b/Library/Homebrew/test/support/fixtures/bottles/testball_bottle-0.1.el_capitan.bottle.tar.gz new file mode 120000 index 000000000..3e989830b --- /dev/null +++ b/Library/Homebrew/test/support/fixtures/bottles/testball_bottle-0.1.el_capitan.bottle.tar.gz @@ -0,0 +1 @@ +testball_bottle-0.1.yosemite.bottle.tar.gz
\ No newline at end of file diff --git a/Library/Homebrew/test/support/fixtures/bottles/testball_bottle-0.1.linux_x86_64.bottle.tar.gz b/Library/Homebrew/test/support/fixtures/bottles/testball_bottle-0.1.linux_x86_64.bottle.tar.gz new file mode 120000 index 000000000..3e989830b --- /dev/null +++ b/Library/Homebrew/test/support/fixtures/bottles/testball_bottle-0.1.linux_x86_64.bottle.tar.gz @@ -0,0 +1 @@ +testball_bottle-0.1.yosemite.bottle.tar.gz
\ No newline at end of file diff --git a/Library/Homebrew/test/support/fixtures/bottles/testball_bottle-0.1.macintosh_intel.bottle.tar.gz b/Library/Homebrew/test/support/fixtures/bottles/testball_bottle-0.1.macintosh_intel.bottle.tar.gz new file mode 120000 index 000000000..3e989830b --- /dev/null +++ b/Library/Homebrew/test/support/fixtures/bottles/testball_bottle-0.1.macintosh_intel.bottle.tar.gz @@ -0,0 +1 @@ +testball_bottle-0.1.yosemite.bottle.tar.gz
\ No newline at end of file diff --git a/Library/Homebrew/test/support/fixtures/bottles/testball_bottle-0.1.mavericks.bottle.tar.gz b/Library/Homebrew/test/support/fixtures/bottles/testball_bottle-0.1.mavericks.bottle.tar.gz new file mode 120000 index 000000000..3e989830b --- /dev/null +++ b/Library/Homebrew/test/support/fixtures/bottles/testball_bottle-0.1.mavericks.bottle.tar.gz @@ -0,0 +1 @@ +testball_bottle-0.1.yosemite.bottle.tar.gz
\ No newline at end of file diff --git a/Library/Homebrew/test/support/fixtures/bottles/testball_bottle-0.1.mountain_lion.bottle.tar.gz b/Library/Homebrew/test/support/fixtures/bottles/testball_bottle-0.1.mountain_lion.bottle.tar.gz new file mode 120000 index 000000000..3e989830b --- /dev/null +++ b/Library/Homebrew/test/support/fixtures/bottles/testball_bottle-0.1.mountain_lion.bottle.tar.gz @@ -0,0 +1 @@ +testball_bottle-0.1.yosemite.bottle.tar.gz
\ No newline at end of file diff --git a/Library/Homebrew/test/support/fixtures/bottles/testball_bottle-0.1.sierra.bottle.tar.gz b/Library/Homebrew/test/support/fixtures/bottles/testball_bottle-0.1.sierra.bottle.tar.gz new file mode 120000 index 000000000..3e989830b --- /dev/null +++ b/Library/Homebrew/test/support/fixtures/bottles/testball_bottle-0.1.sierra.bottle.tar.gz @@ -0,0 +1 @@ +testball_bottle-0.1.yosemite.bottle.tar.gz
\ No newline at end of file diff --git a/Library/Homebrew/test/support/fixtures/bottles/testball_bottle-0.1.yosemite.bottle.tar.gz b/Library/Homebrew/test/support/fixtures/bottles/testball_bottle-0.1.yosemite.bottle.tar.gz Binary files differnew file mode 100644 index 000000000..d88838a94 --- /dev/null +++ b/Library/Homebrew/test/support/fixtures/bottles/testball_bottle-0.1.yosemite.bottle.tar.gz diff --git a/Library/Homebrew/test/support/fixtures/cask/AppWithBinary.zip b/Library/Homebrew/test/support/fixtures/cask/AppWithBinary.zip Binary files differnew file mode 100644 index 000000000..4a5b318ba --- /dev/null +++ b/Library/Homebrew/test/support/fixtures/cask/AppWithBinary.zip diff --git a/Library/Homebrew/test/support/fixtures/cask/AppWithEmbeddedBinary.zip b/Library/Homebrew/test/support/fixtures/cask/AppWithEmbeddedBinary.zip Binary files differnew file mode 100644 index 000000000..7c708038c --- /dev/null +++ b/Library/Homebrew/test/support/fixtures/cask/AppWithEmbeddedBinary.zip diff --git a/Library/Homebrew/test/support/fixtures/cask/MyFancyApp.zip b/Library/Homebrew/test/support/fixtures/cask/MyFancyApp.zip Binary files differnew file mode 100644 index 000000000..ba09ee681 --- /dev/null +++ b/Library/Homebrew/test/support/fixtures/cask/MyFancyApp.zip diff --git a/Library/Homebrew/test/support/fixtures/cask/MyFancyPkg.zip b/Library/Homebrew/test/support/fixtures/cask/MyFancyPkg.zip Binary files differnew file mode 100644 index 000000000..ec4f97f07 --- /dev/null +++ b/Library/Homebrew/test/support/fixtures/cask/MyFancyPkg.zip diff --git a/Library/Homebrew/test/support/fixtures/cask/NestedApp.dmg.zip b/Library/Homebrew/test/support/fixtures/cask/NestedApp.dmg.zip Binary files differnew file mode 100644 index 000000000..ae6686c7e --- /dev/null +++ b/Library/Homebrew/test/support/fixtures/cask/NestedApp.dmg.zip diff --git a/Library/Homebrew/test/support/fixtures/cask/caffeine-suite.zip b/Library/Homebrew/test/support/fixtures/cask/caffeine-suite.zip Binary files differnew file mode 100644 index 000000000..c38f771ae --- /dev/null +++ b/Library/Homebrew/test/support/fixtures/cask/caffeine-suite.zip diff --git a/Library/Homebrew/test/support/fixtures/cask/caffeine.zip b/Library/Homebrew/test/support/fixtures/cask/caffeine.zip Binary files differnew file mode 100644 index 000000000..99d61bbfb --- /dev/null +++ b/Library/Homebrew/test/support/fixtures/cask/caffeine.zip diff --git a/Library/Homebrew/test/support/fixtures/cask/caffeines-subdir.zip b/Library/Homebrew/test/support/fixtures/cask/caffeines-subdir.zip Binary files differnew file mode 100644 index 000000000..ce5064d09 --- /dev/null +++ b/Library/Homebrew/test/support/fixtures/cask/caffeines-subdir.zip diff --git a/Library/Homebrew/test/support/fixtures/cask/caffeines.zip b/Library/Homebrew/test/support/fixtures/cask/caffeines.zip Binary files differnew file mode 100644 index 000000000..372fcc522 --- /dev/null +++ b/Library/Homebrew/test/support/fixtures/cask/caffeines.zip diff --git a/Library/Homebrew/test/support/fixtures/cask/container.7z b/Library/Homebrew/test/support/fixtures/cask/container.7z Binary files differnew file mode 100644 index 000000000..30dbe24f7 --- /dev/null +++ b/Library/Homebrew/test/support/fixtures/cask/container.7z diff --git a/Library/Homebrew/test/support/fixtures/cask/container.air b/Library/Homebrew/test/support/fixtures/cask/container.air Binary files differnew file mode 100644 index 000000000..64005aea3 --- /dev/null +++ b/Library/Homebrew/test/support/fixtures/cask/container.air diff --git a/Library/Homebrew/test/support/fixtures/cask/container.bz2 b/Library/Homebrew/test/support/fixtures/cask/container.bz2 Binary files differnew file mode 100755 index 000000000..6ec60f31f --- /dev/null +++ b/Library/Homebrew/test/support/fixtures/cask/container.bz2 diff --git a/Library/Homebrew/test/support/fixtures/cask/container.cab b/Library/Homebrew/test/support/fixtures/cask/container.cab Binary files differnew file mode 100644 index 000000000..edc741aa1 --- /dev/null +++ b/Library/Homebrew/test/support/fixtures/cask/container.cab diff --git a/Library/Homebrew/test/support/fixtures/cask/container.dmg b/Library/Homebrew/test/support/fixtures/cask/container.dmg Binary files differnew file mode 100644 index 000000000..3b3cbf51c --- /dev/null +++ b/Library/Homebrew/test/support/fixtures/cask/container.dmg diff --git a/Library/Homebrew/test/support/fixtures/cask/container.gz b/Library/Homebrew/test/support/fixtures/cask/container.gz Binary files differnew file mode 100755 index 000000000..67ede6b96 --- /dev/null +++ b/Library/Homebrew/test/support/fixtures/cask/container.gz diff --git a/Library/Homebrew/test/support/fixtures/cask/container.lzma b/Library/Homebrew/test/support/fixtures/cask/container.lzma Binary files differnew file mode 100755 index 000000000..2ff7ccee7 --- /dev/null +++ b/Library/Homebrew/test/support/fixtures/cask/container.lzma diff --git a/Library/Homebrew/test/support/fixtures/cask/container.pkg b/Library/Homebrew/test/support/fixtures/cask/container.pkg Binary files differnew file mode 100644 index 000000000..274f27e7a --- /dev/null +++ b/Library/Homebrew/test/support/fixtures/cask/container.pkg diff --git a/Library/Homebrew/test/support/fixtures/cask/container.rar b/Library/Homebrew/test/support/fixtures/cask/container.rar Binary files differnew file mode 100644 index 000000000..7477c3bb4 --- /dev/null +++ b/Library/Homebrew/test/support/fixtures/cask/container.rar diff --git a/Library/Homebrew/test/support/fixtures/cask/container.sit b/Library/Homebrew/test/support/fixtures/cask/container.sit Binary files differnew file mode 100755 index 000000000..3e29d21dc --- /dev/null +++ b/Library/Homebrew/test/support/fixtures/cask/container.sit diff --git a/Library/Homebrew/test/support/fixtures/cask/container.tar.gz b/Library/Homebrew/test/support/fixtures/cask/container.tar.gz Binary files differnew file mode 100644 index 000000000..c464fb413 --- /dev/null +++ b/Library/Homebrew/test/support/fixtures/cask/container.tar.gz diff --git a/Library/Homebrew/test/support/fixtures/cask/container.xar b/Library/Homebrew/test/support/fixtures/cask/container.xar Binary files differnew file mode 100644 index 000000000..563a5ba1e --- /dev/null +++ b/Library/Homebrew/test/support/fixtures/cask/container.xar diff --git a/Library/Homebrew/test/support/fixtures/cask/container.xz b/Library/Homebrew/test/support/fixtures/cask/container.xz Binary files differnew file mode 100755 index 000000000..74db22090 --- /dev/null +++ b/Library/Homebrew/test/support/fixtures/cask/container.xz diff --git a/Library/Homebrew/test/support/fixtures/cask/empty_directory/.gitignore b/Library/Homebrew/test/support/fixtures/cask/empty_directory/.gitignore new file mode 100644 index 000000000..e69de29bb --- /dev/null +++ b/Library/Homebrew/test/support/fixtures/cask/empty_directory/.gitignore diff --git a/Library/Homebrew/test/support/fixtures/cask/naked_executable b/Library/Homebrew/test/support/fixtures/cask/naked_executable new file mode 100755 index 000000000..039e4d006 --- /dev/null +++ b/Library/Homebrew/test/support/fixtures/cask/naked_executable @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/Library/Homebrew/test/support/fixtures/cask/transmission-2.61.dmg b/Library/Homebrew/test/support/fixtures/cask/transmission-2.61.dmg Binary files differnew file mode 100644 index 000000000..e72afe027 --- /dev/null +++ b/Library/Homebrew/test/support/fixtures/cask/transmission-2.61.dmg diff --git a/Library/Homebrew/test/support/fixtures/mach/a.out b/Library/Homebrew/test/support/fixtures/mach/a.out Binary files differnew file mode 100755 index 000000000..18e0e982f --- /dev/null +++ b/Library/Homebrew/test/support/fixtures/mach/a.out diff --git a/Library/Homebrew/test/support/fixtures/mach/fat.bundle b/Library/Homebrew/test/support/fixtures/mach/fat.bundle Binary files differnew file mode 100644 index 000000000..f60f1e8bb --- /dev/null +++ b/Library/Homebrew/test/support/fixtures/mach/fat.bundle diff --git a/Library/Homebrew/test/support/fixtures/mach/fat.dylib b/Library/Homebrew/test/support/fixtures/mach/fat.dylib Binary files differnew file mode 100644 index 000000000..6886a6a8b --- /dev/null +++ b/Library/Homebrew/test/support/fixtures/mach/fat.dylib diff --git a/Library/Homebrew/test/support/fixtures/mach/i386.bundle b/Library/Homebrew/test/support/fixtures/mach/i386.bundle Binary files differnew file mode 100644 index 000000000..b6f94710d --- /dev/null +++ b/Library/Homebrew/test/support/fixtures/mach/i386.bundle diff --git a/Library/Homebrew/test/support/fixtures/mach/i386.dylib b/Library/Homebrew/test/support/fixtures/mach/i386.dylib Binary files differnew file mode 100644 index 000000000..0304dca01 --- /dev/null +++ b/Library/Homebrew/test/support/fixtures/mach/i386.dylib diff --git a/Library/Homebrew/test/support/fixtures/mach/x86_64.bundle b/Library/Homebrew/test/support/fixtures/mach/x86_64.bundle Binary files differnew file mode 100644 index 000000000..d1bde419f --- /dev/null +++ b/Library/Homebrew/test/support/fixtures/mach/x86_64.bundle diff --git a/Library/Homebrew/test/support/fixtures/mach/x86_64.dylib b/Library/Homebrew/test/support/fixtures/mach/x86_64.dylib Binary files differnew file mode 100644 index 000000000..781b41cb4 --- /dev/null +++ b/Library/Homebrew/test/support/fixtures/mach/x86_64.dylib diff --git a/Library/Homebrew/test/support/fixtures/patches/noop-a.diff b/Library/Homebrew/test/support/fixtures/patches/noop-a.diff new file mode 100644 index 000000000..7b57f8fc9 --- /dev/null +++ b/Library/Homebrew/test/support/fixtures/patches/noop-a.diff @@ -0,0 +1,10 @@ +diff --git a/libexec/NOOP b/libexec/NOOP +index bfdda4c..e08d8f4 100755 +--- a/libexec/NOOP ++++ b/libexec/NOOP +@@ -1,2 +1,2 @@ + #!/bin/bash +-echo NOOP +\ No newline at end of file ++echo ABCD +\ No newline at end of file diff --git a/Library/Homebrew/test/support/fixtures/patches/noop-b.diff b/Library/Homebrew/test/support/fixtures/patches/noop-b.diff new file mode 100644 index 000000000..bc081ca82 --- /dev/null +++ b/Library/Homebrew/test/support/fixtures/patches/noop-b.diff @@ -0,0 +1,10 @@ +diff --git libexec/NOOP libexec/NOOP +index bfdda4c..e08d8f4 100755 +--- libexec/NOOP ++++ libexec/NOOP +@@ -1,2 +1,2 @@ + #!/bin/bash +-echo NOOP +\ No newline at end of file ++echo ABCD +\ No newline at end of file diff --git a/Library/Homebrew/test/support/fixtures/patches/noop-c.diff b/Library/Homebrew/test/support/fixtures/patches/noop-c.diff new file mode 100644 index 000000000..6d0de5b7b --- /dev/null +++ b/Library/Homebrew/test/support/fixtures/patches/noop-c.diff @@ -0,0 +1,9 @@ +diff --git a/libexec/NOOP b/libexec/NOOP +index e08d8f4..3ebfb9d 100755 +--- a/libexec/NOOP ++++ b/libexec/NOOP +@@ -1,2 +1,2 @@ + #!/bin/bash +-echo ABCD +\ No newline at end of file ++echo 1234 diff --git a/Library/Homebrew/test/support/fixtures/receipt.json b/Library/Homebrew/test/support/fixtures/receipt.json new file mode 100644 index 000000000..404251026 --- /dev/null +++ b/Library/Homebrew/test/support/fixtures/receipt.json @@ -0,0 +1,37 @@ +{ + "used_options": [ + "--with-foo", + "--without-bar" + ], + "unused_options": [ + "--with-baz", + "--without-qux" + ], + "built_as_bottle": false, + "poured_from_bottle": true, + "changed_files": [ + "INSTALL_RECEIPT.json", + "bin/foo" + ], + "time": 1403827774, + "HEAD": "deadbeefdeadbeefdeadbeefdeadbeefdeadbeef", + "alias_path": "/usr/local/Library/Taps/homebrew/homebrew-core/Aliases/test-formula", + "stdlib": "libcxx", + "compiler": "clang", + "runtime_dependencies": [ + { + "full_name": "foo", + "version": "1.0" + } + ], + "source": { + "path": "/usr/local/Library/Taps/hombrew/homebrew-core/Formula/foo.rb", + "tap": "homebrew/core", + "spec": "stable", + "versions": { + "stable": "2.14", + "devel": "2.15", + "head": "HEAD-0000000" + } + } +} diff --git a/Library/Homebrew/test/support/fixtures/receipt_old.json b/Library/Homebrew/test/support/fixtures/receipt_old.json new file mode 100644 index 000000000..955d56b47 --- /dev/null +++ b/Library/Homebrew/test/support/fixtures/receipt_old.json @@ -0,0 +1,17 @@ +{ + "used_options": [ + "--with-foo", + "--without-bar" + ], + "unused_options": [ + "--with-baz", + "--without-qux" + ], + "built_as_bottle": false, + "poured_from_bottle": true, + "tapped_from": "Homebrew/homebrew", + "time": 1403827774, + "HEAD": "deadbeefdeadbeefdeadbeefdeadbeefdeadbeef", + "stdlib": "libcxx", + "compiler": "clang" +} diff --git a/Library/Homebrew/test/support/fixtures/tarballs/testball-0.1-patches.tgz b/Library/Homebrew/test/support/fixtures/tarballs/testball-0.1-patches.tgz Binary files differnew file mode 100644 index 000000000..4b43f535e --- /dev/null +++ b/Library/Homebrew/test/support/fixtures/tarballs/testball-0.1-patches.tgz diff --git a/Library/Homebrew/test/support/fixtures/tarballs/testball-0.1.tbz b/Library/Homebrew/test/support/fixtures/tarballs/testball-0.1.tbz Binary files differnew file mode 100644 index 000000000..c7e1af1f4 --- /dev/null +++ b/Library/Homebrew/test/support/fixtures/tarballs/testball-0.1.tbz diff --git a/Library/Homebrew/test/support/fixtures/tarballs/testbottest-0.1.tbz b/Library/Homebrew/test/support/fixtures/tarballs/testbottest-0.1.tbz Binary files differnew file mode 100644 index 000000000..83f7ab1dd --- /dev/null +++ b/Library/Homebrew/test/support/fixtures/tarballs/testbottest-0.1.tbz diff --git a/Library/Homebrew/test/support/fixtures/test.diff b/Library/Homebrew/test/support/fixtures/test.diff new file mode 100644 index 000000000..7b57f8fc9 --- /dev/null +++ b/Library/Homebrew/test/support/fixtures/test.diff @@ -0,0 +1,10 @@ +diff --git a/libexec/NOOP b/libexec/NOOP +index bfdda4c..e08d8f4 100755 +--- a/libexec/NOOP ++++ b/libexec/NOOP +@@ -1,2 +1,2 @@ + #!/bin/bash +-echo NOOP +\ No newline at end of file ++echo ABCD +\ No newline at end of file diff --git a/Library/Homebrew/test/support/fixtures/test.eps b/Library/Homebrew/test/support/fixtures/test.eps new file mode 100644 index 000000000..2832613e7 --- /dev/null +++ b/Library/Homebrew/test/support/fixtures/test.eps @@ -0,0 +1,25 @@ +%!PS-Adobe-2.0 EPSF-2.0 +%%BoundingBox: 73 499 211 513 +%%HiResBoundingBox: 73.000000 499.500000 211.000000 512.500000 +%%EndComments +% EPSF created by ps2eps 1.68 +%%BeginProlog +save +countdictstack +mark +newpath +/showpage {} def +/setpagedevice {pop} def +%%EndProlog +%%Page 1 1 +/Courier +20 selectfont +72 500 moveto +(Hello World!) show +showpage +%%Trailer +cleartomark +countdictstack +exch sub { end } repeat +restore +%%EOF diff --git a/Library/Homebrew/test/support/fixtures/test.gif b/Library/Homebrew/test/support/fixtures/test.gif Binary files differnew file mode 100644 index 000000000..0589d2082 --- /dev/null +++ b/Library/Homebrew/test/support/fixtures/test.gif diff --git a/Library/Homebrew/test/support/fixtures/test.ico b/Library/Homebrew/test/support/fixtures/test.ico Binary files differnew file mode 100644 index 000000000..714f3478d --- /dev/null +++ b/Library/Homebrew/test/support/fixtures/test.ico diff --git a/Library/Homebrew/test/support/fixtures/test.jpg b/Library/Homebrew/test/support/fixtures/test.jpg Binary files differnew file mode 100644 index 000000000..1adaa50a6 --- /dev/null +++ b/Library/Homebrew/test/support/fixtures/test.jpg diff --git a/Library/Homebrew/test/support/fixtures/test.m4a b/Library/Homebrew/test/support/fixtures/test.m4a Binary files differnew file mode 100644 index 000000000..7650fc482 --- /dev/null +++ b/Library/Homebrew/test/support/fixtures/test.m4a diff --git a/Library/Homebrew/test/support/fixtures/test.mp3 b/Library/Homebrew/test/support/fixtures/test.mp3 Binary files differnew file mode 100644 index 000000000..a01322383 --- /dev/null +++ b/Library/Homebrew/test/support/fixtures/test.mp3 diff --git a/Library/Homebrew/test/support/fixtures/test.pcap b/Library/Homebrew/test/support/fixtures/test.pcap Binary files differnew file mode 100644 index 000000000..671197e8a --- /dev/null +++ b/Library/Homebrew/test/support/fixtures/test.pcap diff --git a/Library/Homebrew/test/support/fixtures/test.pdf b/Library/Homebrew/test/support/fixtures/test.pdf new file mode 100644 index 000000000..1f2ac6390 --- /dev/null +++ b/Library/Homebrew/test/support/fixtures/test.pdf @@ -0,0 +1,24 @@ +%PDF-1.6 +%μῦ +1 0 obj<</Type/Catalog/Pages 2 0 R>>endobj +2 0 obj<</Type/Pages/Kids[3 0 R]/Count 1>>endobj +3 0 obj<</Type/Page/Parent 2 0 R/Resources 4 0 R/MediaBox[0 0 500 800]/Contents 6 0 R>>endobj +4 0 obj<</Font<</F1 5 0 R>>>>endobj +5 0 obj<</Type/Font/Subtype/Type1/BaseFont/Helvetica>>endobj +6 0 obj<</Length 46>>stream +BT /F1 24 Tf 175 720 Td (Homebrew test.)Tj ET +endstream +endobj +xref +0 7 +0000000000 65536 f +0000000016 00000 n +0000000059 00000 n +0000000108 00000 n +0000000202 00000 n +0000000238 00000 n +0000000299 00000 n +trailer<</Size 7/Root 1 0 R>> +startxref +390 +%%EOF diff --git a/Library/Homebrew/test/support/fixtures/test.png b/Library/Homebrew/test/support/fixtures/test.png Binary files differnew file mode 100644 index 000000000..18d7a15a9 --- /dev/null +++ b/Library/Homebrew/test/support/fixtures/test.png diff --git a/Library/Homebrew/test/support/fixtures/test.ps b/Library/Homebrew/test/support/fixtures/test.ps new file mode 100644 index 000000000..68aae0621 --- /dev/null +++ b/Library/Homebrew/test/support/fixtures/test.ps @@ -0,0 +1,6 @@ +%!PS +/Courier +20 selectfont +72 500 moveto +(Hello World!) show +showpage diff --git a/Library/Homebrew/test/support/fixtures/test.svg b/Library/Homebrew/test/support/fixtures/test.svg new file mode 100644 index 000000000..1869e624c --- /dev/null +++ b/Library/Homebrew/test/support/fixtures/test.svg @@ -0,0 +1,4 @@ +<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="160" height="35" id="Homebrew"> +<text transform="matrix(1 0 0 1 7 30)" font-size="30" font-family="Helvetica">Homebrew</text> +<rect x="3" y="3" fill="none" stroke="#000" width="155" height="31"/> +</svg> diff --git a/Library/Homebrew/test/support/fixtures/test.tiff b/Library/Homebrew/test/support/fixtures/test.tiff Binary files differnew file mode 100644 index 000000000..ae756b264 --- /dev/null +++ b/Library/Homebrew/test/support/fixtures/test.tiff diff --git a/Library/Homebrew/test/support/fixtures/test.wav b/Library/Homebrew/test/support/fixtures/test.wav Binary files differnew file mode 100644 index 000000000..c846b8a9b --- /dev/null +++ b/Library/Homebrew/test/support/fixtures/test.wav diff --git a/Library/Homebrew/test/support/fixtures/testball.rb b/Library/Homebrew/test/support/fixtures/testball.rb new file mode 100644 index 000000000..ba725f51e --- /dev/null +++ b/Library/Homebrew/test/support/fixtures/testball.rb @@ -0,0 +1,15 @@ +class Testball < Formula + def initialize(name = "testball", path = Pathname.new(__FILE__).expand_path, spec = :stable, alias_path: nil) + self.class.instance_eval do + stable.url "file://#{TEST_FIXTURE_DIR}/tarballs/testball-0.1.tbz" + stable.sha256 TESTBALL_SHA256 + end + super + end + + def install + prefix.install "bin" + prefix.install "libexec" + Dir.chdir "doc" + end +end diff --git a/Library/Homebrew/test/support/fixtures/testball_bottle.rb b/Library/Homebrew/test/support/fixtures/testball_bottle.rb new file mode 100644 index 000000000..9453255e6 --- /dev/null +++ b/Library/Homebrew/test/support/fixtures/testball_bottle.rb @@ -0,0 +1,20 @@ +class TestballBottle < Formula + def initialize(name = "testball_bottle", path = Pathname.new(__FILE__).expand_path, spec = :stable, alias_path: nil) + self.class.instance_eval do + stable.url "file://#{TEST_FIXTURE_DIR}/tarballs/testball-0.1.tbz" + stable.sha256 TESTBALL_SHA256 + stable.bottle do + cellar :any_skip_relocation + root_url "file://#{TEST_FIXTURE_DIR}/bottles" + sha256 "9abc8ce779067e26556002c4ca6b9427b9874d25f0cafa7028e05b5c5c410cb4" => Utils::Bottles.tag + end + cxxstdlib_check :skip + end + super + end + + def install + prefix.install "bin" + prefix.install "libexec" + end +end diff --git a/Library/Homebrew/test/support/fixtures/testbottest.rb b/Library/Homebrew/test/support/fixtures/testbottest.rb new file mode 100644 index 000000000..28b88567e --- /dev/null +++ b/Library/Homebrew/test/support/fixtures/testbottest.rb @@ -0,0 +1,14 @@ +class Testbottest < Formula + desc "Minimal C program and Makefile used for testing Homebrew." + homepage "https://github.com/Homebrew/brew" + url "file://#{TEST_FIXTURE_DIR}/tarballs/testbottest-0.1.tbz" + sha256 "78b54d8f31585c9773bed12b4aa4ab2ce458ebd044b9406cb24d40aa5107f082" + + def install + system "make", "install", "PREFIX=#{prefix}" + end + + test do + assert_equal "testbottest\n", shell_output("#{bin}/testbottest") + end +end diff --git a/Library/Homebrew/test/support/fixtures/updater_fixture.yaml b/Library/Homebrew/test/support/fixtures/updater_fixture.yaml new file mode 100644 index 000000000..06a6a0c7f --- /dev/null +++ b/Library/Homebrew/test/support/fixtures/updater_fixture.yaml @@ -0,0 +1,64 @@ +update_git_diff_output_without_formulae_changes: | + M Library/Homebrew/ARGV+yeast.rb + A Library/Homebrew/beer_events.rb + A Library/Homebrew/hardware.rb + D Library/Homebrew/hw.model.c + M README + M bin/brew +update_git_diff_output_with_formulae_changes: | + M Library/Contributions/brew_bash_completion.sh + A Formula/antiword.rb + A Formula/bash-completion.rb + A Formula/ddrescue.rb + A Formula/dict.rb + A Formula/lua.rb + M Formula/xar.rb + M Formula/yajl.rb + M Library/Homebrew/ARGV+yeast.rb + M Library/Homebrew/beer_events.rb + M Library/Homebrew/hardware.rb + M Library/Homebrew/hw.model.c + M Library/Homebrew/hw.model.rb + M Library/Homebrew/pathname+yeast.rb + M Library/Homebrew/unittest.rb + M Library/Homebrew/utils.rb + M README + M bin/brew +update_git_diff_output_with_removed_formulae: | + A Formula/flac123.rb + M Formula/gdal.rb + M Formula/grass.rb + M Formula/json_spirit.rb + A Formula/libbson.rb + D Formula/libgsasl.rb +update_git_diff_output_with_changed_filetype: | + A Library/ENV/4.3/ant + T Library/ENV/4.3/bsdmake + M Library/ENV/4.3/make + M Formula/elixir.rb + A Formula/libbson.rb + D Formula/libgsasl.rb + M Library/Homebrew/cmd/update.rb + M SUPPORTERS.md +update_git_diff_output_with_formula_rename: | + R100 Formula/cv.rb Formula/progress.rb +update_git_diff_output_with_restructured_tap: | + R100 git.rb Formula/git.rb + R100 lua.rb Formula/lua.rb +update_git_diff_output_with_formula_rename_and_restructuring: | + R100 xchat.rb Formula/xchat2.rb +update_git_diff_simulate_homebrew_php_restructuring: | + R100 Formula/git.rb Abstract/git.rb + R100 Formula/lua.rb Abstract/lua.rb +update_git_diff_output_with_tap_formulae_changes: | + M Rakefile + M README.md + M Requirements/some_requirement.rb + D another_ruby_file.rb + A a_ruby_file.rb + A CONTRIBUTING.md + M Formula/git.rb + A Formula/lua.rb + M lib/not_a_formula.rb + A lib/not_a_formula2.rb + D lib/not_a_formula3.rb |
