# US 2013/0254747 A1 · Method and apparatus for testing programs

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2013/0254747 A1
- Document ID: US20130254747A1
- Status: Published application
- Kind: A1
- Application number: 13/425,431
- Filed: 2012-03-21
- Published: 2013-09-26
- Earliest claimed: 2012-03-21
- Assignees: International Business Machines Corporation
- Inventors: Daniel Citron
- Web page: https://patentgrep.com/patent/US20130254747A1

## CPC

- G06F 11/3672: {Test management}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A method and apparatus for testing a computer program for correct execution by various computerized apparatuses, the method comprising: obtaining at least two configurations for a computing platform; for each configurations of the at least two configurations: setting the computing platform in accordance with the configuration; and executing a computer program on the computing platform using the configuration, thereby testing the computer program for correct execution by various computerized apparatuses.

## Claims

### Claim 1

A computer-implemented method performed by a computerized device, comprising:
obtaining at least two configurations for a computing platform;
for each configurations of the at least two configurations:
setting the computing platform in accordance with the configuration; and
executing a computer program on the computing platform using the configuration,
thereby testing the computer program for correct execution by various computerized apparatuses.

### Claim 2 (depends on 1)

The computer-implemented method of claim 1, further comprising stopping said setting and executing if a stopping criterion has been met.

### Claim 3 (depends on 2)

The computer-implemented method of claim 2, wherein the stopping criterion is selected from the group consisting of: the computer program has been executed with respect to the at least two configurations; a maximal number of executions has been reached; and a maximal duration of execution time has been reached.

### Claim 4 (depends on 2)

The computer-implemented method of claim 2 wherein the stopping criterion is that an error has been discovered with respect to an execution.

### Claim 5 (depends on 1)

The computer-implemented method of claim 1, wherein each configuration is associated with at least one parameter of the computing platform.

### Claim 6 (depends on 5)

The computer-implemented method of claim 5, wherein the at least one parameter is a hardware parameter, and wherein the computing platform may be automatically configured to modify the hardware parameter.

### Claim 7 (depends on 5)

The computer-implemented method of claim 5, wherein the at least one parameter is selected from the group consisting of: number of processors;
number of threads per processor; priority of a thread; enabling or disabling automatic pre-fetching; cache size; and page size.

### Claim 8 (depends on 1)

The computer-implemented method of claim 1, wherein setting the computing platform in accordance with the configuration comprises an action selected from the group consisting of: setting a registry entry; setting an environment variable; and locking caches lines.

### Claim 9 (depends on 1)

The computer-implemented method of claim 1, wherein setting the computing platform in accordance with the configuration comprises executing computer instructions.

### Claim 10 (depends on 1)

The computer-implemented method of claim 1, wherein setting the computing platform in accordance with the configuration comprises physically adding, removing or replacing a component of the computing platform.

### Claim 11

An apparatus having a processing unit and a storage device, the apparatus comprising:
a configuration generation component for determining at least two configurations for a computing platform;
a configuration setting component for setting the computing platform in accordance with one configuration of the at least two configurations; and
a data and control flow management component for initiating setting the computing platform in accordance with the one configuration, and initiating execution of a computer program on the computing platform using the one configuration, thereby testing the computer program for correct execution by various computerized apparatuses.

### Claim 12 (depends on 11)

The apparatus of claim 11, wherein the data and control flow management component repeats the setting and executing for a multiplicity of the at least two configurations.

### Claim 13 (depends on 12)

The apparatus of claim 12, wherein the data and control flow management component stops repeating if a stopping criterion has been met.

### Claim 14 (depends on 13)

The apparatus of claim 13, wherein the stopping criterion is selected from the group consisting of: the computer program has been executed for all of the at least one configuration; a maximal number of executions has been reached; and a maximal duration of execution time has been reached.

### Claim 15 (depends on 13)

The apparatus of claim 13, wherein the stopping criterion is that an error has been discovered with respect to an execution.

### Claim 16 (depends on 11)

The apparatus of claim 11, wherein the at least one configuration is associated with at least one parameter of the computing platform.

### Claim 17 (depends on 16)

The apparatus of claim 16, wherein the at least one parameter is a hardware parameter, and wherein the computing platform may be automatically configured to modify the hardware parameter.

### Claim 18 (depends on 16)

The apparatus of claim 16, wherein the at least one parameter is selected from the group consisting of: number of processors; number of threads per processor; priority of a thread; enabling or disabling automatic pre-fetching; cache size; and page size.

### Claim 19 (depends on 11)

The apparatus of claim 11, wherein setting the computing platform in accordance with the at least one configuration comprises an action selected from the group consisting of: setting a registry entry; setting an environment variable; and locking caches lines.

### Claim 20 (depends on 11)

The apparatus of claim 11, wherein setting the computing platform in accordance with the at least one configuration comprises executing computer instructions.

### Claim 21 (depends on 11)

The apparatus of claim 11, further comprising an actuator for physically adding, removing or replacing a component of the computing platform.

### Claim 22

A computer program product comprising:
a non-transitory computer readable medium;
a first program instruction for obtaining at least two configurations for a computing platform;
a second program instruction for setting the computing platform in accordance with each configurations of the at least two configurations;
a third program instruction for executing a computer program on the computing platform using the configuration, thereby testing the computer program for correct execution by various computerized apparatuses, wherein said first, second, third and fourth program instructions are stored on said non-transitory computer readable medium.
