Running tests for this syscall is easy. Just do the following from
inside the initial-xv6 directory:
prompt> ./test-getreadcounts.shIf you implemented things correctly, you should get some notification that the tests passed. If not ...
The tests assume that xv6 source code is found in the src/ subdirectory.
If it's not there, the script will complain.
The test script does a one-time clean build of your xv6 source code
using a newly generated makefile called Makefile.test. You can use
this when debugging (assuming you ever make mistakes, that is), e.g.:
prompt> cd src/
prompt> make -f Makefile.test qemu-noxYou can suppress the repeated building of xv6 in the tests with the
-s flag. This should make repeated testing faster:
prompt> ./test-getreadcounts.sh -sAfter implementing both sigalarm and sigreturn, do the following:
- Make the entry for
alarmtestinsrc/MakefileinsideUPROGS - Run the command inside xv6:
prompt> alarmtest
- Run the following command in xv6:
prompt> schedulertest
- Run the following command in xv6:
prompt> usertests