~ubuntu-branches/ubuntu/lucid/xplanet/lucid

« back to all changes in this revision

Viewing changes to test/00/t0001a.sh

  • Committer: Bazaar Package Importer
  • Author(s): Gopal Narayanan
  • Date: 2002-04-08 11:27:33 UTC
  • Revision ID: james.westby@ubuntu.com-20020408112733-z0w5kf47juap31jj
Tags: 0.94-1
* New upstream release
* Upstream fixes satfile problem reported by Jean-Philippe Guerard
  <jean-philippe.guerard@laposte.net>. Closes: #130770
* Added Japanese translation for debconf. Thanks Tomohiro KUBOTA
  <tkubota@riken.go.jp>. Closes: #137292

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
#
 
3
# test xplanet binary
 
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
# Create and switch to temporary directory
 
33
 
 
34
mkdir $tmp
 
35
if [ $? -ne 0 ]; then fail; fi
 
36
 
 
37
cd $tmp
 
38
if [ $? -ne 0 ]; then fail; fi
 
39
 
 
40
# Input
 
41
 
 
42
cat > test.in <<EOF
 
43
$here/xplanet --output output.tiff
 
44
EOF
 
45
if [ $? -ne 0 ]; then fail; fi
 
46
 
 
47
# Output is non-deterministic; can't do cmp on images
 
48
 
 
49
# Run test
 
50
 
 
51
sh ./test.in 
 
52
if [ $? -ne 0 ]; then fail; fi
 
53
 
 
54
pass