summaryrefslogtreecommitdiff
path: root/yarns/300-slow-build-tests.yarn
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2015-11-05 11:49:50 +0000
committerNeil Williams <codehelp@debian.org>2015-11-06 12:37:10 +0000
commit6477d1d4def03afc545a706b2a2666371e028130 (patch)
tree55e9634f2ce7cfc2926d9f39a386bed4ccaec5d3 /yarns/300-slow-build-tests.yarn
parente27e6e2512f1c59114eac99fc69ac7a952abf521 (diff)
downloadvmdebootstrap-6477d1d4def03afc545a706b2a2666371e028130.tar.gz
Add yarn tests vmdebootstrap
Diffstat (limited to 'yarns/300-slow-build-tests.yarn')
-rw-r--r--yarns/300-slow-build-tests.yarn20
1 files changed, 20 insertions, 0 deletions
diff --git a/yarns/300-slow-build-tests.yarn b/yarns/300-slow-build-tests.yarn
new file mode 100644
index 0000000..41d11a3
--- /dev/null
+++ b/yarns/300-slow-build-tests.yarn
@@ -0,0 +1,20 @@
+# Slow image building tests
+
+In this chapter, we have test scenarios that actually build an image
+and test the output. The images are not booted, but that may be added
+later. Instead, all the tests on the images are static.
+
+These tests are slow, since building images is slow.
+
+
+## Build a very basic Debian 8 image
+
+ SCENARIO build a basic Debian 8 image
+ ASSUMING build tests are requested
+ GIVEN user wants to build an image FOO.img that is 2GiB in size
+ WHEN the user runs vmdebootstrap --sparse --extlinux
+ THEN the image has the correct size
+ AND the image has one partition
+ AND partition 1 has the boot flag set
+ AND partition 1 has an ext4 filesystem
+ AND partition 1 has file /etc/debian_version matching ^8\..*$