Skip to content

Improve compiler interface testing #1197

Open
@aarongreig

Description

@aarongreig

Our testing of the compilation related Program* APIs is fairly basic at the moment, there's a lot we could do with it to improve coverage and rigour. To that end we should track any ideas that come up for this kind of testing here.

This was inspired by #877 which fixes a bug in the ProgramLink tests by making them worse: it turns out we can't link together two binaries that come out of our device binary generation system, so pending a potentially quite tricky rework of that we've had to settle for just linking one program. Therefore:

  • Implement a ProgramLink test which links together multiple programs

After a quick look at the ProgramBuild and ProgramCompile tests it also occurred to me that we should probably

  • Verify program state in ProgramBuild and ProgramCompile tests with appropriate ProgramGetInfo and ProgramGetBuildInfo queries

When urProgramCreateWithBinary is modified by #2147 to allow multiple binaries and multiple devices we should test that properly:

  • Write a multi-device ProgramCreateWithBinary test

Metadata

Metadata

Assignees

No one assigned

    Labels

    conformanceConformance test suite issues.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions