[go: up one dir, main page]

Menu

[32ec18]: / test / check_gzip.sh  Maximize  Restore  History

Download this file

18 lines (16 with data), 450 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
#!/bin/sh
# Copyright: CC0
# Create gzip file on the fly rather than storing in repository
# Hopefully safe to assume gzip program is always installed
# Enable running in test directory or via make distcheck when $srcdir is defined
if [ -z "$srcdir" ]; then
srcdir=.
fi
zfile=./Stonehenge-$$.gz
gzip --keep --stdout $srcdir/Stonehenge.gpx > $zfile
./test_file_load $zfile
if [ $? != 0 ]; then
echo "load gzip test failure"
exit 1
fi
rm $zfile