summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvoney <voney@dklv.me>2019-12-18 17:52:28 +1100
committerLars Wirzenius <liw@liw.fi>2019-12-26 18:15:36 +0200
commit9dfdf7c1e93ca619f1829126423398036d4e4a79 (patch)
tree86832e66a1ab77085b7fb76062c563191f270807
parent456b265412be956761c623f248bc86040be0ddf5 (diff)
downloadvmdb2-9dfdf7c1e93ca619f1829126423398036d4e4a79.tar.gz
Add: smoke tests for files_plugin
-rw-r--r--smoke-copy-file.txt1
-rw-r--r--smoke-pc.vmdb17
-rw-r--r--smoke-uefi.vmdb18
3 files changed, 36 insertions, 0 deletions
diff --git a/smoke-copy-file.txt b/smoke-copy-file.txt
new file mode 100644
index 0000000..08f7479
--- /dev/null
+++ b/smoke-copy-file.txt
@@ -0,0 +1 @@
+No fire here. \ No newline at end of file
diff --git a/smoke-pc.vmdb b/smoke-pc.vmdb
index 8f5a9b8..ec521f9 100644
--- a/smoke-pc.vmdb
+++ b/smoke-pc.vmdb
@@ -25,6 +25,23 @@ steps:
- mount: rootfs
+ - create-dir: /smoke-dir
+ perm: 0777
+ uid: 1000
+ gid: 1000
+
+ - create-file: /smoke-create-file.txt
+ contents: No smoke here.
+ perm: 0777
+ uid: 1000
+ gid: 1000
+
+ - copy-file: /smoke-copy-file.txt
+ src: smoke-copy-file.txt
+ perm: 0777
+ uid: 1000
+ gid: 1000
+
- unpack-rootfs: rootfs
- debootstrap: buster
diff --git a/smoke-uefi.vmdb b/smoke-uefi.vmdb
index 3775aa2..2c8545a 100644
--- a/smoke-uefi.vmdb
+++ b/smoke-uefi.vmdb
@@ -28,6 +28,24 @@ steps:
- mount: rootfs
+ - create-dir: /smoke-dir
+ perm: 0777
+ uid: 1000
+ gid: 1000
+
+ - create-file: /smoke-create-file.txt
+ contents: No smoke here.
+ perm: 0777
+ uid: 1000
+ gid: 1000
+
+ - copy-file: /smoke-copy-file.txt
+ src: smoke-copy-file.txt
+ perm: 0777
+ uid: 1000
+ gid: 1000
+
+
- unpack-rootfs: rootfs
- debootstrap: buster