src/Tools/isac/Test_Isac.thy
author Walther Neuper <neuper@ist.tugraz.at>
Tue, 28 Sep 2010 07:28:10 +0200
branchisac-update-Isa09-2
changeset 38025 67a110289e4e
parent 38024 20231cdf39e7
child 38030 95d956108461
permissions -rw-r--r--
repaired fun uminus_to_string, fun rewrite_terms_

rewrite now adjusts to 2 changes from 2002 to 2009-2
(1) Pattern.match requires _Trueprop $_ pat
(2) rewrite returns assumptions without _Trueprop $_ asm
     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 *)
    33 use"../../../test/Tools/isac/ProgLang/termC.sml"; (*part.*)
    34 use"../../../test/Tools/isac/ProgLang/calculate.sml"; (*part.*)
    35 use"../../../test/Tools/isac/ProgLang/rewrite.sml"; (*part.*)
    36 (*
    37 	use"listg.sml";
    38  	use"scrtools.sml";
    39  	use"tools.sml";
    40  	cd "../.."; 
    41 cd"smltest/ME";
    42         use"ctree.sml";
    43 *)
    44 use "../../../test/Tools/isac/Interpret/calchead.sml" (*part.*)
    45 (*
    46        	use"calchead.sml"; 
    47  	use"rewtools.sml";
    48         use"solve.sml"; (*detailrls can notyet ackn. 'Rewrite_Set "cancel"' *);
    49         use"inform.sml";
    50 	use"me.sml";
    51        	use"ptyps.sml"; 
    52  	cd "../.."; 
    53 cd"smltest/xmlsrc";
    54  	use"datatypes.sml";        
    55        	use"pbl-met-hierarchy.sml"; 
    56        	use"thy-hierarchy.sml"; 
    57  	cd "../.."; 
    58 cd"smltest/FE-interface";
    59        	use"interface.sml";
    60  	cd "../..";
    61 *)
    62 ML{* writeln "**** run tests on math-engine complete ******************" *};
    63 (*
    64 cd"smltest/IsacKnowledge";
    65         use"atools.sml";
    66  	use"complex.sml";
    67  	use"diff.sml";
    68  	use"diffapp.sml";
    69 (**)
    70 use "Knowledge/integrate.sml"; (*part.*)
    71 
    72 	use"equation.sml";
    73 	(*use"inssort.sml"; problems with recdef in Isabelle2002*)
    74  	use"logexp.sml";
    75 *)
    76 use"../../../test/Tools/isac/Knowledge/poly.sml"; (*part.*)
    77 (*
    78  	use"polyminus.sml";
    79  	use"polyeq.sml";  (*TODO 31.b, n1., 44.a, 1.a~, 1.b (all'expanded')WN
    80  			     ? also check others without check 'diff.behav.'*);
    81  	use"rateq.sml";
    82  	use"rational.sml" (*TODO add_fractions_p throws overflow-exn      WN*);
    83  	use"rlang.sml";    (*WN.12.6.03: for TODOs search 'writeln', 
    84  			     for simplification search MG 
    85  		 erls:       98a(1) 104a(1) 104a(2) 68a *);
    86  	use"root.sml";
    87  	use"rooteq.sml";
    88  	use"rootrateq.sml";
    89  	use"termorder.sml";
    90  	use"trig.sml";
    91  	use"vect.sml";  
    92 	use"wn.sml";
    93 	use"eqsystem.sml";
    94 	use"biegelinie.sml";
    95 	use"algein.sml";
    96  	cd "../..";
    97 *)
    98 (* TODO
    99 use_thy "../../Tools/isac/ADDTESTS/file-depend/Build_Test"
   100 
   101 *** Could not find theory file "Foo_Language.thy" in "1language", "/usr/local/isabisac/test/Tools/isac", ".", "$ISABELLE_HOME/src/HOL/Library"
   102 *** Theory loader: the error(s) above occurred while examining theory "Foo_Language"
   103 
   104 use_thy "../../Tools/isac/ADDTESTS/trace-rewrite/Build_Test"
   105 *)
   106 use_thy "../../../test/Pure/Isar/Test_Parse_Term"
   107 use_thy "../../../test/Pure/Isar/Test_Parsers"
   108 
   109 ML{* writeln "**** run tests on IsacKnowledge complete ****************" *};
   110 (*
   111 val path = "/home/neuper/proto3/testsml2xml/"; 
   112 pbl_hierarchy2file (path ^ "pbl/");
   113 pbls2file          (path ^ "pbl/");
   114 met_hierarchy2file (path ^ "met/");
   115 mets2file          (path ^ "met/");
   116 thy_hierarchy2file (path ^ "thy/");
   117 thes2file          (path ^ "thy/");
   118 cd"sml";
   119 *)
   120 ML{* writeln "**** tested creation of xmldata *************************" *};
   121 
   122 ML{*states:=[];
   123      writeln "=========================================================";
   124      
   125      writeln "**** run systests complete ***************** re-organize!";
   126      writeln "**** run tests on math-engine complete ******************";
   127      writeln "**** run tests on IsacKnowledge complete ****************";
   128      writeln "**** build isac kernel + run tests complete *************";
   129      writeln "**** tested creation of xmldata *************************";
   130 *}
   131 
   132 end