test161: Adding assignment 1 commands, tests, and targets
This commit is contained in:
parent
0bdd3681c6
commit
2b0c91ff4b
38
test161/commands/sync.tc
Normal file
38
test161/commands/sync.tc
Normal file
@ -0,0 +1,38 @@
|
|||||||
|
---
|
||||||
|
templates:
|
||||||
|
- name: sem1
|
||||||
|
- name: lt1
|
||||||
|
- name: lt2
|
||||||
|
panics: yes
|
||||||
|
output:
|
||||||
|
- text: "lt2: Should panic..."
|
||||||
|
- name: lt3
|
||||||
|
panics: yes
|
||||||
|
output:
|
||||||
|
- text: "lt3: Should panic..."
|
||||||
|
- name: cvt1
|
||||||
|
- name: cvt2
|
||||||
|
- name: cvt3
|
||||||
|
panics: yes
|
||||||
|
output:
|
||||||
|
- text: "cvt3: Should panic..."
|
||||||
|
- name: cvt4
|
||||||
|
panics: yes
|
||||||
|
output:
|
||||||
|
- text: "cvt4: Should panic..."
|
||||||
|
- name: rwt1
|
||||||
|
- name: rwt2
|
||||||
|
- name: rwt3
|
||||||
|
panics: yes
|
||||||
|
output:
|
||||||
|
- text: "rwt3: Should panic..."
|
||||||
|
- name: rwt4
|
||||||
|
panics: yes
|
||||||
|
output:
|
||||||
|
- text: "rwt4: Should panic..."
|
||||||
|
- name: rwt5
|
||||||
|
panics: yes
|
||||||
|
output:
|
||||||
|
- text: "rwt5: Should panic..."
|
||||||
|
- name: sp1
|
||||||
|
- name: sp2
|
35
test161/targets/asst.tt
Normal file
35
test161/targets/asst.tt
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
---
|
||||||
|
name: asst1
|
||||||
|
version: 1
|
||||||
|
points: 50
|
||||||
|
type: asst
|
||||||
|
kconfig: ASST1
|
||||||
|
tests:
|
||||||
|
- id: sync/lt1.t
|
||||||
|
points: 8
|
||||||
|
- id: sync/lt2.t
|
||||||
|
points: 1
|
||||||
|
- id: sync/lt3.t
|
||||||
|
points: 1
|
||||||
|
- id: sync/cvt1.t
|
||||||
|
points: 4
|
||||||
|
- id: sync/cvt2.t
|
||||||
|
points: 4
|
||||||
|
- id: sync/cvt3.t
|
||||||
|
points: 1
|
||||||
|
- id: sync/cvt4.t
|
||||||
|
points: 1
|
||||||
|
- id: sync/rwt1.t
|
||||||
|
points: 5
|
||||||
|
- id: sync/rwt2.t
|
||||||
|
points: 2
|
||||||
|
- id: sync/rwt3.t
|
||||||
|
points: 1
|
||||||
|
- id: sync/rwt4.t
|
||||||
|
points: 1
|
||||||
|
- id: sync/rwt5.t
|
||||||
|
points: 1
|
||||||
|
- id: syncprobs/sp1.t
|
||||||
|
points: 10
|
||||||
|
- id: syncprobs/sp2.t
|
||||||
|
points: 10
|
11
test161/tests/boot.t
Normal file
11
test161/tests/boot.t
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
---
|
||||||
|
name: Kernel Boot
|
||||||
|
tags:
|
||||||
|
- boot
|
||||||
|
stat:
|
||||||
|
resolution: 0.01
|
||||||
|
window: 100
|
||||||
|
misc:
|
||||||
|
prompttimeout: 30.0
|
||||||
|
---
|
||||||
|
q
|
9
test161/tests/sync/cvt1.t
Normal file
9
test161/tests/sync/cvt1.t
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
---
|
||||||
|
name: "CV Test 1"
|
||||||
|
tags:
|
||||||
|
- sync
|
||||||
|
- cv
|
||||||
|
depends:
|
||||||
|
- lt1.t
|
||||||
|
---
|
||||||
|
cvt1
|
9
test161/tests/sync/cvt2.t
Normal file
9
test161/tests/sync/cvt2.t
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
---
|
||||||
|
name: "CV Test 2"
|
||||||
|
tags:
|
||||||
|
- sync
|
||||||
|
- cv
|
||||||
|
depends:
|
||||||
|
- lt1.t
|
||||||
|
---
|
||||||
|
cvt2
|
9
test161/tests/sync/cvt3.t
Normal file
9
test161/tests/sync/cvt3.t
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
---
|
||||||
|
name: "CV Test 3"
|
||||||
|
tags:
|
||||||
|
- sync
|
||||||
|
- cv
|
||||||
|
depends:
|
||||||
|
- boot
|
||||||
|
---
|
||||||
|
cvt3
|
9
test161/tests/sync/cvt4.t
Normal file
9
test161/tests/sync/cvt4.t
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
---
|
||||||
|
name: "CV Test 4"
|
||||||
|
tags:
|
||||||
|
- sync
|
||||||
|
- cv
|
||||||
|
depends:
|
||||||
|
- boot
|
||||||
|
---
|
||||||
|
cvt4
|
9
test161/tests/sync/lt1.t
Normal file
9
test161/tests/sync/lt1.t
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
---
|
||||||
|
name: "Lock Test 1"
|
||||||
|
tags:
|
||||||
|
- sync
|
||||||
|
- locks
|
||||||
|
depends:
|
||||||
|
- boot
|
||||||
|
---
|
||||||
|
lt1
|
9
test161/tests/sync/lt2.t
Normal file
9
test161/tests/sync/lt2.t
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
---
|
||||||
|
name: "Lock Test 2"
|
||||||
|
tags:
|
||||||
|
- sync
|
||||||
|
- locks
|
||||||
|
depends:
|
||||||
|
- boot
|
||||||
|
---
|
||||||
|
lt2
|
9
test161/tests/sync/lt3.t
Normal file
9
test161/tests/sync/lt3.t
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
---
|
||||||
|
name: "Lock Test 3"
|
||||||
|
tags:
|
||||||
|
- sync
|
||||||
|
- locks
|
||||||
|
depends:
|
||||||
|
- boot
|
||||||
|
---
|
||||||
|
lt3
|
9
test161/tests/sync/rwt1.t
Normal file
9
test161/tests/sync/rwt1.t
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
---
|
||||||
|
name: "RW Lock Test 1"
|
||||||
|
tags:
|
||||||
|
- sync
|
||||||
|
- rwlocks
|
||||||
|
depends:
|
||||||
|
- boot
|
||||||
|
---
|
||||||
|
rwt1
|
9
test161/tests/sync/rwt2.t
Normal file
9
test161/tests/sync/rwt2.t
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
---
|
||||||
|
name: "RW Lock Test 2"
|
||||||
|
tags:
|
||||||
|
- sync
|
||||||
|
- rwlocks
|
||||||
|
depends:
|
||||||
|
- boot
|
||||||
|
---
|
||||||
|
rwt2
|
9
test161/tests/sync/rwt3.t
Normal file
9
test161/tests/sync/rwt3.t
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
---
|
||||||
|
name: "RW Lock Test 3"
|
||||||
|
tags:
|
||||||
|
- sync
|
||||||
|
- rwlocks
|
||||||
|
depends:
|
||||||
|
- boot
|
||||||
|
---
|
||||||
|
rwt3
|
9
test161/tests/sync/rwt4.t
Normal file
9
test161/tests/sync/rwt4.t
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
---
|
||||||
|
name: "RW Lock Test 4"
|
||||||
|
tags:
|
||||||
|
- sync
|
||||||
|
- rwlocks
|
||||||
|
depends:
|
||||||
|
- boot
|
||||||
|
---
|
||||||
|
rwt4
|
9
test161/tests/sync/rwt5.t
Normal file
9
test161/tests/sync/rwt5.t
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
---
|
||||||
|
name: "RW Lock Test 5"
|
||||||
|
tags:
|
||||||
|
- sync
|
||||||
|
- rwlocks
|
||||||
|
depends:
|
||||||
|
- boot
|
||||||
|
---
|
||||||
|
rwt5
|
9
test161/tests/sync/sem1.t
Normal file
9
test161/tests/sync/sem1.t
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
---
|
||||||
|
name: "Semaphore Test"
|
||||||
|
tags:
|
||||||
|
- sync
|
||||||
|
- semaphore
|
||||||
|
depends:
|
||||||
|
- boot
|
||||||
|
---
|
||||||
|
sem1
|
10
test161/tests/syncprobs/sp1.t
Normal file
10
test161/tests/syncprobs/sp1.t
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
---
|
||||||
|
name: "Whalemating Test"
|
||||||
|
tags:
|
||||||
|
- syncprobs
|
||||||
|
depends:
|
||||||
|
- boot
|
||||||
|
- /sync/lt1.t
|
||||||
|
- /sync/cvt1.t
|
||||||
|
---
|
||||||
|
sp1
|
10
test161/tests/syncprobs/sp2.t
Normal file
10
test161/tests/syncprobs/sp2.t
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
---
|
||||||
|
name: "Stoplight Test"
|
||||||
|
tags:
|
||||||
|
- syncprobs
|
||||||
|
depends:
|
||||||
|
- boot
|
||||||
|
- /sync/lt1.t
|
||||||
|
- /sync/cvt1.t
|
||||||
|
---
|
||||||
|
sp2
|
8
test161/tests/threads/tt1.t
Normal file
8
test161/tests/threads/tt1.t
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
---
|
||||||
|
name: "Thread Test 1"
|
||||||
|
tags:
|
||||||
|
- threads
|
||||||
|
depends:
|
||||||
|
- boot
|
||||||
|
---
|
||||||
|
tt1
|
8
test161/tests/threads/tt2.t
Normal file
8
test161/tests/threads/tt2.t
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
---
|
||||||
|
name: "Thread Test 2"
|
||||||
|
tags:
|
||||||
|
- threads
|
||||||
|
depends:
|
||||||
|
- boot
|
||||||
|
---
|
||||||
|
tt2
|
8
test161/tests/threads/tt3.t
Normal file
8
test161/tests/threads/tt3.t
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
---
|
||||||
|
name: "Thread Test 3"
|
||||||
|
tags:
|
||||||
|
- threads
|
||||||
|
depends:
|
||||||
|
- boot
|
||||||
|
---
|
||||||
|
tt3
|
Loading…
x
Reference in New Issue
Block a user