Admin/isatest/isatest-stats
author wenzelm
Sat, 01 May 2010 00:23:57 +0200
changeset 36604 65a8b49e8948
parent 35549 d3df6465f1a0
child 37160 d92638c7c38f
permissions -rwxr-xr-x
more stats;

#!/usr/bin/env bash
#
# Author: Makarius
#
# DESCRIPTION: Standard statistics.

THIS=$(cd "$(dirname "$0")"; pwd -P)

PLATFORMS="at-poly at-poly-test at64-poly cygwin-poly mac-poly-M4 mac-poly64-M4 mac-poly-M8 mac-poly64-M8 at-poly-5.1-para-e at64-poly-5.1-para at-mac-poly-5.1-para afp at-sml-dev sun-poly"

ISABELLE_SESSIONS="\
  HOL-Plain \
  HOL-Main \
  HOL \
  HOL-Proofs \
  HOL-Algebra \
  HOL-Auth \
  HOL-Bali \
  HOL-Decision_Procs \
  HOL-Hoare \
  HOL-Hoare_Parallel \
  HOL-Library \
  HOL-Metis_Examples \
  HOL-MicroJava \
  HOL-Multivariate_Analysis \
  HOL-NSA \
  HOL-Nominal-Examples \
  HOL-Number_Theory \
  HOL-Old_Number_Theory \
  HOL-Proofs-Extraction \
  HOL-Proofs-Lambda \
  HOL-SET_Protocol \
  HOL-UNITY \
  HOL-Word \
  HOL-ex \
  HOLCF \
  IOA \
  ZF \
  ZF-Constructible \
  ZF-UNITY"

AFP_SESSIONS="\
  CoreC++ \
  Jinja-Slicing \
  HOL-BytecodeLogicJmlTypes \
  HOL-DiskPaxos \
  HOL-Fermat3_4 \
  HOL-Flyspeck-Tame \
  HOL-Group-Ring-Module \
  HOL-Jinja \
  HOL-JinjaThreads \
  HOL-JiveDataStoreModel \
  HOL-POPLmark-deBruijn \
  HOL-Program-Conflict-Analysis \
  HOL-RSAPSS \
  HOL-Recursion-Theory-I \
  HOL-SATSolverVerification \
  HOL-SIFPL \
  HOL-SenSocialChoice \
  HOL-SumSquares \
  HOL-Topology \
  HOL-Valuation \
  LinearQuantifierElim \
  Simpl \
  Simpl-BDD"

for PLATFORM in $PLATFORMS
do
  if [ "$PLATFORM" = afp ]; then
    SESSIONS="$AFP_SESSIONS"
  else
    SESSIONS="$ISABELLE_SESSIONS"
  fi

  "$THIS/isatest-statistics" "stats/$PLATFORM" "$PLATFORM" ${1:-100} $SESSIONS
  cat > "stats/$PLATFORM.html" <<EOF
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
<head><title>Development Snapshot -- Performance Statistics</title></head>

<body>
<h1>$PLATFORM</h1>
EOF

for SESSION in $SESSIONS
do
  echo "<br><img src="$PLATFORM/$SESSION.png"><br>" >> "stats/$PLATFORM.html"
done

echo "</body>" >> "stats/$PLATFORM.html"
echo "</html>" >> "stats/$PLATFORM.html"

done