aboutsummaryrefslogtreecommitdiffstats
path: root/executor/test.go
diff options
context:
space:
mode:
Diffstat (limited to 'executor/test.go')
-rw-r--r--executor/test.go13
1 files changed, 13 insertions, 0 deletions
diff --git a/executor/test.go b/executor/test.go
new file mode 100644
index 000000000..09a1c130b
--- /dev/null
+++ b/executor/test.go
@@ -0,0 +1,13 @@
+// Copyright 2017 syzkaller project authors. All rights reserved.
+// Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file.
+
+//go:generate bash -c "gcc kvm_gen.cc kvm.S -o kvm_gen && ./kvm_gen > kvm.S.h"
+
+package executor
+
+// int test_kvm();
+import "C"
+
+func testKVM() int {
+ return int(C.test_kvm())
+}