Commit graph

70 commits

Author SHA1 Message Date
Frans Kaashoek 9599a8e616 x 2020-11-05 19:00:37 -05:00
Frans Kaashoek d7b308fe81 kill/status test 2020-11-05 18:50:02 -05:00
Robert Morris 792d60e912 avoid deadlock by disk intr acking interrupt first, then processing ring 2020-10-04 09:21:03 -04:00
Robert Morris e3672e018a often causes deadlock after a few minutes 2020-10-04 08:44:32 -04:00
Frans Kaashoek d9c7b13acc Add s to many printf statements that expect it (thanks Cece Chu)
Add dirtest to the list of tests
2020-10-02 07:52:14 -04:00
Robert Morris 788b4d1bc9 Merge branch 'riscv' of g.csail.mit.edu:xv6-dev into riscv 2020-09-30 17:16:05 -04:00
Frans Kaashoek 05074badc4 When either_copyin/out fails, return an error from write/read
Add a test to check that read/write return an error
2020-09-24 13:18:54 -04:00
Robert Morris 2055fe13ac better grind error messages 2020-09-06 14:20:18 -04:00
Robert Morris ffb2ee074a move panicked check to uart.c 2020-08-28 05:51:48 -04:00
Frans Kaashoek 2ec9c6ed66 Remove obselete ifdef that shouldn't have been there ever 2020-08-27 07:05:13 -04:00
Robert Morris d7e5f26910 fix usertests to pass all the riscv-sol-fall20 solutions. 2020-08-27 06:21:10 -04:00
Robert Morris 59a9863a17 touch sbrk()-allocated memory to make sure it exists 2020-08-19 13:10:14 -04:00
Robert Morris aefa2697d7 usertest for exec() out of memory recovery
and fix a few exec() bugs
2020-08-19 12:35:14 -04:00
Frans Kaashoek b33574df38 Use the major number defined in file.h. The minor number is ignored;
might as well use 0.
2020-08-18 20:48:53 -04:00
Robert Morris b154cf091c x 2020-08-15 05:46:32 -04:00
Robert Morris adee82c3e7 handle another out-of-memory in fork(). the policy here is not consistent,
since other calls (e.g. exec()) panic on out of memory.
2020-08-13 10:22:07 -04:00
Robert Morris 6cb6764bb1 test string system call arguments that cross over the end of the last page. 2020-08-07 16:56:00 -04:00
Robert Morris 234391b6bf test copyinstr()'s handling of the terminating null 2020-08-07 16:39:56 -04:00
Robert Morris 354adfdafc streamline copyin/copyout code in usertests
fix bugs in read/write return values when there's an error
2020-08-07 15:06:43 -04:00
Robert Morris f01b1a8b71 test pointer checking in copyin, copyout, copyinstr 2020-08-07 14:34:39 -04:00
Robert Morris 8b9b799937 modify each page in usertests countfree()
get rid of static for walk() and freewalk()
2020-08-07 05:32:48 -04:00
Robert Morris f3979b7212 make "echo hello > x" truncate file x. 2020-07-16 11:38:08 -04:00
Robert Morris c98e1afe79 allow more files 2019-11-08 13:21:06 -05:00
Robert Morris 507028de9d more grind 2019-11-07 09:46:20 -05:00
Robert Morris 20f1dd9409 more grind 2019-11-07 06:44:23 -05:00
Robert Morris 16b3b63f06 grind: run parallel system calls forever 2019-11-06 11:18:43 -05:00
Robert Morris 9de9211b11 usertests -c to repeat tests forever
detect memory leaks
no more "already ran user tests"
2019-10-28 05:58:28 -04:00
Robert Morris d9160fb4b9 nits 2019-10-27 08:03:19 -04:00
Anish Athalye f2df0fa547 Fix ulib's memmove to handle overlap when src<dst 2019-10-08 21:24:03 -04:00
Anish Athalye 8509784d80 Add implementations of memcmp and memcpy to ulib
This is necessary because gcc may generate calls to memcmp, memset,
memcpy, and memmove when compiling with -nostdlib.
2019-10-08 21:18:54 -04:00
Robert Morris a52d296814 delete alarmtest from riscv 2019-10-03 15:09:31 -04:00
Robert Morris 56583b1402 updated alarmtest 2019-10-03 15:02:19 -04:00
Robert Morris d175beadf5 bug fix: reparent() sometimes deadlocked
bug fix: exit() sometimes released a different parent lock than it acquired
usertests
2019-09-23 06:50:25 -04:00
Frans Kaashoek 843ce77765 Stress copyin for the full allocated page (good for lazy lab). 2019-09-21 17:28:18 -04:00
Robert Morris d940fd122d don't leak memory if exec() arguments are invalid. 2019-09-21 04:54:25 -04:00
Frans Kaashoek 6b79ee69b7 Refactor big sbrk test in smaller, easier-to-understand tests 2019-09-21 02:07:24 -04:00
Frans Kaashoek ee67dbd211 Not much: factor sbrksimple from big sbrktest 2019-09-20 17:08:13 -04:00
Robert Morris 7c7ed20822 don't leak a file system block if the buf argument to write is invalid
and a usertest
2019-09-20 13:09:26 -04:00
Robert Morris e1a37303c8 yet another sbrk() bug fix, and usertest 2019-09-20 12:13:57 -04:00
Robert Morris 4de161f973 don't panic if a program frees all its memory with sbrk().
if a program sbrk()'s to a non-page-boundary, don't free that page.
corresponding usertests.
2019-09-20 11:35:27 -04:00
Robert Morris ca30cac702 more incorrect cast to uint 2019-09-20 10:27:03 -04:00
Robert Morris 402e7b5605 fix a potential kernel crash
add a regression test for it
2019-09-20 09:41:03 -04:00
Frans Kaashoek ba1c42849a print name at start of test 2019-09-19 15:39:05 -04:00
Frans Kaashoek 25e6803e17 a comment 2019-09-19 15:22:45 -04:00
Frans Kaashoek 3f6e372a29 make exec test self contained 2019-09-19 15:14:52 -04:00
Frans Kaashoek f6a37c17f2 Standarize the way tests are run and report errors
Support running one test, by specifying the name as a command argument to usertests
2019-09-19 06:58:28 -04:00
Robert Morris 35010f0d0f error exit status is 1 2019-09-11 10:04:40 -04:00
Frans Kaashoek 7e6c37e67e Support exit status for exit/wait
One test case for returning a exit status
Passes usertests, but haven't used it to simplify tests
2019-09-10 12:30:10 -04:00
Robert Morris fc337af2b6 fix a grep bug 2019-09-05 16:50:55 -04:00
Robert Morris c0beeccb1b have echo use FD 1 for clarity 2019-09-04 10:12:53 -04:00