~ubuntu-branches/ubuntu/intrepid/gsmlib/intrepid

« back to all changes in this revision

Viewing changes to tests/runspb2.sh

  • Committer: Bazaar Package Importer
  • Author(s): Mikael Hedin
  • Date: 2002-01-24 12:59:07 UTC
  • Revision ID: james.westby@ubuntu.com-20020124125907-b7qkpokx5283jdpu
Tags: upstream-1.8
ImportĀ upstreamĀ versionĀ 1.8

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
 
 
3
errorexit() {
 
4
    echo $1
 
5
    exit 1
 
6
}
 
7
 
 
8
cp spb2.pb spb-copy.pb || errorexit "could not copy spb2.pb to spb2-copy.pb"
 
9
 
 
10
# run the test
 
11
./testspb > testspb2.log
 
12
 
 
13
# add new contents of phonebook file to the test log
 
14
cat spb-copy.pb >> testspb2.log
 
15
 
 
16
# check if output differs from what it should be
 
17
diff testspb2.log testspb2-output.txt