675f1e0f91
Split ASST2 into ASST2.1 and ASST2.2 subtargets.
Scott Haseley2017-02-18 23:32:39 -05:00
a65ddfdc81
Beefed up consoletest for new ASST2.1. In its former incarnation, there is an easy hack to pass the test. This new version checks a little more of the write() spec and prevents the known exploitation.
Scott Haseley2017-02-18 23:11:29 -05:00
dbb57b2826
Added snsecprintf function that writes the secprintf message into the buffer provided.
Scott Haseley2017-02-18 22:58:35 -05:00
b51f2a88de
added new lock test to check do i hold functionality. tested on incorrect implementation, fails. tested on correct implementation, passed.
zsmoore2017-02-16 01:41:05 -05:00
398e4eb90a
Merge branch 'master' of github.com:ops-class/os161
Geoffrey Challen2017-02-10 15:29:07 -05:00
39516c2f86
Adding misc. commands that test161 didn't know about and tag descriptions
Scott Haseley2017-02-09 13:56:21 -05:00
160b83330e
Changed the stats resolution and monitor windows for the swapping tests. The size of the stats slice (test161) that was being persisted in mongo was > the 16M mongo document limit.
Scott Haseley2016-05-02 15:23:53 -04:00
153c0267b6
Changes to userland progress to tweak progress output for test161. We needed more periodic progress in some cases due to the large slow down that happens when swapping is implemented (ASST3.3).
Scott Haseley2016-04-27 18:46:44 -04:00
4e93e0b105
Forkbomb changes. First, use a local success string and make sure to access it early so a page gets allocated. Second, change the timeout for the vm stability test to 20s. It looks like some students are right up on this boundary.
Scott Haseley2016-04-22 14:54:10 -04:00
4bfe7afef3
Increased the progress timeout to 15s for quinthuge and sbrktest. If your VM takes a long time to clean up when processes exit, the default 10s timeout might be too short.
Scott Haseley2016-04-18 15:19:14 -04:00
4472cbaed0
Bumped up memory configuration for quint tests
Scott Haseley2016-04-15 16:24:03 -04:00
e21c37b14f
Added a secprintf message to the beginning of forkbomb so it causes page faults and allocates pages that we'll need later to print success.
Scott Haseley2016-04-15 14:13:48 -04:00
388e6388a9
Added thread_wait_for_count() which allows the menu to wait for all (new) threads to exit before continuing. We need this for khu testing because we have to make sure cleanup is done before getting the used byte count.
Scott Haseley2016-04-07 14:35:09 -04:00
1600e40d22
Initial tests and target for ASST3, checkpoint 2.
Scott Haseley2016-04-07 10:16:33 -04:00
5821a085bf
Removed disk configuration, test161 now has a larger default disk. Also, added not-dumbvm tag to not-dumbvm.t.
Scott Haseley2016-04-07 10:14:58 -04:00
fedf80f599
Userland changes for test161/assignment 3.
Scott Haseley2016-04-06 13:53:21 -04:00
194f76ef70
The "huge positive" number being tested wasn't big enough. Now using a number that would cause the heap to bleed into the stack.
Scott Haseley2016-04-06 13:33:28 -04:00
16bfdcf406
Added new line before printing secured messages. For quint/triple tests, the secured message might print on a progress line, which makes test161 fail.
Scott Haseley2016-04-06 13:27:51 -04:00
e0fc622e00
Added progress functions that print '.'. There are versions that are always loud or only loud during automated testing.
Scott Haseley2016-04-06 13:26:05 -04:00
2873c513d4
Assignment 3 target will now be cumulative instead of split into subparts
Scott Haseley2016-03-30 17:11:41 -04:00
eede850f54
The km4 thread was checking the correct magic value, but printing the one on the first page. The test result is correct, but might look like it is failing when it shouldn't.
Scott Haseley2016-03-30 16:09:24 -04:00
78265c6da4
Set leaderboard to false for ASST3 coremap target. We'll work on aggregating multi-part targets, but for now, don't show subparts. Also, explicitly set userland to false.
Scott Haseley2016-03-30 14:58:59 -04:00
7f3f686b1a
Updated km4 to write to, and check, each page allocated in the multi-page allocation. This should find cases where students ignore npages and just allocate one page, which would previously work.
Scott Haseley2016-03-28 15:43:39 -04:00
b4bcf45932
Initial tests, commands, and target for asst3.1
Scott Haseley2016-03-25 11:13:31 -04:00
8380115efa
Added new kmalloc test (km5) that tests various coremap properties. Also, km1-km4 were cleaned up for test161.
Scott Haseley2016-03-25 11:12:09 -04:00
501773f90e
Added a global variable for the number of cpus
Scott Haseley2016-03-25 11:11:08 -04:00
25a1d7debc
Changed kheap_getused so that it doesn't double-count the pages it's using for subpage allocation. We run into problems in determining memory leaks due to kmalloc framgmentation, which can happen because of delayed thread cleanup.
Scott Haseley2016-03-25 11:09:15 -04:00
922370ebd4
Changed forkbomb to only print one success message
Scott Haseley2016-03-11 14:56:01 -05:00
aa4c87a2fa
New ASST2 single submitter target and hard linking fix.
Geoffrey Challen2016-03-08 15:44:02 -05:00
196bb3b684
Now using static buffers (and protecting with a semaphore) for kernel secprintf. We have to do this because we need secure output in kmalloc.
Scott Haseley2016-03-07 15:05:58 -05:00