File: test-hol-light

package info (click to toggle)
hol-light 1%3A3.0.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 48,252 kB
  • sloc: ml: 719,565; cpp: 439; makefile: 383; sh: 289; lisp: 286; java: 279; yacc: 108; perl: 78; ansic: 57; python: 53; sed: 39
file content (28 lines) | stat: -rwxr-xr-x 700 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
22
23
24
25
26
27
28
#!/bin/bash

set -e

function hol_light () {
    ./ocaml -init hol.ml
}

function holtest() {
    echo "######################## HOL Light test $1 ###################"
    echo "loadt \"$1\";;" | hol_light 2>&1 | tee /tmp/hol-light-test-log
    if egrep -i 'error|not.found' /tmp/hol-light-test-log ; then
	echo 
	echo Error in $1, test failed
	false
    fi
}

holtest Library/agm.ml
# holtest Library/binary.ml
# holtest Library/binomial.ml
# holtest Library/card.ml

# The prover9 example fails in a clean build environment, because
# prover9 is not installed there. If you want to test whether error
# detection works in this script, uncomment the next holtest line.

#holtest Examples/prover9.ml