Exemple #1
0
    def OnToggleModule(self, event):
        id = event.GetId()
        mn = self.modMenuIds[id]
        if self.mModules.IsChecked(id):
            modules.loadModule(mn, self)

        if mn in self.installedModules:
            self.mModules.Check(id, True)

        self.CreateFoldPanel()
        self._mgr.Update()
Exemple #2
0
def print_help():
    print """\
Usage: numbench conffile [options]
       numbench [ -h | --help ]

Options:
   -h, --help                       Displays an help message.
   -d, --directory <dir>            Store the data in the given directory.  If
                                      not given, a directory in ~/.numbench
                                      is chosen.
   -c, --clean                      Remove the temporary data at the end.
   -i, --imageformat <format>       Select the given format for the resulting
                                      images. Available are png, svg, eps, ps,
                                      pdf. Default is svg.
   -r, --copy-report <URI>          Transfer the report directory to the given
                                      path. Local paths are currently supported. 
"""
    modnames = modules.getModulesNames()

    print "Modules:"
    for m in modnames:
        M = modules.loadModule(m)
        print "   %s - %s" % (m, M.descr)
    print
    print "More information about a module is available through the command:"
    print "  numbench module --help"
Exemple #3
0
if not cfg.modulename in modules.getAllModulesNames():
    print "Error: module " + cfg.modulename + " does not exist.\n\n"
    print_help()
    exit(2)

# Set-up directories
cfg.setDirs()

# Get test cases
cfg.tests = parser.getTestCases()

# Initialize print system
Print = benchprint.initializePrint()

# Import the module
cfg.module = modules.loadModule(cfg.modulename, cfg.moduleargs)


## Write summary
Print._level = 0
Print(80 * '=')
Print("The following tests will be run:")
Print("-------------------------------")
Print()
for tname, ttest in cfg.tests.items():
    Print("Test: " + tname)

    if ttest['descr'] is not None:
        Print(" - Description: " + ttest['descr'])

    Print(" - Package: " + ttest['normalizedPackage'])