ldc-developers / ldc2.snap

Snap package definition for LDC, the LLVM-based D compiler
11 stars 4 forks source link

Run ctest after LDC build is complete #35

Closed WebDrake closed 7 years ago

WebDrake commented 7 years ago

This patch adds a new ctest-setup part to install all dependencies for the ctest collection of tests defined for LDC. The somewhat misnamed install: scriptlet (which actually runs post-install) is then used in the ldc part to invoke ctest itself, in verbose mode so that all the tests will be clearly described in the build log.

This should ensure that the packaged compiler is guaranteed to have at least passed the standard battery of tests on the build platform.

Addresses part of https://github.com/ldc-developers/ldc2.snap/issues/29.