[python] add a 'test' command to (all) `dune.foo.__main__` scripts
To test packaging better we could add a test
command to the __main__.py
scripts of each module. A CI pipeline could then run dunepackaging
, pip install the generated package, and then run python -m dune.foo test
to check that the package can be used. At the moment packages are just tested with the available tutorials (grid and fem) so certain packages are not really tested if they are not used there.