File: run-and-check

package info (click to toggle)
prover9-manual 0.0.200902a-2.1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 4,272 kB
  • sloc: xml: 212; csh: 144; python: 73; makefile: 42; perl: 10; sh: 1
file content (28 lines) | stat: -rwxr-xr-x 420 bytes parent folder | download | duplicates (4)
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/csh

if ($#argv != 1) then
        echo "need 1 arg: bin-directory"
        exit(1)
endif

set bin=$1
set dir=checked-jobs

if -e checked-jobs/andrews.out then
    /bin/rm checked-jobs/*
endif

set outs=`grep '>' go | sed 's/.*> //'`

/bin/mv $outs checked-jobs

./go $bin

cd checked-jobs

foreach i ($outs)
    diff $i ../$i > $i.diffs
    if -z $i.diffs /bin/rm $i.diffs
end

echo "See the files $dir/*.diffs"