src/HOL/Predicate_Compile_Examples/ROOT.ML
author wenzelm
Sun, 28 Nov 2010 14:01:20 +0100
changeset 40781 ba5be5c3d477
parent 40243 3102b27ca03a
child 41952 c7297638599b
permissions -rw-r--r--
updated versions;
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
39616
8052101883c3 renamed setmp_noncritical to Unsynchronized.setmp to emphasize its meaning;
wenzelm
parents: 39544
diff changeset
     1
use_thys [
39655
8ad7fe9d6f0b splitting Predicate_Compile_Examples into Examples and Predicate_Compile_Tests
bulwahn
parents: 39616
diff changeset
     2
  "Examples",
8ad7fe9d6f0b splitting Predicate_Compile_Examples into Examples and Predicate_Compile_Tests
bulwahn
parents: 39616
diff changeset
     3
  "Predicate_Compile_Tests",
40055
1f7cc5357d96 temporary removed Predicate_Compile_Quickcheck_Examples from tests
bulwahn
parents: 39655
diff changeset
     4
(*  "Predicate_Compile_Quickcheck_Examples", -- should be added again soon *)
39616
8052101883c3 renamed setmp_noncritical to Unsynchronized.setmp to emphasize its meaning;
wenzelm
parents: 39544
diff changeset
     5
  "Specialisation_Examples",
40104
82873a6f2b81 splitting Hotel Key card example into specification and the two tests for counter example generation
bulwahn
parents: 40055
diff changeset
     6
  "Hotel_Example_Small_Generator",
39616
8052101883c3 renamed setmp_noncritical to Unsynchronized.setmp to emphasize its meaning;
wenzelm
parents: 39544
diff changeset
     7
  "IMP_1",
40137
9eabcb1bfe50 changing test parameters in examples to get to a result within the global timelimit
bulwahn
parents: 40104
diff changeset
     8
  "IMP_2"
9eabcb1bfe50 changing test parameters in examples to get to a result within the global timelimit
bulwahn
parents: 40104
diff changeset
     9
(*  "IMP_3",
9eabcb1bfe50 changing test parameters in examples to get to a result within the global timelimit
bulwahn
parents: 40104
diff changeset
    10
  "IMP_4"*)];
39616
8052101883c3 renamed setmp_noncritical to Unsynchronized.setmp to emphasize its meaning;
wenzelm
parents: 39544
diff changeset
    11
39544
3a07bbc264b2 replacing temporary hack by checking for environment settings of the component
bulwahn
parents: 39225
diff changeset
    12
if getenv "EXEC_SWIPL" = "" andalso getenv "EXEC_YAP" = "" then
39616
8052101883c3 renamed setmp_noncritical to Unsynchronized.setmp to emphasize its meaning;
wenzelm
parents: 39544
diff changeset
    13
  (warning "No prolog system found - skipping some example theories"; ())
39544
3a07bbc264b2 replacing temporary hack by checking for environment settings of the component
bulwahn
parents: 39225
diff changeset
    14
else
40243
3102b27ca03a adding a simple check to only run with a SWI-Prolog version known to work
bulwahn
parents: 40137
diff changeset
    15
  if not (getenv "EXEC_SWIPL" = "") orelse (getenv "SWIPL_VERSION" = "5.10.1") then
3102b27ca03a adding a simple check to only run with a SWI-Prolog version known to work
bulwahn
parents: 40137
diff changeset
    16
     (use_thys [
3102b27ca03a adding a simple check to only run with a SWI-Prolog version known to work
bulwahn
parents: 40137
diff changeset
    17
        "Code_Prolog_Examples",
3102b27ca03a adding a simple check to only run with a SWI-Prolog version known to work
bulwahn
parents: 40137
diff changeset
    18
        "Context_Free_Grammar_Example",
3102b27ca03a adding a simple check to only run with a SWI-Prolog version known to work
bulwahn
parents: 40137
diff changeset
    19
        "Hotel_Example_Prolog",
3102b27ca03a adding a simple check to only run with a SWI-Prolog version known to work
bulwahn
parents: 40137
diff changeset
    20
        "Lambda_Example",
3102b27ca03a adding a simple check to only run with a SWI-Prolog version known to work
bulwahn
parents: 40137
diff changeset
    21
        "List_Examples"];
3102b27ca03a adding a simple check to only run with a SWI-Prolog version known to work
bulwahn
parents: 40137
diff changeset
    22
      Unsynchronized.setmp quick_and_dirty true use_thys ["Reg_Exp_Example"])
3102b27ca03a adding a simple check to only run with a SWI-Prolog version known to work
bulwahn
parents: 40137
diff changeset
    23
    else (warning "Unsupported SWI-Prolog version - skipping some example theories"; ());