test/Tools/isac/Test_Isac.thy
author Walther Neuper <neuper@ist.tugraz.at>
Thu, 23 Sep 2010 14:49:23 +0200
branchisac-update-Isa09-2
changeset 38014 3e11e3c2dc42
parent 38013 e4f42a63d665
child 38015 67ba02dffacc
permissions -rw-r--r--
updated "op +", "op -", "op *". "HOL.divide" in src & test

find . -type f -exec sed -i s/"\"op +\""/"\"Groups.plus_class.plus\""/g {} \;
find . -type f -exec sed -i s/"\"op -\""/"\"Groups.minus_class.minus\""/g {} \;
find . -type f -exec sed -i s/"\"op *\""/"\"Groups.times_class.times\""/g {} \;
find . -type f -exec sed -i s/"\"HOL.divide\""/"\"Rings.inverse_class.divide\""/g {} \;
     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 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  	use"calculate-float.sml";
    33  	use"calculate.sml";
    34 	use"listg.sml";
    35 	use"rewrite.sml";
    36  	use"scrtools.sml";
    37         use"term.sml";
    38  	use"tools.sml";
    39  	cd "../.."; 
    40 cd"smltest/ME";
    41         use"ctree.sml";
    42 *)
    43 
    44 ML {*
    45 print_depth 2;
    46 @{term "equalities"};
    47 type_of @{term "[x_1+1=2,x_2=0]"};
    48 
    49 @{term "solveForVars"};
    50 type_of @{term "[x_1,x_2]::real list"};
    51 
    52 @{term "solution"};
    53 type_of @{term "ss''' :: bool list"};
    54 *}
    55 use "Interpret/calchead.sml" (*part.*)
    56 (*
    57        	use"calchead.sml"; 
    58  	use"rewtools.sml";
    59         use"solve.sml"; (*detailrls can notyet ackn. 'Rewrite_Set "cancel"' *);
    60         use"inform.sml";
    61 	use"me.sml";
    62        	use"ptyps.sml"; 
    63  	cd "../.."; 
    64 cd"smltest/xmlsrc";
    65  	use"datatypes.sml";        
    66        	use"pbl-met-hierarchy.sml"; 
    67        	use"thy-hierarchy.sml"; 
    68  	cd "../.."; 
    69 cd"smltest/FE-interface";
    70        	use"interface.sml";
    71  	cd "../..";
    72 *)
    73 ML{* writeln "**** run tests on math-engine complete ******************" *};
    74 (*
    75 cd"smltest/IsacKnowledge";
    76         use"atools.sml";
    77  	use"complex.sml";
    78  	use"diff.sml";
    79  	use"diffapp.sml";
    80 *)
    81 ML {*print_depth 99*}
    82 
    83 ML {*
    84 str2term "a + b";
    85 str2term "a - b";
    86 str2term "a * b";
    87 str2term "a / b";
    88 *}
    89 
    90 use "Knowledge/integrate.sml";
    91 (*
    92 	use"equation.sml";
    93 	(*use"inssort.sml"; problems with recdef in Isabelle2002*)
    94  	use"logexp.sml";
    95  	use"poly.sml";
    96  	use"polyminus.sml";
    97  	use"polyeq.sml";  (*TODO 31.b, n1., 44.a, 1.a~, 1.b (all'expanded')WN
    98  			     ? also check others without check 'diff.behav.'*);
    99  	use"rateq.sml";
   100  	use"rational.sml" (*TODO add_fractions_p throws overflow-exn      WN*);
   101  	use"rlang.sml";    (*WN.12.6.03: for TODOs search 'writeln', 
   102  			     for simplification search MG 
   103  		 erls:       98a(1) 104a(1) 104a(2) 68a *);
   104  	use"root.sml";
   105  	use"rooteq.sml";
   106  	use"rootrateq.sml";
   107  	use"termorder.sml";
   108  	use"trig.sml";
   109  	use"vect.sml";  
   110 	use"wn.sml";
   111 	use"eqsystem.sml";
   112 	use"biegelinie.sml";
   113 	use"algein.sml";
   114  	cd "../..";
   115 *)
   116 use_thy "../../Pure/Isar/Test_Parse_Term"
   117 use_thy "../../Pure/Isar/Test_Parsers"
   118 
   119 ML{* writeln "**** run tests on IsacKnowledge complete ****************" *};
   120 (*
   121 val path = "/home/neuper/proto2/testsml2xml/"; 
   122 pbl_hierarchy2file (path ^ "pbl/");
   123 pbls2file          (path ^ "pbl/");
   124 met_hierarchy2file (path ^ "met/");
   125 mets2file          (path ^ "met/");
   126 thy_hierarchy2file (path ^ "thy/");
   127 thes2file          (path ^ "thy/");
   128 cd"sml";
   129 *)
   130 ML{* writeln "**** tested creation of xmldata *************************" *};
   131 
   132 ML{*states:=[];
   133      writeln "=========================================================";
   134      
   135      writeln "**** run systests complete ***************** re-organize!";
   136      writeln "**** run tests on math-engine complete ******************";
   137      writeln "**** run tests on IsacKnowledge complete ****************";
   138      writeln "**** build isac kernel + run tests complete *************";
   139      writeln "**** tested creation of xmldata *************************";
   140 *}
   141 
   142 end