test161: Adding assignment 1 commands, tests, and targets

This commit is contained in:
Scott Haseley 2016-02-16 01:28:22 -05:00
parent 0bdd3681c6
commit 2b0c91ff4b
21 changed files with 245 additions and 0 deletions

38
test161/commands/sync.tc Normal file
View 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
View 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
View File

@ -0,0 +1,11 @@
---
name: Kernel Boot
tags:
- boot
stat:
resolution: 0.01
window: 100
misc:
prompttimeout: 30.0
---
q

View File

@ -0,0 +1,9 @@
---
name: "CV Test 1"
tags:
- sync
- cv
depends:
- lt1.t
---
cvt1

View File

@ -0,0 +1,9 @@
---
name: "CV Test 2"
tags:
- sync
- cv
depends:
- lt1.t
---
cvt2

View File

@ -0,0 +1,9 @@
---
name: "CV Test 3"
tags:
- sync
- cv
depends:
- boot
---
cvt3

View File

@ -0,0 +1,9 @@
---
name: "CV Test 4"
tags:
- sync
- cv
depends:
- boot
---
cvt4

9
test161/tests/sync/lt1.t Normal file
View File

@ -0,0 +1,9 @@
---
name: "Lock Test 1"
tags:
- sync
- locks
depends:
- boot
---
lt1

9
test161/tests/sync/lt2.t Normal file
View File

@ -0,0 +1,9 @@
---
name: "Lock Test 2"
tags:
- sync
- locks
depends:
- boot
---
lt2

9
test161/tests/sync/lt3.t Normal file
View File

@ -0,0 +1,9 @@
---
name: "Lock Test 3"
tags:
- sync
- locks
depends:
- boot
---
lt3

View File

@ -0,0 +1,9 @@
---
name: "RW Lock Test 1"
tags:
- sync
- rwlocks
depends:
- boot
---
rwt1

View File

@ -0,0 +1,9 @@
---
name: "RW Lock Test 2"
tags:
- sync
- rwlocks
depends:
- boot
---
rwt2

View File

@ -0,0 +1,9 @@
---
name: "RW Lock Test 3"
tags:
- sync
- rwlocks
depends:
- boot
---
rwt3

View File

@ -0,0 +1,9 @@
---
name: "RW Lock Test 4"
tags:
- sync
- rwlocks
depends:
- boot
---
rwt4

View File

@ -0,0 +1,9 @@
---
name: "RW Lock Test 5"
tags:
- sync
- rwlocks
depends:
- boot
---
rwt5

View File

@ -0,0 +1,9 @@
---
name: "Semaphore Test"
tags:
- sync
- semaphore
depends:
- boot
---
sem1

View File

@ -0,0 +1,10 @@
---
name: "Whalemating Test"
tags:
- syncprobs
depends:
- boot
- /sync/lt1.t
- /sync/cvt1.t
---
sp1

View File

@ -0,0 +1,10 @@
---
name: "Stoplight Test"
tags:
- syncprobs
depends:
- boot
- /sync/lt1.t
- /sync/cvt1.t
---
sp2

View File

@ -0,0 +1,8 @@
---
name: "Thread Test 1"
tags:
- threads
depends:
- boot
---
tt1

View File

@ -0,0 +1,8 @@
---
name: "Thread Test 2"
tags:
- threads
depends:
- boot
---
tt2

View File

@ -0,0 +1,8 @@
---
name: "Thread Test 3"
tags:
- threads
depends:
- boot
---
tt3