README 939 B

12345678910111213141516171819
  1. These scripts allow you to run the hwsim tests inside a KVM virtual machine.
  2. To set it up, first compile a kernel with the kernel-config file as the
  3. .config. You can adjust it as needed, the configuration is for a 64-bit
  4. x86 system and should be close to minimal. The architecture must be the
  5. same as your host since the host's filesystem is used.
  6. Install the required tools: at least 'kvm', if you want tracing trace-cmd,
  7. valgrind if you want, etc.
  8. Compile the hwsim tests as per the instructions given, you may have to
  9. install some extra development packages (e.g. binutils-dev for libbfd).
  10. Create a vm-config file and put the KERNELDIR option into it (see the
  11. vm-run.sh script). If you want valgrind, also increase the memory size.
  12. Now you can run the vm-run.sh script and it will execute the tests using
  13. your system's root filesystem (read-only) inside the VM. The options you
  14. give it are passed through to run-all.sh, see there.