File: test_addon

package info (click to toggle)
gretl 2019a-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 53,708 kB
  • sloc: ansic: 367,137; sh: 4,416; makefile: 2,636; cpp: 2,499; xml: 580; perl: 364
file content (29 lines) | stat: -rwxr-xr-x 445 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/sh

GRETLCLI="$1"

export GRETL_INCLUDE_PATH=`pwd`

rm -f test.out

for f in *.inp ; do
  if [ "x$f" != "xpkg.inp" ] ; then
    if $GRETLCLI -b $f >> test.out ; then 
       echo "$f: OK"
    else
       echo "$f: failed"
       break
    fi
  fi
done

if [ -d examples ] ; then
  for f in examples/*.inp ; do
    if $GRETLCLI -b $f >> test.out ; then 
       echo "$f: OK"
    else
       echo "$f: failed"
       break
    fi
  done
fi