[aur-general] Customize testing in PKGBUILD
Brett Cornwall
ainola at archlinux.org
Tue Dec 14 10:55:56 UTC 2021
On 2021-12-14 06:45, George Rawlinson via aur-general wrote:
>On 21-12-14 00:07, Jan Kohnert via aur-general wrote:
>> Hi,
>>
>> I'm maintaining the eccodes aur package and would like to enable some extra
>> tests in PKGBUILD. This can be done by downloading extra testdata and put that
>> into the main build dir. As good as this may seem, it significantly blows up the
>> build time of the package.
>>
>> So I thought about somehow let the user decide whether to run those expensive
>> extra tests at build. Unfortunately I could not find a recommended way of doing
>> so.
>>
>> Would it be an option to check an environment variable, call it
>> ENABLE_EXTRA_TESTS or so, and run those stuff only if set? And otherwise just
>> run the usual tests without the extra data?
>>
>> Any thoughts?
>>
>> Thanks!
>>
>> --
>> MfG Jan
>
>From a packaging perspective, I run all tests that I can get my hands
>on. Users can then decide whether or not to enable or disable tests
>completely. There really isn't much of a middle ground.
+1
Users are expected/encouraged to read the PKGBUILD before they run
"makepkg". They are already empowered to skip the tests if they want;
There's no reason to complicate it further.
More information about the aur-general
mailing list