File: run_jasper_warning_test.sh

package info (click to toggle)
g2clib 2.3.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 13,524 kB
  • sloc: ansic: 28,287; python: 76; sh: 46; makefile: 26
file content (21 lines) | stat: -rw-r--r-- 518 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh
# This is a test script for the NCEPLIBS-g2c project.
#
# This script runs a simple program that uses the jasper library, and
# then compares the output to expected output, to ensure that jasper
# is not writing any warning messages to stdout.
#
# Ed Hartnett, 10/26/23

set -e
echo ""
echo "*** Running jasper warning test"
set -x
pwd
./tst_jasper_warning &> tst_jasper_warning.txt

# Check against expected output.
diff -w tst_jasper_warning.txt data/ref_tst_jasper_warning.txt

echo "*** SUCCESS!"
exit 0