Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Fortran Package Manager exclude test code

I've building a library with Fortran Package Manager and it's packing up the test code from test/ as part of the final library - everything works okay but I'd prefer to omit the test code from the final build.

Is there a way to do this with Fortran Package Manager? I can't see anything obvious in the documenation for fpm.toml

like image 219
tschumann Avatar asked Oct 18 '25 02:10

tschumann


1 Answers

To disable the automatic discovery of tests targets set the auto-tests entry to false:

[build]
auto-tests = false

See: https://fpm.fortran-lang.org/en/spec/manifest.html#automatic-target-discovery

like image 128
vmagnin Avatar answered Oct 21 '25 08:10

vmagnin



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!