Working on ASST2 targets.

This commit is contained in:
Geoffrey Challen
2016-03-01 11:44:44 -05:00
parent b65a333d34
commit 7fa97457a1
36 changed files with 107 additions and 101 deletions

View File

@@ -0,0 +1,8 @@
---
name: "Add Test"
description:
Adds two randomly generated numbers.
tags: [proc, fun]
depends: [shell]
---
$ /testbin/add

View File

@@ -0,0 +1,8 @@
---
name: "Argtest"
description:
Checks whether your kernel supports argument passing.
tags: [argtest, proc]
depends: [console]
---
$ /testbin/argtest

View File

@@ -0,0 +1,11 @@
---
name: "Bigexec Test"
description:
Tests to ensure that the argument passing logic is not hard-coded
to small argument lengths.
tags: [proc]
depends: [shell, /asst2/process/argtest.t]
sys161:
ram: 4M
---
$ /testbin/bigexec

View File

@@ -0,0 +1,10 @@
---
name: "Close Test"
description: >
Tests sys_close by closing STDIN and a normal file.
tags: [syscalls,filesyscalls]
depends: [boot, /asst2/fs/opentest.t]
sys161:
ram: 512K
---
p /testbin/closetest

View File

@@ -0,0 +1,10 @@
---
name: "Console Test"
description: >
Make sure that the console works.
tags: [console]
depends: [boot]
sys161:
ram: 512K
---
p /testbin/consoletest

View File

@@ -0,0 +1,11 @@
---
name: "Factorial Test"
description:
Attempts to calculate factorial by recursive replacing the current process
with the number computed thus far.
tags: [proc, fun]
depends: [shell]
sys161:
ram: 4M
---
$ /testbin/factorial

View File

@@ -0,0 +1,13 @@
---
name: "Fileonly Test"
description: >
Tests sys_{open,close,read,write,lseek}. Opens a file, writes 512
bytes, skips 512 bytes and writes another 512 bytes (odd steps). Seeks
back to beginning and writes the even steps. Then seeks back to the
beginning and verifies that the contents are correct.
tags: [syscalls,filesyscalls]
depends: [console, /asst2/fs/readwritetest.t,]
sys161:
ram: 512K
---
p /testbin/fileonlytest

View File

@@ -0,0 +1,10 @@
---
name: "Fork Test"
description: >
Test that fork works.
tags: [syscalls,procsyscalls]
depends: [console, /asst2/fs/readwritetest.t]
sys161:
ram: 4M
---
p /testbin/forktest

View File

@@ -0,0 +1,10 @@
---
name: "Open Test"
description: >
Tests sys_open by attempting to open an existing file.
tags: [syscalls,filesyscalls]
depends: [boot]
sys161:
ram: 512K
---
p /testbin/opentest

View File

@@ -0,0 +1,10 @@
---
name: "Read and Write Test"
description: >
Tests sys_read and sys_write by reading and writing to a file.
tags: [syscalls,filesyscalls]
depends: [/asst2/fs/opentest.t]
sys161:
ram: 512K
---
p /testbin/readwritetest

View File

@@ -0,0 +1,11 @@
---
name: "Redirect Test"
description: >
Tests sys_dup2. Opens a file handle, then forks a new process which
manipulates the file table.
tags: [syscalls,filesyscalls]
depends: [/asst2/process/forktest.t]
sys161:
ram: 512K
---
p /testbin/redirect

View File

@@ -0,0 +1,13 @@
---
name: "Shell Test"
description:
Tests whether the shell works by running /testbin/consoletest in the shell.
The shell test tries to identify a race condition between the shell and the
program that the shell is trying to run.
tags: [syscalls,procsyscalls,shell]
depends: [console]
sys161:
ram: 2M
---
$ /testbin/shelltest
$ /testbin/shelltest

View File

@@ -0,0 +1,11 @@
---
name: "Sparsefile Test"
description: >
Tests sys_lseek by writing one byte of data after skipping the beginning of
an empty file and then attempting to read this byte.
tags: [syscalls,filesyscalls]
depends: [shell, /asst2/fs/fileonlytest.t]
sys161:
ram: 512K
---
$ /testbin/sparsefile test 1048