-
Notifications
You must be signed in to change notification settings - Fork 441
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests: add spread suite for kbuild plugin (#2203)
Move the plugin integration tests for the Kbuild plugin into a Spread suite. LP: #1783835 Signed-off-by: Kyle Fazzari <kyrofa@ubuntu.com>
- Loading branch information
1 parent
67d94bd
commit f5d1b17
Showing
6 changed files
with
48 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
summary: Cross-compile a Kbuild snap | ||
|
||
environment: | ||
SNAP_DIR: ../snaps/kbuild-hello | ||
|
||
restore: | | ||
cd "$SNAP_DIR" | ||
snapcraft clean | ||
rm -f ./*.snap | ||
execute: | | ||
cd "$SNAP_DIR" | ||
snapcraft stage --target-arch=armhf | ||
file stage/bin/myapp | MATCH ",\s*ARM\s*," |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
summary: Build and run a basic Kbuild snap | ||
|
||
environment: | ||
SNAP_DIR: ../snaps/kbuild-hello | ||
|
||
restore: | | ||
cd "$SNAP_DIR" | ||
snapcraft clean | ||
rm -f ./*.snap | ||
execute: | | ||
cd "$SNAP_DIR" | ||
snapcraft | ||
sudo snap install kbuild-hello_*.snap --dangerous | ||
# Verify that Foo was configured, and Bar was not | ||
output="$(kbuild-hello.myapp | grep "You have configured" -A2)" | ||
echo "$output" | MATCH "Foo" | ||
echo "$output" | MATCH -v "Bar" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,6 @@ | |
# | ||
CONFIG_CROSS_COMPILE="" | ||
CONFIG_CC_OPTIMIZE_FOR_PERFORMANCE=y | ||
CONFIG_ENABLE_FOO_BAR=y | ||
CONFIG_FOO=y | ||
CONFIG_BAR=y |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters