OSDN Git Service

struct huf_t was discarded.
[lha/olha.git] / test.sh
1 #!/bin/sh
2
3 set -ex
4
5 VALGRIND=
6 if [ "$1" = -v ]; then
7   if which valgrind 2>/dev/null; then
8     VALGRIND="valgrind -q"
9   fi
10 fi
11
12 if [ -f olha.exe ]; then
13   cp olha.exe olha2
14 else
15   cp olha olha2
16 fi
17 $VALGRIND ./olha a foo.lzh olha2
18 lha t foo.lzh
19 ./olha l foo.lzh
20 ./olha xf foo.lzh olha2
21 if [ -f olha.exe ]; then
22   diff olha.exe olha2
23 else
24   diff olha olha2
25 fi
26 ./olha a foo.lzh olha2
27 rm -f olha2 foo.lzh