Debian Codegraph @

holtest_parallel

raw symbols ◀ ▶
Source reconstructed at patch state 0 of 1 — not the installed (fully patched) source.
1 Debian patch touch this file
1 #!/bin/bash
2 #######################################################################
3 # Load in a bunch of examples to test HOL Light is working properly
4 #
5 # This script attempts to distribute the tests over available cores
6 # and should be faster in many cases than the sequential "holtest".
7 #
8 # Try examining the output using something like
9 #
10 # egrep -i '###|error in|not.found' /tmp/hollog_*/holtest.log
11 #
12 # to see progress and whether anything has gone wrong.
13 #
14 # You might first want to install the necessary external tools,
15 # for instance with
16 #
17 # aptitude install prover9 coinor-csdp pari-gp libocamlgraph-ocaml-dev
18 #
19 #######################################################################
20
21 set -e
22
23 if which hol-light > /dev/null ; then
24 hollight=hol-light
25 elif type ckpt > /dev/null; then
26 make clean; make hol
27 (cd Mizarlight; make clean; make)
28 hollight=./hol
29 else
30 make clean; make
31 (cd Mizarlight; make clean; make)
32 hollight=./hol.sh
33 export HOLLIGHT_DIR=`$hollight -dir`
34 fi
35
36 if [ "${NUMCORES}" == "" ]; then
37 NUMCORES=$(getconf _NPROCESSORS_ONLN)
38 fi
39 make -j ${NUMCORES} "HOLLIGHT=$hollight" SHELL=bash \
40 -f holtest.mk all
41
42 # Remove "#"s in the follwing lines to build the proof-recording version
43 #
44 # echo '### Building proof-recording version';
45 # cd Proofrecording/hol_light
46 # make clean; make hol