File: runspb.sh

package info (click to toggle)
gsmlib 1.10%2B20120414.gita5e5ae9a-0.3
  • links: PTS
  • area: main
  • in suites: buster, stretch
  • size: 3,468 kB
  • ctags: 1,907
  • sloc: cpp: 12,315; sh: 11,376; ansic: 2,366; makefile: 263; sed: 93
file content (17 lines) | stat: -rwxr-xr-x 336 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh

errorexit() {
    echo $1
    exit 1
}

cp spb.pb spb-copy.pb || errorexit "could not copy spb.pb to spb-copy.pb"

# run the test
./testspb > testspb.log

# add new contents of phonebook file to the test log
cat spb-copy.pb >> testspb.log

# check if output differs from what it should be
diff testspb.log testspb-output.txt