Skip to content

Commit

Permalink
tests: check parallel build count in project metadata
Browse files Browse the repository at this point in the history
Signed-off-by: Callahan Kovacs <[email protected]>
  • Loading branch information
mr-cal committed Oct 11, 2024
1 parent 739a1b6 commit 08e5be4
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ systems:

environment:
SNAP/test_variables: test-variables
SNAPCRAFT_PARALLEL_BUILD_COUNT: 5

prepare: |
#shellcheck source=tests/spread/tools/snapcraft-yaml.sh
Expand Down Expand Up @@ -35,7 +36,7 @@ execute: |
"^SNAPCRAFT_PROJECT_GRADE=devel$" \
"^SNAPCRAFT_PROJECT_NAME=variables$" \
"^SNAPCRAFT_PROJECT_VERSION=1$" \
"^SNAPCRAFT_PARALLEL_BUILD_COUNT=[0-9]\+$" \
"^SNAPCRAFT_PARALLEL_BUILD_COUNT=5$" \
"^SNAPCRAFT_PROJECT_DIR=${root}$" \
"^SNAPCRAFT_PART_SRC=${root}/parts/hello/src$" \
"^SNAPCRAFT_PART_SRC_WORK=${root}/parts/hello/src$" \
Expand All @@ -48,7 +49,7 @@ execute: |
"^CRAFT_ARCH_TRIPLET_BUILD_ON=x86_64-linux-gnu$" \
"^CRAFT_ARCH_BUILD_FOR=s390x$" \
"^CRAFT_ARCH_TRIPLET_BUILD_FOR=s390x-linux-gnu$" \
"^CRAFT_PARALLEL_BUILD_COUNT=[0-9]\+$" \
"^CRAFT_PARALLEL_BUILD_COUNT=5$" \
"^CRAFT_PROJECT_DIR=${root}$" \
"^CRAFT_PART_NAME=hello$" \
"^CRAFT_PART_SRC=${root}/parts/hello/src$" \
Expand Down

0 comments on commit 08e5be4

Please sign in to comment.