Running generic tests for a foreign target

Hi,

I’m wondering if there’s a way to run our generic tests (e.g. test/CodeGen/Generic) for a foreign target architecture. For example, one of my recent commits r232374 passed ‘ninja check-all’ for me on my X86 machine but failed a generic test on the Hexagon builders. Of course, it worked for me because I was actually testing the generic tests for X86 instead of Hexagon.

Does anyone know of a way to easily catch this kind of problem before committing?

Daniel Sanders

Leading Software Design Engineer, MIPS Processor IP

Imagination Technologies Limited

www.imgtec.com

Hi,

I'm wondering if there's a way to run our generic tests (e.g.
test/CodeGen/Generic) for a foreign target architecture. For example, one
of my recent commits r232374 passed 'ninja check-all' for me on my X86
machine but failed a generic test on the Hexagon builders. Of course, it
worked for me because I was actually testing the generic tests for X86
instead of Hexagon.

Does anyone know of a way to easily catch this kind of problem before
committing?

Nope, we don't really have anything for this - buildbot failures are
perfectly acceptable means of flushing these things out.

But it's an idea that's been bandied about more than once (running the test
suite with multiple target architectures) but not been implemented. It
would be nice to have.