OKlibrary  0.2.1.6
maxima_init_tests.mac
Go to the documentation of this file.
00001 /* Oliver Kullmann, 21.4.2008 (Guangzhou) */
00002 /* Copyright 2008, 2009 Oliver Kullmann
00003 This file is part of the OKlibrary. OKlibrary is free software; you can redistribute
00004 it and/or modify it under the terms of the GNU General Public License as published by
00005 the Free Software Foundation and included in this library; either version 3 of the
00006 License, or any later version. */
00007 
00008 define_variable(testfile_okl,"m4_SHELL(OKL_MAXIMA_TEST_FILENAME)",any)$
00009 define_variable(test_output_okl,"m4_SHELL(OKL_MAXIMA_TEST_OUTPUT)",any)$
00010 
00011 oklib_automatic_test : true$
00012 oklib_load_annotation : true$
00013 
00014 test_level_okl : "m4_SHELL(test_level)"$
00015 oklib_test_level : if test_level_okl = "basic" then 0 
00016  elseif test_level_okl = "full" then 1
00017  else 2$
00018 
00019 test_result : errcatch(oklib_batch(testfile_okl))$
00020 if test_result = [] then block([file_output_append : true],
00021   with_stdout(test_output_okl, print("The evaluation of some expression in the tests resulted in an error.")))$
00022