forked from go-debos/debos
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Run recipe tests using UML on GitHub actions
Running the tests on the host is a good first step; to test Debos properly we should run inside a Fakemachine. Since GitHub actions do not support creating nested virtual machines, use the user-mode-linux backend in Fakemachine to create a user process to run the tests inside of. Since Docker autobuild does not support UML the docker-compose file purposely does not have a suffix of `.test.yml` so that the test will not be picked up to run on Docker autobuild. Signed-off-by: Christopher Obbard <[email protected]>
- Loading branch information
1 parent
ea8aca0
commit c66a48d
Showing
3 changed files
with
33 additions
and
0 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 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 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,23 @@ | ||
version: '3.6' | ||
|
||
services: | ||
sut: | ||
build: | ||
context: .. | ||
dockerfile: docker/Dockerfile | ||
target: runner | ||
volumes: | ||
- type: bind | ||
source: ../tests | ||
target: /recipes | ||
tmpfs: | ||
- /scratch:exec | ||
environment: | ||
- TMP=/scratch | ||
cap_add: | ||
- SYS_PTRACE | ||
security_opt: | ||
- label:disable | ||
working_dir: /recipes | ||
entrypoint: ./tests.sh | ||
command: --fakemachine-backend=uml |