Update tests readme

This commit is contained in:
Fabian 2020-12-31 19:14:34 -06:00
parent 2e551c0574
commit 46460641c7
3 changed files with 12 additions and 26 deletions

View file

@ -1,9 +1,17 @@
Use the corresponding `make` target in the root directory to run a test. The
following list is roughtly sorted from most interesting/useful to least.
- [nasm](nasm/): Small unit tests written in assembly, which are run using gdb
on the host.
- [qemu](qemu/): Builds a Linux binary, which tests many CPU features, which
are then compared to a run on the host.
- [qemu](qemu/): Based on tests from qemu. Builds a Linux binary, which tests
many CPU features, which are then compared to a run on qemu.
- [kvm-unit-test](kvm-unit-test/): Based on tests from the KVM project, tests
various CPU features.
- [full](full/): Starts several OSes and checks if they boot correctly.
- [perf-irhydra](perf-irhydra/): Manual performance test. Probably not
interesting for you.
- [jit-paging](jit-paging/): Tests jit and paging interaction.
- [api](api/): Tests for several API functions of v86.
- [devices](devices/): Device tests.
- [rust](rust/): Rust unit test helpers.
- [expect](expect/): Expect tests for the jit output. Contains a set of
asm+wasm files, where the jit is expected to produce the wasm file given the
asm file.

View file

@ -1 +0,0 @@
rm -f code-*.asm hydrogen-*.cfg

View file

@ -1,21 +0,0 @@
# create files to analyze the emulator with irhydra.
#
# Important links:
# http://mrale.ph/irhydra/2/
# http://mrale.ph/blog/2014/01/28/prerelease-irhydra2.html
# http://mrale.ph/blog/2014/02/23/the-black-cat-of-microbenchmarks.html
EMULATOR=http://localhost/v86/
chromium \
--incognito\
--no-sandbox \
--js-flags="--trace-hydrogen \
--trace-phase=Z \
--trace-deopt \
--code-comments \
--hydrogen-track-positions \
--redirect-code-traces" \
$EMULATOR