diff --git a/README.md b/qemu/README.md similarity index 82% rename from README.md rename to qemu/README.md index b219897..ef7d79d 100644 --- a/README.md +++ b/qemu/README.md @@ -1,4 +1,4 @@ -# go-qemu-kernel +# out-of-tree/qemu Qemu wrapper for kernel-related CI tasks. Supports *GNU/Linux* and *macOS*. @@ -9,7 +9,7 @@ Features: ## Installation - $ go get github.com/jollheef/go-qemu-kernel + $ go get github.com/jollheef/out-of-tree/qemu ### Generate root image @@ -30,14 +30,14 @@ Because it's a very complicated to debootstrap qemu images from macOS, preferred way is to use Vagrant with any hypervisor. $ brew cask install vagrant - $ cd $GOPATH/src/github.com/jollheef/go-qemu-kernel/tools/qemu-debian-image + $ cd $GOPATH/src/github.com/jollheef/out-of-tree/qemu/tools/qemu-debian-image $ vagrant up && vagrant destroy -f bionic.img and bionic-vmlinuz will be created in current directory. ### Fill configuration file - $ $EDITOR $GOPATH/src/github.com/jollheef/go-qemu-kernel/test.config.go + $ $EDITOR $GOPATH/src/github.com/jollheef/out-of-tree/qemu/test.config.go ### Run tests @@ -45,7 +45,7 @@ bionic.img and bionic-vmlinuz will be created in current directory. ## Usage - $ go get github.com/jollheef/go-qemu-kernel + $ go get github.com/jollheef/out-of-tree/qemu Minimal example: @@ -73,4 +73,4 @@ Minimal example: More information and list of all functions see at go documentation project, or just run locally: - $ godoc github.com/jollheef/go-qemu-kernel + $ godoc github.com/jollheef/out-of-tree/qemu diff --git a/qemu-kernel.go b/qemu/qemu-kernel.go similarity index 100% rename from qemu-kernel.go rename to qemu/qemu-kernel.go diff --git a/qemu-kernel_test.go b/qemu/qemu-kernel_test.go similarity index 100% rename from qemu-kernel_test.go rename to qemu/qemu-kernel_test.go diff --git a/qemu/test.config.go b/qemu/test.config.go new file mode 100644 index 0000000..8d19d77 --- /dev/null +++ b/qemu/test.config.go @@ -0,0 +1,10 @@ +// Copyright 2018 Mikhail Klementev. All rights reserved. +// Use of this source code is governed by a GPLv3 license +// (or later) that can be found in the LICENSE file. + +package qemukernel + +const testConfigVmlinuz = "../tools/qemu-debian-img/vmlinuz-bionic" +const testConfigInitrd = "../tools/qemu-debian-img/initrd-bionic" +const testConfigRootfs = "../tools/qemu-debian-img/bionic.img" +const testConfigSampleKo = "../tools/qemu-debian-img/sample.ko" diff --git a/test.config.go b/test.config.go deleted file mode 100644 index a49693d..0000000 --- a/test.config.go +++ /dev/null @@ -1,10 +0,0 @@ -// Copyright 2018 Mikhail Klementev. All rights reserved. -// Use of this source code is governed by a GPLv3 license -// (or later) that can be found in the LICENSE file. - -package qemukernel - -const testConfigVmlinuz = "tools/qemu-debian-img/vmlinuz-bionic" -const testConfigInitrd = "tools/qemu-debian-img/initrd-bionic" -const testConfigRootfs = "tools/qemu-debian-img/bionic.img" -const testConfigSampleKo = "tools/qemu-debian-img/sample.ko"