Files
snapd/tests/main/static/task.yaml
Andrew Phelps 3a37c4c33f tests: add test details (#13930)
* tests: add test details

* tests: fix typos in spread test details

Co-authored-by: Sergio Cazzolato <sergiocazzolato@gmail.com>

---------

Co-authored-by: Sergio Cazzolato <sergiocazzolato@gmail.com>
2024-05-02 15:54:09 -03:00

14 lines
470 B
YAML

summary: Check that snapd can be built without cgo
details: |
This test builds snapd with CGO_ENABLED=0 and checks that the resulting
binary is not a dynamic executable.
# debian-sid uses a different packaging with quilt patches applied on top
# of the verbatim tree
systems: [-ubuntu-core-*, -debian-sid-*]
execute: |
CGO_ENABLED=0 go build -o snapd.static github.com/snapcore/snapd/cmd/snapd
ldd snapd.static 2>&1 | MATCH 'not a dynamic executable'