Skip to content

Commit

Permalink
Run ctest after LDC build is complete
Browse files Browse the repository at this point in the history
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 ldc-developers#29.
  • Loading branch information
WebDrake committed Jul 25, 2017
1 parent f2b9f59 commit 65131b0
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions snap/snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ parts:
- -DLLVM_ROOT_DIR=../../llvm/install
- -DLDC_INSTALL_LTOPLUGIN=ON
- -DCMAKE_VERBOSE_MAKEFILE=1
install: ctest --verbose
stage:
- -etc/ldc2.conf
build-packages:
Expand All @@ -46,6 +47,7 @@ parts:
stage-packages:
- libconfig9
after:
- ctest-setup
- ldc-bootstrap
- llvm
ldc-config:
Expand Down Expand Up @@ -89,3 +91,15 @@ parts:
build-packages:
- binutils-dev
- g++

ctest-setup:
plugin: nil
stage:
- -*
prime:
- -*
build-packages:
- gdb
- python-pip
- unzip
prepare: pip install lit

0 comments on commit 65131b0

Please sign in to comment.