Mercurial > projects > mde
view test/mdeTest.d @ 15:4608be19ebe2
Use OS paths (linux only for now), merging multiple paths. Init changes regarding options.
Reorganised policies.txt a little.
Implemented mde.resource.paths to read config from appropriate paths (currently linux only).
Changed Init to load options before all other delegates are run and set logging level from options.
committer: Diggory Hardy <diggory.hardy@gmail.com>
author | Diggory Hardy <diggory.hardy@gmail.com> |
---|---|
date | Fri, 14 Mar 2008 11:39:45 +0000 |
parents | 0047b364b6d9 |
children | 5f90774ea1ef |
line wrap: on
line source
/** A module to run all mde unittests and potentially to perform other tests. */ module test.mdeTest; // This module should import all mde modules containing unittests: import mde.input.input; import mde.mergetag.DataSet; import mde.mergetag.mtunittest; import mde.exception; import mde.Init; import mde.i18n.I18nTranslation; import tango.util.log.Log : Log, Logger; // Set this version to tell mde.init that the root logger is set up here. version=mdeTest; private Logger logger; static this() { // Set up console logging: Logger root = Log.getRootLogger(); root.setLevel(root.Level.Trace); root.addAppender(new ConsoleAppender); logger = Log.getLogger ("test.mdeTest"); } void main() { logger.info ("All unittests complete."); }