~ubuntu-branches/ubuntu/wily/man-db/wily-proposed

« back to all changes in this revision

Viewing changes to src/tests/mandb-3

  • Committer: Package Import Robot
  • Author(s): Colin Watson
  • Date: 2013-06-24 11:34:02 UTC
  • mfrom: (1.2.13)
  • Revision ID: package-import@ubuntu.com-20130624113402-6xdn53l2p9qu8yus
Tags: 2.6.4-1
* New upstream release:
  - Document default section list in manual pages (closes: #611007).
  - Quieten most warnings from compiling Gnulib (closes: #668429).
  - The MANLESS environment variable is now treated as if it were a
    default value for the -r option to man: occurrences of the text
    "$MAN_PN" are expanded, and explicitly using the -r option overrides
    the default (closes: #690831).
* Use 'set -e' rather than '#! /bin/sh -e' in maintainer scripts.
* Remove maintainer script support for direct upgrades from pre-etch
  (three releases before current stable).
* Breaks/Replaces manpages-zh (<< 1.5.2-1.1); man-db now ships zh_CN
  translations formerly included there.

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
 
12
12
init
13
13
fake_config /usr/share/man
 
14
MANPATH="$tmpdir/usr/share/man"
 
15
export MANPATH
14
16
db_ext="$(db_ext)"
15
17
 
16
18
NL='
18
20
 
19
21
write_page test 1 "$tmpdir/usr/share/man/man1/test.1.gz" UTF-8 gz t \
20
22
        "test \- test page${NL}.br${NL}testlink \- link to test page"
21
 
MANPATH="$tmpdir/usr/share/man" run $MANDB -C "$tmpdir/manpath.config" -u -q \
22
 
        "$tmpdir/usr/share/man"
 
23
run $MANDB -C "$tmpdir/manpath.config" -u -q "$tmpdir/usr/share/man"
23
24
cat >"$tmpdir/1.exp" <<EOF
24
25
test -> "- 1 1 MTIME A - - gz test page"
25
26
testlink -> "- 1 1 MTIME C test - gz "
28
29
expect_pass 'setup' 'diff -u "$tmpdir/1.exp" "$tmpdir/1.out"'
29
30
 
30
31
next_second
31
 
echo '.so test.1' | gzip -9c >"$tmpdir/usr/share/man/man1/testlink.1.gz"
32
 
MANPATH="$tmpdir/usr/share/man" run $MANDB -C "$tmpdir/manpath.config" -u -q \
33
 
        "$tmpdir/usr/share/man"
 
32
echo '.so nonexistent.1' | gzip -9c >"$tmpdir/usr/share/man/man1/testlink.1.gz"
 
33
run $MANDB -C "$tmpdir/manpath.config" -u -q "$tmpdir/usr/share/man"
34
34
cat >"$tmpdir/2.exp" <<EOF
35
35
test -> "- 1 1 MTIME A - - gz test page"
36
36
testlink -> "- 1 1 MTIME C test - gz "
39
39
expect_pass 'broken whatis' 'diff -u "$tmpdir/2.exp" "$tmpdir/2.out"'
40
40
 
41
41
next_second
42
 
MANPATH="$tmpdir/usr/share/man" LC_ALL=C run $MANDB \
43
 
        -C "$tmpdir/manpath.config" -u \
 
42
LC_ALL=C run $MANDB -C "$tmpdir/manpath.config" -u \
44
43
        "$tmpdir/usr/share/man" >"$tmpdir/3.out" 2>/dev/null
45
44
realtmpdir="$(pwd -P)/$tmpdir"
46
45
cat >"$tmpdir/3.exp" <<EOF