#!/usr/bin/python # -*- coding: utf-8 -*- # author: Jan Hybs # ---------------------------------------------- from __future__ import absolute_import import pathfix pathfix.init() # ---------------------------------------------- import sys # ---------------------------------------------- from scripts.core.base import Paths from utils.argparser import ArgParser from utils.duration import Duration from utils.timer import Timer from scripts.artifacts.artifacts import ArtifactProcessor # ---------------------------------------------- parser = ArgParser("runtest.py [<parametes>] [<test set>] [-- <test arguments>]") # ---------------------------------------------- parser.add_section('General arguments') parser.add('-a', '--keep-going', type=True, name='keep_going', docs=[ 'Run all tests, do not stop on the first error.', 'In PBS mode this arguments is ignored.', ]) parser.add('-v', '--valgrind', type=[True, str], name='valgrind', placeholder='[<VALGRIND ARGS>]', docs=[ 'Run tests under valgrind, with python suppression with optional argument', ' <valgrind args> passed to the valgrind. (In PBS mode this arguments is ignored.)?', ]) parser.add('-p', '--parallel', type=int, name='parallel', default=1, placeholder='<N>', docs=[ 'Run at most N jobs in parallel.', 'In PBS mode this arguments is ignored.',
#!/usr/bin/python # -*- coding: utf-8 -*- # author: Jan Hybs # ---------------------------------------------- from __future__ import absolute_import import pathfix pathfix.init() # ---------------------------------------------- import sys # ---------------------------------------------- import utils.parsers as parsers import utils.argparser as argparser # ---------------------------------------------- def create_parser(): parser = argparser.Parser.create("exec_with_limit") argparser.Parser.add(parser, '--limit-time, -t', dest='time_limit', type=parsers.parse_float, help="""R| Obligatory wall clock time limit for execution in seconds or in HH:MM:SS format For precision use float value """) argparser.Parser.add(parser, '--limit-memory, -m', dest='memory_limit', type=float, help="""R| Optional memory limit per node in MB
#!/usr/bin/python # -*- coding: utf-8 -*- # author: Jan Hybs # ---------------------------------------------- from __future__ import absolute_import import pathfix; pathfix.init() # ---------------------------------------------- import sys # ---------------------------------------------- from scripts.core.base import Paths, GlobalResult from utils.argparser import ArgParser from utils.duration import Duration # ---------------------------------------------- parser = ArgParser("runtest.py [<parametes>] [<test set>] [-- <test arguments>]") # ---------------------------------------------- parser.add_section('General arguments') parser.add('-a', '--keep-going', type=True, name='keep_going', docs=[ 'Run all tests, do not stop on the first error.', 'In PBS mode this arguments is ignored.', ]) parser.add('-v', '--valgrind', type=[True, str], name='valgrind', placeholder='[<VALGRIND ARGS>]', docs=[ 'Run tests under valgrind, with python suppression with optional argument', ' <valgrind args> passed to the valgrind. (In PBS mode this arguments is ignored.)?', ]) parser.add('-p', '--parallel', type=int, name='parallel', default=1, placeholder='<N>', docs=[ 'Run at most N jobs in parallel.', 'In PBS mode this arguments is ignored.', ]) parser.add('', '--batch', type=True, name='batch', docs=[ 'Make output of this script more for an off-line reading',