00001 __copyright__ = """
00002 Copyright 2008 Sean Ross-Ross
00003 """
00004 __license__ = """
00005 This file is part of SLIMpy .
00006
00007 SLIMpy is free software: you can redistribute it and/or modify
00008 it under the terms of the GNU Lesser General Public License as published by
00009 the Free Software Foundation, either version 3 of the License, or
00010 (at your option) any later version.
00011
00012 SLIMpy is distributed in the hope that it will be useful,
00013 but WITHOUT ANY WARRANTY; without even the implied warranty of
00014 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
00015 GNU Lesser General Public License for more details.
00016
00017 You should have received a copy of the GNU Lesser General Public License
00018 along with SLIMpy . If not, see <http://www.gnu.org/licenses/>.
00019 """
00020
00021 def slim_test_builder( target, source, env ):
00022
00023 import slimpy_base
00024 from slimpy_base.test_SLIMpy.LatexTestResult import LatexTextTestRunner
00025 from slimpy_base.test_SLIMpy import suite
00026
00027 slimpy_base.parse_env(env)
00028
00029
00030 stream = open( str(target[0]), 'w' )
00031
00032 test = suite()
00033
00034 tr = LatexTextTestRunner( stream=stream)
00035 tr.run(test)
00036
00037
00038 return
00039
00040
00041 def slim_test_emitter(target, source, env):
00042 import slimpy_base
00043 vers_val = env.Value( slimpy_base.__version__ )
00044 source = [ vers_val ]
00045
00046 return target,source