-
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 meson plugin (#2205)
Move the plugin integration tests for the Meson plugin into a Spread suite. LP: #1783837 Signed-off-by: Kyle Fazzari <kyrofa@ubuntu.com>
- Loading branch information
Kyle Fazzari
committed
Aug 9, 2018
1 parent
10139a4
commit 19c651a
Showing
8 changed files
with
38 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 was deleted.
Oops, something went wrong.
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,18 @@ | ||
summary: Build and run a basic meson snap | ||
|
||
environment: | ||
SNAP_DIR: ../snaps/meson-hello | ||
|
||
restore: | | ||
cd "$SNAP_DIR" | ||
snapcraft clean | ||
rm -f ./*.snap | ||
# There is no meson on trusty | ||
systems: [-ubuntu-14.04*] | ||
|
||
execute: | | ||
cd "$SNAP_DIR" | ||
snapcraft | ||
sudo snap install meson-hello_*.snap --dangerous | ||
[ "$(meson-hello)" = "hello world" ] |
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,7 @@ | ||
#include <stdio.h> | ||
|
||
int main() | ||
{ | ||
printf("hello world\n"); | ||
return 0; | ||
} |
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,2 @@ | ||
project('meson-hello', 'c') | ||
executable('hello', 'main.c', install : true) |
13 changes: 9 additions & 4 deletions
13
...egration/snaps/meson-hello/snapcraft.yaml → ...son/snaps/meson-hello/snap/snapcraft.yaml
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 |
---|---|---|
@@ -1,17 +1,22 @@ | ||
name: meson-hello | ||
version: 0.1 | ||
version: '1.0' | ||
summary: test the meson plugin | ||
description: | | ||
This is a basic meson snap. It just prints a hello world. | ||
If you want to add other functionalities to this snap, please don't. | ||
Make a new one. | ||
grade: devel | ||
confinement: strict | ||
|
||
build-packages: [gcc, libc6-dev] | ||
apps: | ||
meson-hello: | ||
command: hello | ||
|
||
parts: | ||
meson-project: | ||
meson-parameters: | ||
- --prefix=/opt | ||
plugin: meson | ||
source: . | ||
meson-parameters: | ||
- --prefix=/ | ||
build-packages: [gcc, libc6-dev] |