This package contains classes and modules that are used to test openmdao.
Routines to support testing with cluster allocation.
Bases: object
Sends stream output to multiple streams.
Bases: nose.plugins.base.Plugin
This plugin writes test info (failures, run time) to a file as the tests are running instead of waiting until the end to report anything. Run nose with the option --with-early to activate it.
ExecComp is a simple component that lets you easily define mathematical expressions.
Bases: openmdao.main.component.Component
Given a list of assignment statements, this component creates input and output I/O traits at construction time. All variables appearing on the left-hand side of the assignments are outputs, and the rest are inputs. All variables are assumed to be of type Float.
exprs: list of strings
Bases: openmdao.main.component.Component
Works as ExecComp, except derivatives can also be defined.
Given a list of assignment statements, this component creates input and output I/O traits at construction time. All variables appearing on the left-hand side of the assignments are outputs, and the rest are inputs. All variables are assumed to be of type Float.
This plugin provides test timings to identify which tests might be
taking the most time. From this information, it might be useful to couple
individual tests' nose's `--with-profile` option to profile problematic
tests.
This plugin is heavily influenced by nose's `xunit` plugin.
Add this command to the way you execute nose::
--with-test-timer
After all tests are executed, they will be sorted in ascending order.
(c) 2011 - Mahmoud Abdelkader (http://github.com/mahmoudimus)
LICENSE:
DO WHAT THE !#$% YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2004 Sam Hocevar <sam@hocevar.net> (slightly modified)
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE !#$% YOU WANT TO PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. You just DO WHAT THE !#$% YOU WANT TO.
Model based on CONMIN test.
Bases: openmdao.main.component.Component
Bases: openmdao.main.component.Component
Dummy post-processor.
Bases: openmdao.main.component.Component
Dummy pre-processor.
Bases: openmdao.test.rosen_suzuki.PostProc
Scaling post-processor.
Bases: openmdao.test.rosen_suzuki.PreProc
Scaling pre-processor.
Test of the ExecComp component.
Bases: nose.plugins.base.Plugin
This plugin lists the names of the failed tests. Run nose with the option --with-fail-summary to activate it.
Looks for sections in the config file that match the host names specified in options.hosts.
Returns a list of host names that match the given options.
Reads the config file specified in options.cfg.
Returns a tuple of the form (hosts, config), where hosts is the list of host names and config is the ConfigParser object for the config file.