##// END OF EJS Templates
osx: use more paranoid quoting in test
Augie Fackler -
r31610:6dc8cacc default
parent child Browse files
Show More
@@ -1,57 +1,56 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
4
5 $ OUTPUTDIR=`pwd`
5 $ OUTPUTDIR="`pwd`"
6 $ export OUTPUTDIR
6 $ export OUTPUTDIR
7 $ KEEPMPKG=yes
7 $ KEEPMPKG=yes
8 $ export KEEPMPKG
8 $ export KEEPMPKG
9
9
10 $ cd "$TESTDIR"/..
10 $ cd "$TESTDIR"/..
11 $ rm -rf dist
11 $ make osx > "$OUTPUTDIR/build.log" 2>&1
12 $ make osx > $OUTPUTDIR/build.log 2>&1
12 $ cd "$OUTPUTDIR"
13 $ cd $OUTPUTDIR
14 $ ls -d *.pkg
13 $ ls -d *.pkg
15 Mercurial-*-macosx10.*.pkg (glob)
14 Mercurial-*-macosx10.*.pkg (glob)
16
15
17 $ xar -xf Mercurial*.pkg
16 $ xar -xf Mercurial*.pkg
18
17
19 Gather list of all installed files:
18 Gather list of all installed files:
20 $ lsbom mercurial.pkg/Bom > boms.txt
19 $ lsbom mercurial.pkg/Bom > boms.txt
21
20
22 Spot-check some randomly selected files:
21 Spot-check some randomly selected files:
23 $ grep bdiff boms.txt | cut -d ' ' -f 1,2,3
22 $ grep bdiff boms.txt | cut -d ' ' -f 1,2,3
24 ./Library/Python/2.7/site-packages/mercurial/bdiff.so 100755 0/0
23 ./Library/Python/2.7/site-packages/mercurial/bdiff.so 100755 0/0
25 ./Library/Python/2.7/site-packages/mercurial/pure/bdiff.py 100644 0/0
24 ./Library/Python/2.7/site-packages/mercurial/pure/bdiff.py 100644 0/0
26 ./Library/Python/2.7/site-packages/mercurial/pure/bdiff.pyc 100644 0/0
25 ./Library/Python/2.7/site-packages/mercurial/pure/bdiff.pyc 100644 0/0
27 ./Library/Python/2.7/site-packages/mercurial/pure/bdiff.pyo 100644 0/0
26 ./Library/Python/2.7/site-packages/mercurial/pure/bdiff.pyo 100644 0/0
28 $ grep zsh/site-functions/hg boms.txt | cut -d ' ' -f 1,2,3
27 $ grep zsh/site-functions/hg boms.txt | cut -d ' ' -f 1,2,3
29 ./usr/local/share/zsh/site-functions/hg 100644 0/0
28 ./usr/local/share/zsh/site-functions/hg 100644 0/0
30 $ grep hg-completion.bash boms.txt | cut -d ' ' -f 1,2,3
29 $ grep hg-completion.bash boms.txt | cut -d ' ' -f 1,2,3
31 ./usr/local/hg/contrib/hg-completion.bash 100644 0/0
30 ./usr/local/hg/contrib/hg-completion.bash 100644 0/0
32 $ egrep 'man[15]' boms.txt | cut -d ' ' -f 1,2,3
31 $ egrep 'man[15]' boms.txt | cut -d ' ' -f 1,2,3
33 ./usr/local/share/man/man1 40755 0/0
32 ./usr/local/share/man/man1 40755 0/0
34 ./usr/local/share/man/man1/hg.1 100644 0/0
33 ./usr/local/share/man/man1/hg.1 100644 0/0
35 ./usr/local/share/man/man5 40755 0/0
34 ./usr/local/share/man/man5 40755 0/0
36 ./usr/local/share/man/man5/hgignore.5 100644 0/0
35 ./usr/local/share/man/man5/hgignore.5 100644 0/0
37 ./usr/local/share/man/man5/hgrc.5 100644 0/0
36 ./usr/local/share/man/man5/hgrc.5 100644 0/0
38 $ grep bser boms.txt | cut -d ' ' -f 1,2,3
37 $ grep bser boms.txt | cut -d ' ' -f 1,2,3
39 ./Library/Python/2.7/site-packages/hgext/fsmonitor/pywatchman/bser.so 100755 0/0
38 ./Library/Python/2.7/site-packages/hgext/fsmonitor/pywatchman/bser.so 100755 0/0
40 ./Library/Python/2.7/site-packages/hgext/fsmonitor/pywatchman/pybser.py 100644 0/0
39 ./Library/Python/2.7/site-packages/hgext/fsmonitor/pywatchman/pybser.py 100644 0/0
41 ./Library/Python/2.7/site-packages/hgext/fsmonitor/pywatchman/pybser.pyc 100644 0/0
40 ./Library/Python/2.7/site-packages/hgext/fsmonitor/pywatchman/pybser.pyc 100644 0/0
42 ./Library/Python/2.7/site-packages/hgext/fsmonitor/pywatchman/pybser.pyo 100644 0/0
41 ./Library/Python/2.7/site-packages/hgext/fsmonitor/pywatchman/pybser.pyo 100644 0/0
43 $ grep localrepo boms.txt | cut -d ' ' -f 1,2,3
42 $ grep localrepo boms.txt | cut -d ' ' -f 1,2,3
44 ./Library/Python/2.7/site-packages/mercurial/localrepo.py 100644 0/0
43 ./Library/Python/2.7/site-packages/mercurial/localrepo.py 100644 0/0
45 ./Library/Python/2.7/site-packages/mercurial/localrepo.pyc 100644 0/0
44 ./Library/Python/2.7/site-packages/mercurial/localrepo.pyc 100644 0/0
46 ./Library/Python/2.7/site-packages/mercurial/localrepo.pyo 100644 0/0
45 ./Library/Python/2.7/site-packages/mercurial/localrepo.pyo 100644 0/0
47 $ grep 'bin/hg ' boms.txt | cut -d ' ' -f 1,2,3
46 $ grep 'bin/hg ' boms.txt | cut -d ' ' -f 1,2,3
48 ./usr/local/bin/hg 100755 0/0
47 ./usr/local/bin/hg 100755 0/0
49
48
50 Make sure the built binary uses the system Python interpreter
49 Make sure the built binary uses the system Python interpreter
51 $ bsdtar xf mercurial.pkg/Payload usr/local/bin
50 $ bsdtar xf mercurial.pkg/Payload usr/local/bin
52 Use a glob to find this to avoid check-code whining about a fixed path.
51 Use a glob to find this to avoid check-code whining about a fixed path.
53 $ head -n 1 usr/local/b?n/hg
52 $ head -n 1 usr/local/b?n/hg
54 #!/System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python
53 #!/System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python
55
54
56 Note that we're not currently installing any /etc/mercurial stuff,
55 Note that we're not currently installing any /etc/mercurial stuff,
57 including merge-tool configurations.
56 including merge-tool configurations.
General Comments 0
You need to be logged in to leave comments. Login now