aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2018-11-21 11:05:57 +0100
committerGitHub <noreply@github.com>2018-11-21 11:05:57 +0100
commit2db497326b0b58403594d241c1fe3a3a00f994b4 (patch)
treed62516415e5cec6c8651727e3e29c7592c7bb49d /docs
parent9f6fc500f01083e53359982a28afdeb720a63c87 (diff)
docs: add syz-ci instructions for fuchsia
Diffstat (limited to 'docs')
-rw-r--r--docs/fuchsia.md40
1 files changed, 40 insertions, 0 deletions
diff --git a/docs/fuchsia.md b/docs/fuchsia.md
index 12483d2a6..c37e0f5fd 100644
--- a/docs/fuchsia.md
+++ b/docs/fuchsia.md
@@ -73,3 +73,43 @@ Then run FIDL compiler backend `fidlgen` with syzkaller generator, which compile
```bash
/fuchsia/out/x64/host_x64/fidlgen -generators syzkaller -json /tmp/io.json -output-base fidl_io -include-base fidl_io
```
+## Running syz-ci locally
+
+To run `syz-ci` locally for Fuchsia, you need:
+
+- Go 1.10 toolchain (in `/go1.10` dir in the example below)
+- bootstrapped Fuchsia checkout (in `/bootstrap/fuchsia` dir in the example below)
+- bootstrap `syz-ci` binary (in the current dir, build with `make ci`)
+- `syz-ci` config similar to the one below (in `ci.cfg` file in the current dir)
+
+```
+{
+ "name": "testci",
+ "http": ":50000",
+ "manager_port_start": 50001,
+ "goroot": "/go1.10",
+ "syzkaller_repo": "https://github.com/google/syzkaller.git",
+ "managers": [
+ {
+ "name": "fuchsia",
+ "repo": "https://fuchsia.googlesource.com",
+ "manager_config": {
+ "target": "fuchsia/amd64",
+ "type": "qemu",
+ "cover": false,
+ "procs": 8,
+ "vm": {
+ "count": 4,
+ "cpu": 4,
+ "mem": 1024
+ }
+ }
+ }
+ ]
+}
+```
+
+Run `syz-ci` as:
+```
+SOURCEDIR=/bootstrap/fuchsia ./syz-ci -config ci.cfg
+```