[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Running autopkgtests with AMD GPUs with rocm-test-launcher



On 2025-02-25 17:10, Christian Kastner wrote:
> This includes rocm-test-launcher, a script that facilitates running
> autopkgtests with AMD GPUs.

>   * rocrand has a few dozen test binaries, so rocm-test-launcher 
> invokes
>     a tiny wrapper "run-testdir" to run all N tests in series

I just realized, there is a better approach to this: ship this wrapper
in directory with the tests, package/usr/libexec/rocm/<binpkg>/, instead
of the autopkgtest dir in <srcpkg>/debian/tests/.

This way, both autopkgtest *and* users can make use of it. Right now,
for packages with multiple tests, users need to loop over the tests
themselves, which is a kind of annoying.

Actually, it might even be a good idea to ship such a wrapper for *all*
packages, even the single-test ones, to provide a unified, well-known
entry point for running tests, so that tests for any -tests <binpkg>
can always be launched with

    $ /usr/libexec/rocm/<binpkg>/runtests

(or whatever name fits better than runtests).

Best,
Christian

> [1]: https://salsa.debian.org/rocm-team/hipsolver/-/blob/master/debian/tests/control
> [2]: https://salsa.debian.org/rocm-team/rocrand/-/blob/master/debian/tests/control


Reply to: