~ubuntu-branches/ubuntu/gutsy/xplanet/gutsy

« back to all changes in this revision

Viewing changes to test/00/t0003a.sh

  • Committer: Bazaar Package Importer
  • Author(s): Christoph Berg
  • Date: 2007-04-04 15:30:32 UTC
  • Revision ID: james.westby@ubuntu.com-20070404153032-osas690x0ra71goz
Tags: 1.2.0-3
Fix FTBFS with gcc-4.3, missing #includes, thanks to Martin Michlmayr for
the patch (Closes: #417782).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/bin/sh
2
 
#
3
 
# test for the existence of the tkxplanet manpage 
4
 
5
 
 
6
 
tmp=/tmp/$$
7
 
here=$(pwd)
8
 
 
9
 
if [ $? -ne 0 ]; then exit 1; fi
10
 
 
11
 
fail()
12
 
{
13
 
 
14
 
    echo FAILED 1>&2
15
 
    cd $here
16
 
    ##rm -fr $tmp
17
 
    exit 1
18
 
 
19
 
}
20
 
 
21
 
pass()
22
 
{
23
 
 
24
 
    cd $here
25
 
    rm -fr $tmp
26
 
    exit 0
27
 
 
28
 
}
29
 
 
30
 
trap "fail" 1 2 3 15
31
 
 
32
 
# Run test
33
 
 
34
 
test -f $here/tkxplanet.1
35
 
if [ $? -ne 0 ]; then fail; fi
36
 
 
37
 
test -f $here/debian/tmp/usr/share/man/man1/tkxplanet.1.gz
38
 
if [ $? -ne 0 ]; then fail; fi
39
 
 
40
 
grep -q tkxplanet\\.1 $here/Makefile.in
41
 
if [ $? -ne 0 ]; then fail; fi
42
 
 
43
 
grep -q tkxplanet\\.1 $here/Makefile
44
 
if [ $? -ne 0 ]; then fail; fi
45
 
 
46
 
pass