~ubuntu-branches/ubuntu/trusty/gsmlib/trusty

« back to all changes in this revision

Viewing changes to tests/runspbi.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 spbi2-orig.pb spbi2.pb ||
 
9
    errorexit "could not copy spbi2-orig.pb to spbi2.pb"
 
10
    
 
11
# run the test
 
12
../apps/gsmpb -V -i -s spbi1.pb -d spbi2.pb > testspbi.log
 
13
 
 
14
# add new contents of phonebook file to the test log
 
15
cat spbi2.pb >> testspbi.log
 
16
 
 
17
# check if output differs from what it should be
 
18
diff testspbi.log testspbi-output.txt