Show More
@@ -1,64 +1,70 b'' | |||
|
1 | 1 | #require test-repo slow osx osxpackaging |
|
2 | 2 | |
|
3 | 3 | $ . "$TESTDIR/helpers-testrepo.sh" |
|
4 | 4 | $ testrepohgenv |
|
5 | 5 | |
|
6 | 6 | $ OUTPUTDIR="`pwd`" |
|
7 | 7 | $ export OUTPUTDIR |
|
8 | 8 | $ KEEPMPKG=yes |
|
9 | 9 | $ export KEEPMPKG |
|
10 | 10 | |
|
11 | 11 | $ cd "$TESTDIR"/.. |
|
12 | 12 | $ make osx > "$OUTPUTDIR/build.log" 2>&1 |
|
13 | 13 | $ cd "$OUTPUTDIR" |
|
14 | 14 | $ ls -d *.pkg |
|
15 | 15 | Mercurial-*-macosx10.*.pkg (glob) |
|
16 | 16 | |
|
17 | 17 | $ xar -xf Mercurial*.pkg |
|
18 | 18 | |
|
19 | 19 | Gather list of all installed files: |
|
20 | 20 | $ lsbom mercurial.pkg/Bom > boms.txt |
|
21 | 21 | |
|
22 | 22 | We've had problems with the filter logic in the past. Make sure no |
|
23 | 23 | .DS_Store files ended up in the final package: |
|
24 | 24 | $ grep DS_S boms.txt |
|
25 | 25 | [1] |
|
26 | 26 | |
|
27 | 27 | Spot-check some randomly selected files: |
|
28 | 28 | $ grep bdiff boms.txt | cut -d ' ' -f 1,2,3 |
|
29 | 29 | ./Library/Python/2.7/site-packages/mercurial/cext/bdiff.so 100755 0/0 |
|
30 | ./Library/Python/2.7/site-packages/mercurial/cffi/bdiff.py 100644 0/0 | |
|
31 | ./Library/Python/2.7/site-packages/mercurial/cffi/bdiff.pyc 100644 0/0 | |
|
32 | ./Library/Python/2.7/site-packages/mercurial/cffi/bdiff.pyo 100644 0/0 | |
|
33 | ./Library/Python/2.7/site-packages/mercurial/cffi/bdiffbuild.py 100644 0/0 | |
|
34 | ./Library/Python/2.7/site-packages/mercurial/cffi/bdiffbuild.pyc 100644 0/0 | |
|
35 | ./Library/Python/2.7/site-packages/mercurial/cffi/bdiffbuild.pyo 100644 0/0 | |
|
30 | 36 | ./Library/Python/2.7/site-packages/mercurial/pure/bdiff.py 100644 0/0 |
|
31 | 37 | ./Library/Python/2.7/site-packages/mercurial/pure/bdiff.pyc 100644 0/0 |
|
32 | 38 | ./Library/Python/2.7/site-packages/mercurial/pure/bdiff.pyo 100644 0/0 |
|
33 | 39 | $ grep zsh/site-functions/_hg boms.txt | cut -d ' ' -f 1,2,3 |
|
34 | 40 | ./usr/local/share/zsh/site-functions/_hg 100644 0/0 |
|
35 | 41 | $ grep hg-completion.bash boms.txt | cut -d ' ' -f 1,2,3 |
|
36 | 42 | ./usr/local/hg/contrib/hg-completion.bash 100644 0/0 |
|
37 | 43 | $ egrep 'man[15]' boms.txt | cut -d ' ' -f 1,2,3 |
|
38 | 44 | ./usr/local/share/man/man1 40755 0/0 |
|
39 | 45 | ./usr/local/share/man/man1/chg.1 100644 0/0 |
|
40 | 46 | ./usr/local/share/man/man1/hg.1 100644 0/0 |
|
41 | 47 | ./usr/local/share/man/man5 40755 0/0 |
|
42 | 48 | ./usr/local/share/man/man5/hgignore.5 100644 0/0 |
|
43 | 49 | ./usr/local/share/man/man5/hgrc.5 100644 0/0 |
|
44 | 50 | $ grep bser boms.txt | cut -d ' ' -f 1,2,3 |
|
45 | 51 | ./Library/Python/2.7/site-packages/hgext/fsmonitor/pywatchman/bser.so 100755 0/0 |
|
46 | 52 | ./Library/Python/2.7/site-packages/hgext/fsmonitor/pywatchman/pybser.py 100644 0/0 |
|
47 | 53 | ./Library/Python/2.7/site-packages/hgext/fsmonitor/pywatchman/pybser.pyc 100644 0/0 |
|
48 | 54 | ./Library/Python/2.7/site-packages/hgext/fsmonitor/pywatchman/pybser.pyo 100644 0/0 |
|
49 | 55 | $ grep localrepo boms.txt | cut -d ' ' -f 1,2,3 |
|
50 | 56 | ./Library/Python/2.7/site-packages/mercurial/localrepo.py 100644 0/0 |
|
51 | 57 | ./Library/Python/2.7/site-packages/mercurial/localrepo.pyc 100644 0/0 |
|
52 | 58 | ./Library/Python/2.7/site-packages/mercurial/localrepo.pyo 100644 0/0 |
|
53 | 59 | $ egrep 'bin/' boms.txt | cut -d ' ' -f 1,2,3 |
|
54 | 60 | ./usr/local/bin/chg 100755 0/0 |
|
55 | 61 | ./usr/local/bin/hg 100755 0/0 |
|
56 | 62 | |
|
57 | 63 | Make sure the built binary uses the system Python interpreter |
|
58 | 64 | $ bsdtar xf mercurial.pkg/Payload usr/local/bin |
|
59 | 65 | Use a glob to find this to avoid check-code whining about a fixed path. |
|
60 | 66 | $ head -n 1 usr/local/b?n/hg |
|
61 | 67 | #!/System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python |
|
62 | 68 | |
|
63 | 69 | Note that we're not currently installing any /etc/mercurial stuff, |
|
64 | 70 | including merge-tool configurations. |
General Comments 0
You need to be logged in to leave comments.
Login now