aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/mgrconfig/testdata
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2018-08-01 21:35:13 +0200
committerDmitry Vyukov <dvyukov@google.com>2018-08-02 16:57:32 +0200
commitfbedd425b575868124577640fe02c9c0a73c4be3 (patch)
tree80b942c87b1b68274573b3ef90a7091211e4769e /pkg/mgrconfig/testdata
parentd5b1542a54ed37d8b7c9a62bfc441893b509b198 (diff)
pkg/mgrconfig: move from syz-manager/mgrconfig
mgrconfig was used only by syz-manager initially, but now it's used by a dozen of packages and it's weird to import from under a binary dir. pkg/ is much more reasonable dir for a widely used helper package.
Diffstat (limited to 'pkg/mgrconfig/testdata')
-rw-r--r--pkg/mgrconfig/testdata/gce1.cfg16
-rw-r--r--pkg/mgrconfig/testdata/gce2.cfg17
-rw-r--r--pkg/mgrconfig/testdata/qemu.cfg20
3 files changed, 53 insertions, 0 deletions
diff --git a/pkg/mgrconfig/testdata/gce1.cfg b/pkg/mgrconfig/testdata/gce1.cfg
new file mode 100644
index 000000000..44b4eae12
--- /dev/null
+++ b/pkg/mgrconfig/testdata/gce1.cfg
@@ -0,0 +1,16 @@
+{
+ "name": "windows-gce",
+ "target": "windows/amd64",
+ "http": ":10000",
+ "workdir": "/workdir",
+ "syzkaller": "/syzkaller",
+ "sshkey": "/syzkaller_id_rsa",
+ "ssh_user": "syzkaller",
+ "procs": 8,
+ "type": "gce",
+ "vm": {
+ "count": 10,
+ "machine_type": "n1-highcpu-2",
+ "gce_image": "gce-image-name"
+ }
+}
diff --git a/pkg/mgrconfig/testdata/gce2.cfg b/pkg/mgrconfig/testdata/gce2.cfg
new file mode 100644
index 000000000..cf9a620f2
--- /dev/null
+++ b/pkg/mgrconfig/testdata/gce2.cfg
@@ -0,0 +1,17 @@
+{
+ "name": "linux-gce",
+ "target": "linux/amd64",
+ "http": ":10000",
+ "workdir": "/workdir",
+ "syzkaller": "/syzkaller",
+ "image": "/local/path/to/disk.raw",
+ "sshkey": "/syzkaller_id_rsa",
+ "ssh_user": "syzkaller",
+ "procs": 8,
+ "type": "gce",
+ "vm": {
+ "count": 10,
+ "machine_type": "n1-highcpu-2",
+ "gcs_path": "gce-bucket-name-to-upload-image"
+ }
+}
diff --git a/pkg/mgrconfig/testdata/qemu.cfg b/pkg/mgrconfig/testdata/qemu.cfg
new file mode 100644
index 000000000..f390537fd
--- /dev/null
+++ b/pkg/mgrconfig/testdata/qemu.cfg
@@ -0,0 +1,20 @@
+{
+ "target": "linux/amd64",
+ "http": "myhost.com:56741",
+ "workdir": "/syzkaller/workdir",
+ "kernel_obj": "/linux/",
+ "image": "/linux_image/wheezy.img",
+ "sshkey": "/linux_image/ssh/id_rsa",
+ "syzkaller": "/syzkaller",
+ "disable_syscalls": ["keyctl", "add_key", "request_key"],
+ "suppressions": ["some known bug"],
+ "procs": 4,
+ "type": "qemu",
+ "vm": {
+ "count": 16,
+ "cpu": 2,
+ "mem": 2048,
+ "kernel": "/linux/arch/x86/boot/bzImage",
+ "initrd": "linux/initrd"
+ }
+}