Commit graph

16 commits

Author SHA1 Message Date
Ernest Wong 89592e8283 Use fs.RecursiveDelete before each fs test
Don't need to involve the guest os to delete everything.
2020-08-30 19:29:53 -05:00
Ernest Wong 1c6e5f2a51 Add failing tests for fs.SearchPath
Bugs in fs.SearchPath is causing problems with fs.Mount.
2020-08-30 19:29:53 -05:00
Ernest Wong 070c38c6a1 Add tests for host-side fs mounting
The testing "framework" code is slowly turning into spaghetti due to the
asynchronous nature of the triggers. Using async functions will help
clarify the program flow if we think we should address this issue.
2020-08-30 19:29:53 -05:00
Ernest Wong fa7ffd6ccc FS tests: include preparation steps in timeout
Stop hangs caused by faults during mounting and file loading
2020-08-30 19:29:53 -05:00
Ernest Wong d96a3373a6 FS tests: add enable-logs switch, simplify basefs option 2020-08-30 19:29:53 -05:00
Ernest Wong a538ba9960 Fix 9p caps test and add tests for xattr 2020-08-30 19:29:53 -05:00
Ernest Wong 5ec59fa019 Increase 9p tests' timeouts 2020-08-30 19:29:51 -05:00
Fabian e0d3ebd6bc Test for atime of new files 2020-08-30 19:29:13 -05:00
Ernest Wong 30a72e5874 Filesystem tests: include newlines in capture
- keep empty lines
- handle word wraps
- remove extra space in assert failure logging
2020-08-30 19:29:13 -05:00
Ernest Wong 72a4dc6448 Filesystem tests tidyup and ls --color=never 2020-08-30 19:29:13 -05:00
Ernest Wong 496e63f76e Add walk to filesystem stress test 2020-08-30 19:29:13 -05:00
Ernest Wong 8c6bfdb6da Minor improvements to filesystem tests 2020-08-30 19:29:13 -05:00
Ernest Wong 42d21bde56 Extend 9p tests to cover most file system calls 2020-08-30 19:29:02 -05:00
Ernest Wong a75eb60e45 Use linux4 for virtio9p test + tidy up test logic 2020-08-30 19:27:07 -05:00
Ernest Wong 2bb5b194dc Fix virtio 9p tests
I wrongly assumed that libv86 would perform faster than libv86-debug.
Using libv86 caused ttyS0 to timeout before initialising, so there was
not serial terminal to use by the time debian booted.
2020-08-30 19:27:07 -05:00
Ernest Wong fe40ebc0f8 Add tests for virtio 9p (tests are currently incorrect)
These tests do not work yet: it fails to capture the serial output
after root login.

In addition, these tests are currently too slow to run
since it takes a while to boot the debian image (> 16 minutes on my
machine while running the test in the terminal.)

Would need to switch to a newer minimal linux image when available.
2020-08-30 19:27:07 -05:00