summaryrefslogtreecommitdiff
path: root/contractor.md
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2020-04-09 09:22:16 +0300
committerLars Wirzenius <liw@liw.fi>2020-04-09 09:22:16 +0300
commit5d82791d79df860a31beb70e1caedd7b07acf83f (patch)
treef55dbea843bad408a75926992e8a4ab7492422fd /contractor.md
parentef0aa4ca8531db4be89d49db1861cb834749145a (diff)
downloadick-contractor-5d82791d79df860a31beb70e1caedd7b07acf83f.tar.gz
Change: Debian smoke test scenario to be more realistic
Diffstat (limited to 'contractor.md')
-rw-r--r--contractor.md25
1 files changed, 13 insertions, 12 deletions
diff --git a/contractor.md b/contractor.md
index 43b4414..c5a101f 100644
--- a/contractor.md
+++ b/contractor.md
@@ -333,13 +333,14 @@ Contractor components fit together at least in the very basic case.
This scenario checks that the developer can build a simple C program
in the Contractor.
-~~~scenariox
+~~~scenario
given a working contractor
and file hello.c
-and file contractor.yaml
-when I run contractor build contractor.yaml
+and file hello.yaml
+and file worker.img from source directory
+when I run contractor build hello.yaml
then exit code is 0
-then artifact hello exists
+then file ws/hello exists
~~~
~~~{.file #hello.c .c .numberLines}
@@ -352,14 +353,14 @@ int main()
}
~~~
-~~~{.file #contractor.yaml .yaml .numberLines}
-actions:
-- action: shell
- shell: |
- gcc hello.c
-- action: save-artifact
- filenames:
- - hello
+~~~{.file #hello.yaml .yaml .numberLines}
+worker-image: worker.img
+install:
+ - build-essential
+source: .
+workspace: ws
+build: |
+ gcc hello.c -o hello
~~~
### Ubuntu smoke test (FIXME)