-
Notifications
You must be signed in to change notification settings - Fork 116
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add prototype appliance test definition for integration testing
Signed-off-by: Stevan Radaković <[email protected]>
- Loading branch information
1 parent
978d12e
commit 6b2c85a
Showing
3 changed files
with
43 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/bin/sh | ||
|
||
. ../../lib/sh-test-lib | ||
|
||
gitlab_token="" | ||
# source the secrets file to get the gitlab_token env var | ||
. ../../../../../../secrets > /dev/null 2>&1 | ||
install_deps "git curl python3-pip" | ||
curl -X GET http://localhost:8000/api/v01/ | ||
|
||
get_test_program "https://gitlab-ci-token:${gitlab_token}@gitlab.com/LinaroLtd/lava/appliance/baklava-integration.git" "baklava-integration" "main" | ||
|
||
pip3 install -r requirements.txt | ||
|
||
robot --pythonpath . --variable remote:True test/ > ../output.txt | ||
|
||
cat ../output.txt |
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,22 @@ | ||
metadata: | ||
name: integration-tests | ||
format: "Lava-Test Test Definition 1.0" | ||
description: "Run appliance integration tests in LAVA." | ||
maintainer: | ||
- [email protected] | ||
os: | ||
- debian | ||
- ubuntu | ||
devices: | ||
- qemu | ||
scope: | ||
- functional | ||
|
||
params: | ||
SKIP_INSTALL: "false" | ||
|
||
run: | ||
steps: | ||
- cd ./automated/linux/torizon/ | ||
- ./integration-tests.sh | ||
- ../../utils/send-to-lava.sh ./output.txt |
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