github.com/shaardie/u-root@v4.0.1-0.20190127173353-f24a1c26aa2e+incompatible/integration/README.md (about) 1 # Integration Tests 2 3 This tests core use cases for u-root such as: 4 5 - retrieving and kexec'ing a Linux kernel, 6 - uinit (user init), and 7 - running unit tests requiring root privileges. 8 9 ## Usage 10 11 Run the tests with: 12 13 go test 14 15 When the QEMU arch is not amd64, set the `UROOT_TESTARCH` variable. For 16 example: 17 18 UROOT_TESTARCH=arm go test 19 20 Currently, only amd64 and arm are supported. 21 22 ## Requirements 23 24 - QEMU 25 - Path and arguments must be set with `UROOT_QEMU`. 26 - Example: `export UROOT_QEMU="$HOME/bin/qemu-system-x86_64 -L ."` 27 - Linux kernel 28 - Path and arguments must be set with `UROOT_KERNEL`. 29 - Example: `export UROOT_KERNEL="$HOME/linux/arch/x86_64/boot/bzImage"`