File: check_zip.sh

package info (click to toggle)
viking 1.11-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 18,468 kB
  • sloc: ansic: 81,706; xml: 2,893; sh: 2,501; makefile: 874; python: 589; perl: 384; cpp: 259
file content (17 lines) | stat: -rwxr-xr-x 429 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh
# Copyright: CC0

# Create zip file on the fly rather than storing in repository
# Hopefully safe to assume zip 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-$$.zip
zip $zfile $srcdir/Stonehenge.gpx
./test_file_load $zfile
if [ $? != 0 ]; then
  echo "load zip test failure"
  exit 1
fi
rm $zfile