def test_x64_node_disabled(self): params = self.with_x64_defaults({ "buildsteps": ["j2v8", "test"], "j2v8test": "-Dtest=NodeJSTest", }) bex.execute_build(params)
def test_x64_node_disabled(self): params = self.with_x64_defaults( { "buildsteps": ["j2v8", "test"], "j2v8test": "-Dtest=NodeJSTest", }) bex.execute_build(params)
def test_x86_node_disabled(self): params = self.with_x86_defaults( { "buildsteps": ["j2v8", "test"], "j2v8test": "-PtestClass=com.eclipsesource.v8.NodeJSTest", }) bex.execute_build(params)
def run_interactive_cli(): idx = 0 for cfg in bcfg.configs: print("[" + str(idx) + "] " + cfg.get("name")) idx += 1 print # newline # NOTE: argv[1] usually should be -i, therefore we need to consider this arg in all checks base_arg_count = 2 sel_index = \ int(sys.argv[base_arg_count]) \ if len(sys.argv) > base_arg_count \ else input("Select a predefined build-configuration to run: ") if not isinstance(sel_index, int) or sel_index < 0 or sel_index > len(bcfg.configs): utils.cli_exit( "ERROR: Must enter a valid test index in the range [0 ... " + str(len(bcfg.configs)) + "]") selected_build_cfg = bcfg.configs[sel_index] print("Building: " + selected_build_cfg.get("name")) print # newline build_params = selected_build_cfg.get("params") # use build-steps from sys.argv or alternatively ask the user build_steps_argv = \ sys.argv[base_arg_count + 1:] \ if len(sys.argv) > base_arg_count + 1 \ else shlex.split(raw_input("Override build-steps ? (leave empty to run pre-configured steps): ")) # create a parser that only expects the build-step args parser = cli.get_blank_parser() cli.init_build_steps(parser) # parse the build-step syntax user_params = parser.parse_args(build_steps_argv) # convert into dictionary form user_params = vars(user_params) # merge the potentially customized build-steps into the # original pre-defined build-config params # see: https://stackoverflow.com/a/15277395/425532 build_params.update( (k, v) for k, v in user_params.iteritems() if v is not None) # start the build bex.execute_build(build_params)
def run_interactive_cli(): idx = 0 for cfg in bcfg.configs: print ("[" + str(idx) + "] " + cfg.get("name")) idx += 1 print # newline # NOTE: argv[1] usually should be -i, therefore we need to consider this arg in all checks base_arg_count = 2 sel_index = \ int(sys.argv[base_arg_count]) \ if len(sys.argv) > base_arg_count \ else input("Select a predefined build-configuration to run: ") if not isinstance(sel_index, int) or sel_index < 0 or sel_index > len(bcfg.configs): utils.cli_exit("ERROR: Must enter a valid test index in the range [0 ... " + str(len(bcfg.configs)) + "]") selected_build_cfg = bcfg.configs[sel_index] print ("Building: " + selected_build_cfg.get("name")) print # newline build_params = selected_build_cfg.get("params") # use build-steps from sys.argv or alternatively ask the user build_steps_argv = \ sys.argv[base_arg_count + 1:] \ if len(sys.argv) > base_arg_count + 1 \ else shlex.split(raw_input("Override build-steps ? (leave empty to run pre-configured steps): ")) # create a parser that only expects the build-step args parser = cli.get_blank_parser() cli.init_build_steps(parser) # parse the build-step syntax user_params = parser.parse_args(build_steps_argv) # convert into dictionary form user_params = vars(user_params) # merge the potentially customized build-steps into the # original pre-defined build-config params # see: https://stackoverflow.com/a/15277395/425532 build_params.update((k,v) for k,v in user_params.iteritems() if v is not None) # start the build bex.execute_build(build_params)
def run_interactive_cli(): idx = 0 for cfg in bcfg.configs: print("[" + str(idx) + "] " + cfg.get("name")) idx += 1 print # newline # NOTE: argv[1] usually should be -i, therefore we need to consider this arg in all checks base_arg_count = 2 sel_index = \ int(sys.argv[base_arg_count]) \ if len(sys.argv) > base_arg_count \ else input("Select a predefined build-configuration to run: ") if not isinstance(sel_index, int) or sel_index < 0 or sel_index > len(bcfg.configs): sys.exit("ERROR: Must enter a valid test index in the range [0 ... " + str(len(bcfg.configs)) + "]") sel_cfg = bcfg.configs[sel_index] print("Building: " + sel_cfg.get("name")) print # newline build_params = sel_cfg.get("params") build_steps = \ sys.argv[base_arg_count + 1:] \ if len(sys.argv) > base_arg_count + 1 \ else raw_input("Override build-steps ? (leave empty to run pre-configured steps): ").split() if (len(build_steps) > 0): build_params["buildsteps"] = build_steps bex.execute_build(build_params)