src/Tools/isac/Test_Isac.thy
author Walther Neuper <neuper@ist.tugraz.at>
Mon, 27 Sep 2010 13:35:06 +0200
branchisac-update-Isa09-2
changeset 38024 20231cdf39e7
child 38025 67a110289e4e
permissions -rw-r--r--
simplified testing by src/Tools/isac/Build_Test_Isac.thy
     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 ML {*
    32 val t1 = @{term "1+2::real"};
    33 val t2 = @{term "abc"};
    34 term2str t2 = "abc";
    35 fun terms2str ts = (strs2str o (map term2str )) ts;
    36 terms2str [t1,t2] = "[\"1 + 2\",\"abc\"]";
    37 fun terms2str' ts = (strs2str' o (map term2str )) ts;
    38 terms2str' [t1,t2] = "[1 + 2,abc]";
    39 fun terms2strs ts = (map term2str) ts;
    40 terms2strs [t1,t2] = ["1 + 2", "abc"];
    41 *}
    42 
    43 (*
    44 cd"smltest/Scripts";
    45  	use"calculate-float.sml";
    46 *)
    47 use"ProgLang/calculate.sml"; (*part.*)
    48 (*
    49 	use"listg.sml";
    50 *)
    51 use"ProgLang/rewrite.sml"; (*part.*)
    52 (*
    53  	use"scrtools.sml";
    54         use"term.sml";
    55  	use"tools.sml";
    56  	cd "../.."; 
    57 cd"smltest/ME";
    58         use"ctree.sml";
    59 *)
    60 use "Interpret/calchead.sml" (*part.*)
    61 (*
    62        	use"calchead.sml"; 
    63  	use"rewtools.sml";
    64         use"solve.sml"; (*detailrls can notyet ackn. 'Rewrite_Set "cancel"' *);
    65         use"inform.sml";
    66 	use"me.sml";
    67        	use"ptyps.sml"; 
    68  	cd "../.."; 
    69 cd"smltest/xmlsrc";
    70  	use"datatypes.sml";        
    71        	use"pbl-met-hierarchy.sml"; 
    72        	use"thy-hierarchy.sml"; 
    73  	cd "../.."; 
    74 cd"smltest/FE-interface";
    75        	use"interface.sml";
    76  	cd "../..";
    77 *)
    78 ML{* writeln "**** run tests on math-engine complete ******************" *};
    79 (*
    80 cd"smltest/IsacKnowledge";
    81         use"atools.sml";
    82  	use"complex.sml";
    83  	use"diff.sml";
    84  	use"diffapp.sml";
    85 (**)
    86 use "Knowledge/integrate.sml"; (*part.*)
    87 
    88 	use"equation.sml";
    89 	(*use"inssort.sml"; problems with recdef in Isabelle2002*)
    90  	use"logexp.sml";
    91 *)
    92 use"Knowledge/poly.sml"; (*part.*)
    93 (*
    94  	use"polyminus.sml";
    95  	use"polyeq.sml";  (*TODO 31.b, n1., 44.a, 1.a~, 1.b (all'expanded')WN
    96  			     ? also check others without check 'diff.behav.'*);
    97  	use"rateq.sml";
    98  	use"rational.sml" (*TODO add_fractions_p throws overflow-exn      WN*);
    99  	use"rlang.sml";    (*WN.12.6.03: for TODOs search 'writeln', 
   100  			     for simplification search MG 
   101  		 erls:       98a(1) 104a(1) 104a(2) 68a *);
   102  	use"root.sml";
   103  	use"rooteq.sml";
   104  	use"rootrateq.sml";
   105  	use"termorder.sml";
   106  	use"trig.sml";
   107  	use"vect.sml";  
   108 	use"wn.sml";
   109 	use"eqsystem.sml";
   110 	use"biegelinie.sml";
   111 	use"algein.sml";
   112  	cd "../..";
   113 *)
   114 (* TODO
   115 use_thy "../../Tools/isac/ADDTESTS/file-depend/Build_Test"
   116 
   117 *** Could not find theory file "Foo_Language.thy" in "1language", "/usr/local/isabisac/test/Tools/isac", ".", "$ISABELLE_HOME/src/HOL/Library"
   118 *** Theory loader: the error(s) above occurred while examining theory "Foo_Language"
   119 
   120 use_thy "../../Tools/isac/ADDTESTS/trace-rewrite/Build_Test"
   121 *)
   122 use_thy "../../Pure/Isar/Test_Parse_Term"
   123 use_thy "../../Pure/Isar/Test_Parsers"
   124 
   125 ML{* writeln "**** run tests on IsacKnowledge complete ****************" *};
   126 (*
   127 val path = "/home/neuper/proto2/testsml2xml/"; 
   128 pbl_hierarchy2file (path ^ "pbl/");
   129 pbls2file          (path ^ "pbl/");
   130 met_hierarchy2file (path ^ "met/");
   131 mets2file          (path ^ "met/");
   132 thy_hierarchy2file (path ^ "thy/");
   133 thes2file          (path ^ "thy/");
   134 cd"sml";
   135 *)
   136 ML{* writeln "**** tested creation of xmldata *************************" *};
   137 
   138 ML{*states:=[];
   139      writeln "=========================================================";
   140      
   141      writeln "**** run systests complete ***************** re-organize!";
   142      writeln "**** run tests on math-engine complete ******************";
   143      writeln "**** run tests on IsacKnowledge complete ****************";
   144      writeln "**** build isac kernel + run tests complete *************";
   145      writeln "**** tested creation of xmldata *************************";
   146 *}
   147 
   148 end