Testsuite tests
Matthew Pickering
matthewtpickering at gmail.com
Tue Apr 8 12:51:24 UTC 2025
Hi Simon,
You have disabled the build of profiled libraries in your user settings, so
the test doesn't run, because it requires profiled libraries.
If you want to disabled profiled things (including the rts) from your
build, then import `Flavour` and use the `disableProfiledLibs :: Flavour ->
Flavour` function.
```
userFlavour = disableProfiledLibs $ defaultFlavour { ... }
```
If you want to run this test then you need profiled libraries.
```
./hadrian/build --flavour=perf -o_perf_build test --only=callstack001
```
Hope that helps.
Matt
On Tue, Apr 8, 2025 at 10:10 AM Simon Peyton Jones <
simon.peytonjones at gmail.com> wrote:
> It seems that you have not built profiled libraries? It's impossible to
>> say without knowing your custom local configuration. Could you share that?
>
>
> Sure! UserSettings.hs is attached.
>
> Funnily enough the build system takes ages (many minutes) building profied
> version of the runtime system, despite my attempting to switch that off.
> Any advice there?
>
> Separately, it would be great if the testsuite driver explained why it
> discards tests. Eg. "Skipping X, Y, Z because they require profiled
> libraries". Otherwise it's hard to know why something is skipped.
>
> Thanks for helping!
>
> Simon
>
>
>
> On Mon, 7 Apr 2025 at 09:57, Matthew Pickering <
> matthewtpickering at gmail.com> wrote:
>
>> It seems that you have not built profiled libraries? It's impossible to
>> say without knowing your custom local configuration. Could you share that?
>>
>> On Fri, Apr 4, 2025 at 10:30 PM Simon Peyton Jones <
>> simon.peytonjones at gmail.com> wrote:
>>
>>> Friends
>>>
>>> In CI for !10479 I'm getting test failures for some call-stack tests
>>> e.g. `callstack001`.
>>>
>>> But if I try to run this in my build tree
>>>
>>> hadrian/build -j8 test --skip=_build/stage1/rts/**
>>> --skip=_build/stage1/** --skip=_build/stage0/** --docs=none
>>> --only=callstack001
>>>
>>> I get
>>>
>>> SUMMARY for test run started at Fri Apr 4 22:22:47 2025
>>> 0:00:02.413942 spent to go through
>>> 1 total tests, which gave rise to
>>> 8 test cases, of which
>>> 8 were skipped
>>> 0 had missing libraries
>>>
>>> 0 expected passes
>>> 0 expected failures
>>>
>>> 0 caused framework failures
>>> 0 caused framework warnings
>>> 0 unexpected passes
>>> 0 unexpected failures
>>> 0 unexpected stat failures
>>> 0 fragile tests
>>>
>>> So I can't reproduce the failure. What am i doing wrong? Can anyone
>>> help?
>>>
>>> Thanks
>>>
>>> Simon
>>> _______________________________________________
>>> ghc-devs mailing list
>>> ghc-devs at haskell.org
>>> http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs
>>>
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-devs/attachments/20250408/cd10c6ef/attachment.html>
More information about the ghc-devs
mailing list