Skip to content

Commit

Permalink
ASST3 test cleanup; added forkbomb
Browse files Browse the repository at this point in the history
  • Loading branch information
shaseley committed Apr 7, 2016
1 parent a56bf00 commit 854931e
Show file tree
Hide file tree
Showing 17 changed files with 40 additions and 21 deletions.
10 changes: 6 additions & 4 deletions test161/targets/asst3.tt
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ tests:

# Checkpoint 2 (100 points)

# Basic paging (30 points)
- id: vm/not-dumbvm2.t
# Basic VM (30 points)
- id: vm/not-dumbvm-vm.t
points: 5
- id: vm/sort.t
points: 5
Expand All @@ -46,7 +46,7 @@ tests:
- id: vm/stacktest.t
points: 5

# Concurrent paging (40 points)
# Concurrent VM (40 points)
- id: vm/bigfork.t
points: 8
- id: vm/parallelvm.t
Expand All @@ -68,4 +68,6 @@ tests:
- id: vm/zero.t
points: 5
- id: vm/stability/vm-stability.t
points: 15
points: 10
- id: vm/stability/forkbomb.t
points: 5
4 changes: 2 additions & 2 deletions test161/tests/vm/bigfork.t
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
---
name: "Big Fork"
description: >
Stress tests your VM by performing various matrix computations in
Stress tests your VM system by performing various matrix computations in
multiple concurrent processes. This test is a cross between parallelvm
and forktest.
tags: [vm]
depends: [not-dumbvm-paging, /syscalls/forktest.t]
depends: [not-dumbvm-vm, /syscalls/forktest.t]
sys161:
cpus: 4
ram: 8M
Expand Down
2 changes: 1 addition & 1 deletion test161/tests/vm/ctest.t
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: >
Turn a huge array into a linked list and hop along the list triggering
an interesting page fault pattern.
tags: [vm]
depends: [not-dumbvm-paging]
depends: [not-dumbvm-vm]
sys161:
ram: 4M
---
Expand Down
2 changes: 1 addition & 1 deletion test161/tests/vm/matmult.t
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: "Matrix Multiplication"
description: >
Test page faults by performing matrix multiplication on a large array.
tags: [vm]
depends: [not-dumbvm-paging]
depends: [not-dumbvm-vm]
sys161:
ram: 2M
---
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: "Smarter VM 2"
description: >
Test whether you are using dumbvm by running the huge program,
which dumbvm cannot run.
tags: [vm, not-dumbvm-paging]
tags: [vm, not-dumbvm-vm]
depends: [console, not-dumbvm]
sys161:
ram: 4M
Expand Down
2 changes: 1 addition & 1 deletion test161/tests/vm/palin.t
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ description: >
Test page faults by ensuring a known palindrone stored in static
memory is actually a palindrone.
tags: [vm]
depends: [not-dumbvm-paging]
depends: [not-dumbvm-vm]
---
| p /testbin/palin
2 changes: 1 addition & 1 deletion test161/tests/vm/parallelvm.t
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: >
Stress tests your VM by performing various matrix computations in
multiple concurrent processes.
tags: [vm]
depends: [not-dumbvm-paging]
depends: [not-dumbvm-vm]
sys161:
cpus: 2
ram: 4M
Expand Down
2 changes: 1 addition & 1 deletion test161/tests/vm/quinthuge.t
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: "Quint Huge"
description: >
Run five concurent copies of huge.
tags: [vm]
depends: [not-dumbvm-paging]
depends: [not-dumbvm-vm]
sys161:
cpus: 2
ram: 12M
Expand Down
2 changes: 1 addition & 1 deletion test161/tests/vm/quintmat.t
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: "Quint Matrix Mult"
description: >
Run five concurent copies of matmult.
tags: [vm]
depends: [not-dumbvm-paging]
depends: [not-dumbvm-vm]
sys161:
cpus: 2
ram: 8M
Expand Down
2 changes: 1 addition & 1 deletion test161/tests/vm/quintsort.t
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: "Quint Sort"
description: >
Run five concurent copies of sort.
tags: [vm]
depends: [not-dumbvm-paging]
depends: [not-dumbvm-vm]
sys161:
cpus: 2
ram: 8M
Expand Down
2 changes: 1 addition & 1 deletion test161/tests/vm/sbrk-badcall.t
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ name: "sbrk Badcall"
description: >
"Tests sbrk error conditions"
tags: [sbrk]
depends: [not-dumbvm-paging, shell]
depends: [not-dumbvm-vm, shell]
---
$ /testbin/badcall h
2 changes: 1 addition & 1 deletion test161/tests/vm/sbrktest.t
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: >
"Test various properites of your vm's heap management using
the sbrk() system call."
tags: [sbrk]
depends: [not-dumbvm-paging, shell]
depends: [not-dumbvm-vm, shell]
sys161:
ram: 4M
---
Expand Down
2 changes: 1 addition & 1 deletion test161/tests/vm/sort.t
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: "Sort Test"
description: >
Test page fault handling by sorting a large array.
tags: [vm]
depends: [not-dumbvm-paging]
depends: [not-dumbvm-vm]
sys161:
ram: 2M
---
Expand Down
17 changes: 17 additions & 0 deletions test161/tests/vm/stability/forkbomb.t
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
name: "Calm Like a Fork Bomb (VM)"
tags: [stability-vm]
depends: [console, not-dumbvm-vm]
sys161:
ram: 2M
monitor:
progresstimeout: 40.0
user:
enablemin: true
min: 0.001
max: 1.0
kernel:
enablemin: true
min: 0.01
---
p /testbin/forkbomb
4 changes: 2 additions & 2 deletions test161/tests/vm/stability/vm-stability.t
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
name: "VM Stability Test"
description:
Runs various VM tests to test for synchronization issues.
tags: [stability]
depends: [shell, not-dumbvm-paging]
tags: [stability-vm]
depends: [/vm/bigfork.t, /vm/parallelvm.t, /vm/quintmat.t, /vm/zero.t, /vm/sort.t]
sys161:
ram: 8M
cpus: 4
Expand Down
2 changes: 1 addition & 1 deletion test161/tests/vm/stacktest.t
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: "Stack Test"
description: >
Tests your VM stack handling by running the bigexec test from ASST2.
tags: [vm]
depends: [not-dumbvm-paging, shell]
depends: [not-dumbvm-vm, shell]
sys161:
ram: 4M
---
Expand Down
2 changes: 1 addition & 1 deletion test161/tests/vm/zero.t
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: "Zero Test"
description: >
Tests that static memory regions are properly initialized.
tags: [vm]
depends: [not-dumbvm-paging]
depends: [not-dumbvm-vm]
sys161:
ram: 4M
---
Expand Down

0 comments on commit 854931e

Please sign in to comment.