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