summaryrefslogtreecommitdiff
path: root/contractor.md
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2020-03-11 10:54:39 +0200
committerLars Wirzenius <liw@liw.fi>2020-03-11 10:54:39 +0200
commit12ff1b1643cc5fda5b987fecd53a43a9ee05a604 (patch)
tree512674f60ee88c5b61b0bf546d6a06dfcaf23f77 /contractor.md
parent0a577d78e079a8a363c229d063a77ec10584ba89 (diff)
downloadick-contractor-12ff1b1643cc5fda5b987fecd53a43a9ee05a604.tar.gz
Add: smoke test scenario for Debian
Diffstat (limited to 'contractor.md')
-rw-r--r--contractor.md35
1 files changed, 34 insertions, 1 deletions
diff --git a/contractor.md b/contractor.md
index ac84d85..9fb2f64 100644
--- a/contractor.md
+++ b/contractor.md
@@ -1,6 +1,7 @@
---
title: "Contractor: running CI builds securely"
author: "Lars Wirzenius"
+bindings: contractor.yaml
...
@@ -236,7 +237,39 @@ variety of guest systems, and verify the resulting binaries output the
desired greeting. The goal of these scenarios is to ensure the various
Contractor components fit together at least in the very basic case.
-### Debian smoke test (FIXME)
+### Debian smoke test
+
+This scenario checks that the developer can build a simple C program
+in the Contractor.
+
+~~~scenario
+given a working contractor
+and file hello.c
+and file contractor.yaml
+when I run contractor build contractor.yaml
+then exit code is 0
+then artifact hello exists
+~~~
+
+~~~{.file #hello.c .c .numberLines}
+#include <stdio.h>
+
+int main()
+{
+ printf("hello, world\n");
+ return 0;
+}
+~~~
+
+~~~{.file #contractor.yaml .yaml .numberLines}
+actions:
+- action: shell
+ shell: |
+ gcc hello.c
+- action: save-artifact
+ filenames:
+ - hello
+~~~
### Ubuntu smoke test (FIXME)