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 10, 2024
1 parent d8575b8 commit 797351c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion tests/spread/core22/environment/test-variables/task.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ summary: Test scriptlets variables on core22

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

prepare: |
#shellcheck source=tests/spread/tools/snapcraft-yaml.sh
Expand All @@ -28,7 +29,7 @@ execute: |
for exp in \
"^CRAFT_ARCH_TRIPLET=x86_64-linux-gnu$" \
"^CRAFT_TARGET_ARCH=amd64$" \
"^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
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 Down

0 comments on commit 797351c

Please sign in to comment.