예제 #1
0
    rc |= RunCommand(
      [os.path.realpath(join(config.dir_build_latest, 'benchmarks/a64', bench))])
  return rc


def PrintStatus(success):
  printer.Print('\n$ ' + ' '.join(sys.argv))
  if success:
    printer.Print('SUCCESS')
  else:
    printer.Print('FAILURE')



if __name__ == '__main__':
  util.require_program('scons')
  rc = 0

  args = BuildOptions()

  if args.under_valgrind:
    util.require_program('valgrind')

  if args.fast:
    def SetFast(option, specified, default):
      option.val_test_choices = \
        [default[0] if specified == 'all' else specified[0]]
    SetFast(environment_option_compiler, args.compiler, config.tested_compilers)
    SetFast(build_option_mode, args.mode, config.build_options_modes)
    SetFast(build_option_standard, args.std, config.tested_cpp_standards)
    SetFast(runtime_option_debugger, args.debugger, ['on', 'off'])
예제 #2
0
            os.path.realpath(join(config.dir_build_latest, 'benchmarks',
                                  bench))
        ])
    return rc


def PrintStatus(success):
    printer.Print('\n$ ' + ' '.join(sys.argv))
    if success:
        printer.Print('SUCCESS')
    else:
        printer.Print('FAILURE')


if __name__ == '__main__':
    util.require_program('scons')
    rc = 0

    args = BuildOptions()

    if args.under_valgrind:
        util.require_program('valgrind')

    if args.fast:

        def SetFast(option, specified, default):
            option.val_test_choices = \
              [default[0] if specified == 'all' else specified[0]]

        SetFast(environment_option_compiler, args.compiler,
                config.tested_compilers)
예제 #3
0
파일: test.py 프로젝트: stoklund/vixl
    rc |= RunCommand(
      [os.path.realpath(join(config.dir_build_latest, 'benchmarks', bench))])
  return rc


def PrintStatus(success):
  printer.Print('\n$ ' + ' '.join(sys.argv))
  if success:
    printer.Print('SUCCESS')
  else:
    printer.Print('FAILURE')



if __name__ == '__main__':
  util.require_program('scons')
  rc = 0

  args = BuildOptions()

  if args.fast:
    def SetFast(option, specified, default):
      option.val_test_choices = \
        [default[0] if specified == 'all' else specified[0]]
    SetFast(environment_option_compiler, args.compiler, config.tested_compilers)
    SetFast(build_option_mode, args.mode, config.build_options_modes)
    SetFast(build_option_standard, args.std, config.tested_cpp_standards)
    SetFast(runtime_option_debugger, args.debugger, ['on', 'off'])

  if not args.nolint and not args.fast:
    rc |= RunLinter()