src/Tools/isac/Test_Isac.thy
author Walther Neuper <neuper@ist.tugraz.at>
Fri, 01 Oct 2010 10:23:38 +0200
branchisac-update-Isa09-2
changeset 38036 02a9b2540eb7
parent 38032 121765ba0a34
child 38037 a51a70334191
permissions -rw-r--r--
repaired 'prepat's, the patterns and preconditions for Rrls

fun parse_patt still lacks numbers_to_string, typ_a2real
because this causes a strange error in Poly.thy to be removed next
     1 (* Title Run_Tests on isac
     2 $ cd /usr/local/isabisac/test/Tools/isac
     3 $ /usr/local/isabisac/bin/isabelle emacs -l Isac Test_Isac.thy &
     4 
     5 RESTART emacs after having created a new Isac heap.
     6 was sml/RTEST-root.sml in isac-2002
     7 
     8 12345678901234567890123456789012345678901234567890123456789012345678901234567890
     9         10        20        30        40        50        60        70        80
    10 *)
    11 
    12 theory Test_Isac imports "Knowledge/Isac" begin
    13 
    14 ML{* writeln "**** run the tests **************************************" *};
    15 ML {* Toplevel.debug := true; *}
    16 (* 
    17 cd "systest";
    18 (*+ check kbtest/diffapp.sml for additional items in met-model*)
    19        	use"root-equ.sml"; 
    20        	use"script.sml";   
    21 	(* use"script_if.sml"; WN03 missing: is_rootequation_in*)
    22        	use"scriptnew.sml";     
    23        	use"subp-rooteq.sml";   
    24 	use"tacis.sml";
    25 	use"interface-xml.sml";
    26 	(* use"testdaten.sml"; no update after dropping 'errorBound'*)    
    27  	cd "../..";
    28 *)
    29 ML{* writeln "**** run systests complete ******************************" *};
    30 (*
    31 cd"smltest/Scripts";
    32 *)
    33 use"../../../test/Tools/isac/ProgLang/termC.sml"; (*part.*)
    34 use"../../../test/Tools/isac/ProgLang/calculate.sml"; (*part.*)
    35 
    36 ML {*print_depth 999;*}
    37 use"../../../test/Tools/isac/ProgLang/rewrite.sml"; (*GOON*)
    38 (*
    39 	use"listg.sml";
    40  	use"scrtools.sml";
    41  	use"tools.sml";
    42  	cd "../.."; 
    43 cd"smltest/ME";
    44 *)
    45 use "../../../test/Tools/isac/Interpret/mstools.sml"; (*empty*)
    46 (*      use"ctree.sml";
    47 *)
    48 use "../../../test/Tools/isac/Interpret/ptyps.sml";   (*TODO*)
    49 use "../../../test/Tools/isac/Interpret/calchead.sml" (*part.*)
    50 (*
    51        	use"calchead.sml"; 
    52  	use"rewtools.sml";
    53         use"solve.sml"; (*detailrls can notyet ackn. 'Rewrite_Set "cancel"' *);
    54         use"inform.sml";
    55 	use"me.sml";
    56        	use"ptyps.sml"; 
    57  	cd "../.."; 
    58 cd"smltest/xmlsrc";
    59  	use"datatypes.sml";        
    60        	use"pbl-met-hierarchy.sml"; 
    61        	use"thy-hierarchy.sml"; 
    62  	cd "../.."; 
    63 cd"smltest/FE-interface";
    64        	use"interface.sml";
    65  	cd "../..";
    66 *)
    67 ML{* writeln "**** run tests on math-engine complete ******************" *};
    68 (*
    69 cd"smltest/IsacKnowledge"; ---below the order as in theoryy Isac---
    70         use"atools.sml";
    71  	use"termorder.sml";
    72 *)
    73 
    74 ML {*
    75 val t = str2term "(x^^^2 * x) is_multUnordered";
    76 val pat = parse_patt (theory "Isac") "?p is_multUnordered";
    77 *}
    78 ML {*
    79 val subst = Pattern.match thy (pat, t) (Vartab.empty, Vartab.empty);
    80 Envir.subst_term subst (*pres?*);
    81 *}
    82 use"../../../test/Tools/isac/Knowledge/poly.sml"; (*part.*)
    83 (*
    84  	use"rational.sml"
    85 	use"equation.sml";
    86  	use"root.sml";
    87 	(*use"inssort.sml"; problems with recdef in Isabelle2002*)
    88  	use"rooteq.sml";
    89  	use"rateq.sml";
    90  	use"rootrateq.sml";
    91 
    92  	use"polyeq.sml";  (*TODO 31.b, n1., 44.a, 1.a~, 1.b (all'expanded')WN
    93  			     ? also check others without check 'diff.behav.'*);
    94  	use"rlang.sml";    (*WN.12.6.03: for TODOs search 'writeln', 
    95  			     for simplification search MG 
    96  		 erls:       98a(1) 104a(1) 104a(2) 68a *);
    97 	use"wn.sml";
    98  	use"trig.sml";
    99  	use"logexp.sml";
   100  	use"diff.sml";
   101 *)
   102 use "../../../test/Tools/isac/Knowledge/integrate.sml"; (*part.*)
   103 (*
   104 	use"eqsystem.sml";
   105  	use"polyminus.sml";
   106  	use"vect.sml";  
   107  	use"diffapp.sml";
   108 	use"biegelinie.sml";
   109 	use"algein.sml";
   110  	cd "../..";
   111 *)
   112 (* TODO
   113 use_thy "../../Tools/isac/ADDTESTS/file-depend/Build_Test"
   114 
   115 *** Could not find theory file "Foo_Language.thy" in "1language", "/usr/local/isabisac/test/Tools/isac", ".", "$ISABELLE_HOME/src/HOL/Library"
   116 *** Theory loader: the error(s) above occurred while examining theory "Foo_Language"
   117 
   118 use_thy "../../Tools/isac/ADDTESTS/trace-rewrite/Build_Test"
   119 *)
   120 use_thy "../../../test/Pure/Isar/Test_Parse_Term"
   121 use_thy "../../../test/Pure/Isar/Test_Parsers"
   122 
   123 ML{* writeln "**** run tests on IsacKnowledge complete ****************" *};
   124 (*
   125 val path = "/home/neuper/proto3/testsml2xml/"; 
   126 pbl_hierarchy2file (path ^ "pbl/");
   127 pbls2file          (path ^ "pbl/");
   128 met_hierarchy2file (path ^ "met/");
   129 mets2file          (path ^ "met/");
   130 thy_hierarchy2file (path ^ "thy/");
   131 thes2file          (path ^ "thy/");
   132 cd"sml";
   133 *)
   134 ML{* writeln "**** tested creation of xmldata *************************" *};
   135 
   136 ML{*states:=[];
   137      writeln "=========================================================";
   138      
   139      writeln "**** run systests complete ***************** re-organize!";
   140      writeln "**** run tests on math-engine complete ******************";
   141      writeln "**** run tests on IsacKnowledge complete ****************";
   142      writeln "**** build isac kernel + run tests complete *************";
   143      writeln "**** tested creation of xmldata *************************";
   144 *}
   145 
   146 end