HenrikBengtsson / CBI-software

A Scientific Software Stack for HPC (CentOS oriented)
https://wynton.ucsf.edu/hpc/software/software-repositories.html
5 stars 2 forks source link

TESTS: Add unit test for installed software #53

Closed HenrikBengtsson closed 1 year ago

HenrikBengtsson commented 2 years ago

Add make validate that runs rudimentary unit tests that the installed software and module works as expected, e.g.

Use bats-core for this. I can imagine we'll end up adding a subfolder tests/ to each software for this.

Open question: How to handle the case when we need different tests for different versions? Can this be dealt with using conditional calls, e.g. if-then?

HenrikBengtsson commented 2 years ago

make, i.e. make all now includes new make check, which runs some basic, built-in load-unload tests for all software tools. One can then add additional tests/*.bats test scripts to any software tool, e.g. https://github.com/HenrikBengtsson/CBI-software/tree/master/CBI/bat/tests