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 &
5 RESTART emacs after having created a new Isac heap.
6 was sml/RTEST-root.sml in isac-2002
8 12345678901234567890123456789012345678901234567890123456789012345678901234567890
9 10 20 30 40 50 60 70 80
12 theory Test_Isac imports Isac begin
14 ML{* writeln "**** run the tests **************************************" *};
15 ML {* Toplevel.debug := true; *}
18 (*+ check kbtest/diffapp.sml for additional items in met-model*)
21 (* use"script_if.sml"; WN03 missing: is_rootequation_in*)
25 use"interface-xml.sml";
26 (* use"testdaten.sml"; no update after dropping 'errorBound'*)
29 ML{* writeln "**** run systests complete ******************************" *};
32 val t1 = @{term "1+2::real"};
33 val t2 = @{term "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"];
45 use"calculate-float.sml";
47 use"ProgLang/calculate.sml"; (*part.*)
51 use"ProgLang/rewrite.sml"; (*part.*)
60 use "Interpret/calchead.sml" (*part.*)
64 use"solve.sml"; (*detailrls can notyet ackn. 'Rewrite_Set "cancel"' *);
71 use"pbl-met-hierarchy.sml";
72 use"thy-hierarchy.sml";
74 cd"smltest/FE-interface";
78 ML{* writeln "**** run tests on math-engine complete ******************" *};
80 cd"smltest/IsacKnowledge";
86 use "Knowledge/integrate.sml"; (*part.*)
89 (*use"inssort.sml"; problems with recdef in Isabelle2002*)
92 use"Knowledge/poly.sml"; (*part.*)
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.'*);
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 *);
115 use_thy "../../Tools/isac/ADDTESTS/file-depend/Build_Test"
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"
120 use_thy "../../Tools/isac/ADDTESTS/trace-rewrite/Build_Test"
122 use_thy "../../Pure/Isar/Test_Parse_Term"
123 use_thy "../../Pure/Isar/Test_Parsers"
125 ML{* writeln "**** run tests on IsacKnowledge complete ****************" *};
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/");
136 ML{* writeln "**** tested creation of xmldata *************************" *};
139 writeln "=========================================================";
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 *************************";