ASST2 target cleanup.

This commit is contained in:
Geoffrey Challen 2016-03-01 13:11:30 -05:00
parent 58315a9286
commit 4bbcf5839e
25 changed files with 83 additions and 89 deletions

View File

@ -5,7 +5,7 @@ type: asst
kconfig: ASST2 kconfig: ASST2
userland: true userland: true
tests: tests:
# Make sure the console works # Make sure the console works (10 points)
- id: syscalls/consoletest.t - id: syscalls/consoletest.t
points: 10 points: 10
# File system system calls (50 points) # File system system calls (50 points)
@ -35,26 +35,26 @@ tests:
- id: syscalls/add.t - id: syscalls/add.t
points: 5 points: 5
# Stability tests (40 points) # Stability tests (40 points)
# Bad calls # Bad calls (10 points)
- id: stability/badcall/badcall-open.t - id: stability/badcall/badcall-open.t
points: 3 points: 1
- id: stability/badcall/badcall-close.t - id: stability/badcall/badcall-close.t
points: 3 points: 1
- id: stability/badcall/badcall-read.t - id: stability/badcall/badcall-read.t
points: 3 points: 1
- id: stability/badcall/badcall-write.t - id: stability/badcall/badcall-write.t
points: 3 points: 1
- id: stability/badcall/badcall-lseek.t - id: stability/badcall/badcall-lseek.t
points: 3 points: 1
- id: stability/badcall/badcall-dup2.t - id: stability/badcall/badcall-dup2.t
points: 3 points: 1
- id: stability/badcall/badcall-execv.t - id: stability/badcall/badcall-execv.t
points: 5 points: 2
- id: stability/badcall/badcall-waitpid.t - id: stability/badcall/badcall-waitpid.t
points: 5 points: 2
# crash # crash
- id: stability/crash/crash-allS.t - id: stability/crash/crash-allS.t
points: 2 points: 5
# randcall # randcall
- id: stability/randcall.t - id: stability/randcall.t
points: 5 points: 5
@ -63,11 +63,11 @@ tests:
args: args:
- "-f" - "-f"
- "-c 100" - "-c 100"
- "-r {{randInt 1 4294967295}}" - "-r 421"
- "2" - "2"
# forkbomb # forkbomb
- id: stability/forkbomb.t - id: stability/forkbomb.t
points: 10 points: 10
# forktest # forktest
- id: stability/forktest-stability.t - id: stability/forktest-stability.t
points: 5 points: 10

View File

@ -1,8 +1,7 @@
--- ---
name: "Badcall-close Test" name: "Bad Close"
description: description:
Tests whether close syscall is implemented correctly by invoking it in all Stability test for sys_close.
possible wrong ways.
tags: [badcall,stability] tags: [badcall,stability]
depends: [shell] depends: [shell]
--- ---

View File

@ -1,8 +1,7 @@
--- ---
name: "Badcall-dup2 Test" name: "Bad Dup"
description: description:
Tests whether dup2 syscall is implemented correctly by invoking it in all Stability test for sys_dup2.
possible wrong ways.
tags: [badcall,stability] tags: [badcall,stability]
depends: [shell] depends: [shell]
--- ---

View File

@ -1,11 +1,10 @@
--- ---
name: "Badcall-execv Test" name: "Bad Exec"
description: description:
Tests whether execv syscall is implemented correctly by invoking it in all Stability test for sys_exec.
possible wrong ways.
tags: [badcall,stability] tags: [badcall,stability]
depends: [shell] depends: [shell]
sys161: sys161:
ram: 4M ram: 512K
--- ---
$ /testbin/badcall a $ /testbin/badcall a

View File

@ -1,9 +1,10 @@
--- ---
name: "Badcall-lseek Test" name: "Bad Seek"
description: description:
Tests whether lseek syscall is implemented correctly by invoking it in all Stability test for sys_lseek.
possible wrong ways.
tags: [badcall,stability] tags: [badcall,stability]
depends: [shell] depends: [shell]
sys161:
ram: 512K
--- ---
$ /testbin/badcall j $ /testbin/badcall j

View File

@ -1,9 +1,10 @@
--- ---
name: "Badcall-open Test" name: "Bad Open"
description: description:
Tests whether open syscall is implemented correctly by invoking it in all Stability test for sys_open.
possible wrong ways.
tags: [badcall,stability] tags: [badcall,stability]
depends: [shell] depends: [shell]
sys161:
ram: 512K
--- ---
$ /testbin/badcall c $ /testbin/badcall c

View File

@ -1,8 +1,7 @@
--- ---
name: "Badcall-read Test" name: "Bad Read"
description: description:
Tests whether read syscall is implemented correctly by invoking it in all Stability test for sys_read.
possible wrong ways.
tags: [badcall,stability] tags: [badcall,stability]
depends: [shell] depends: [shell]
--- ---

View File

@ -1,11 +1,10 @@
--- ---
name: "Badcall-waitpid Test" name: "Bad Wait"
description: description:
Tests whether waitpid syscall is implemented correctly by invoking it in all Stability test for sys_wait.
possible wrong ways.
tags: [badcall,stability] tags: [badcall,stability]
depends: [shell] depends: [shell]
sys161: sys161:
ram: 4M ram: 512K
--- ---
$ /testbin/badcall b $ /testbin/badcall b

View File

@ -1,9 +1,10 @@
--- ---
name: "Badcall-write Test" name: "Bad Write"
description: description:
Tests whether write syscall is implemented correctly by invoking it in all Stability test for sys_write.
possible wrong ways.
tags: [badcall,stability] tags: [badcall,stability]
depends: [shell] depends: [shell]
sys161:
ram: 512K
--- ---
$ /testbin/badcall e $ /testbin/badcall e

View File

@ -1,12 +1,10 @@
--- ---
name: "Crash-all Shell Test" name: "Crash"
description: description: >
Tests whether your system correctly handles a variety of Tests whether your system correctly handles a variety of bad process
illegal attempts from userspace processes to access resources that behavior.
do not belong to it. Please see userland/testbin/crash for more info. tags: [crash,stability]
Runs it from the shell. depends: [shell,sys_fork]
tags: [stability, crash, crash-fork]
depends: [shell, /asst2/process/forktest.t]
sys161: sys161:
ram: 4M ram: 4M
--- ---

View File

@ -1,5 +1,5 @@
--- ---
name: "Forkbomb" name: "Calm Like a Fork Bomb"
tags: [stability] tags: [stability]
depends: [console] depends: [console]
sys161: sys161:

View File

@ -1,9 +1,9 @@
--- ---
name: "Forktest Stability Test" name: "Fork Stability Test"
description: description:
Runs forktest 5 times to check for synchronization issues. Runs forktest 5 times to check for synchronization issues.
tags: [stability] tags: [stability]
depends: [shell, /asst2/process/forktest.t] depends: [shell]
sys161: sys161:
ram: 16M ram: 16M
--- ---

View File

@ -1,12 +1,10 @@
--- ---
name: "Randcall Test" name: "Randcall Test"
description: description: >
Invokes system calls on random with random arguments. Invokes system calls with random arguments.
Tests whether your system can gracefully recover from tags: [stability]
bad system calls.
tags: [randcall-2, stability]
depends: [shell] depends: [shell]
sys161: sys161:
ram: 16M ram: 16M
--- ---
$ /testbin/randcall -f -c 1000 -r 30 2 $ /testbin/randcall -f -c 100 -r 421 2

View File

@ -2,7 +2,7 @@
name: "Add Test" name: "Add Test"
description: description:
Adds two randomly generated numbers. Adds two randomly generated numbers.
tags: [proc, fun] tags: [sys_exec,procsyscalls,syscalls]
depends: [shell] depends: [shell]
--- ---
$ /testbin/add $ /testbin/add

View File

@ -2,7 +2,7 @@
name: "Argtest" name: "Argtest"
description: description:
Checks whether your kernel supports argument passing. Checks whether your kernel supports argument passing.
tags: [argtest, proc] tags: [sys_exec,procsyscalls,syscalls]
depends: [console] depends: [shell]
--- ---
$ /testbin/argtest $ /testbin/argtest

View File

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

View File

@ -2,8 +2,8 @@
name: "Close Test" name: "Close Test"
description: > description: >
Tests sys_close by closing STDIN and a normal file. Tests sys_close by closing STDIN and a normal file.
tags: [syscalls,filesyscalls] tags: [sys_close,filesyscalls,syscalls]
depends: [boot, /asst2/fs/opentest.t] depends: [console,sys_open]
sys161: sys161:
ram: 512K ram: 512K
--- ---

View File

@ -3,7 +3,7 @@ name: "Factorial Test"
description: description:
Attempts to calculate factorial by recursive replacing the current process Attempts to calculate factorial by recursive replacing the current process
with the number computed thus far. with the number computed thus far.
tags: [proc, fun] tags: [sys_exec,procsyscalls,syscalls]
depends: [shell] depends: [shell]
sys161: sys161:
ram: 4M ram: 4M

View File

@ -5,8 +5,8 @@ description: >
bytes, skips 512 bytes and writes another 512 bytes (odd steps). Seeks 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 back to beginning and writes the even steps. Then seeks back to the
beginning and verifies that the contents are correct. beginning and verifies that the contents are correct.
tags: [syscalls,filesyscalls] tags: [filesyscalls,syscalls]
depends: [console, /asst2/fs/readwritetest.t,] depends: [console]
sys161: sys161:
ram: 512K ram: 512K
--- ---

View File

@ -2,8 +2,8 @@
name: "Fork Test" name: "Fork Test"
description: > description: >
Test that fork works. Test that fork works.
tags: [syscalls,procsyscalls] tags: [sys_fork,procsyscalls,syscalls]
depends: [console,/asst2/fs/readwritetest.t] depends: [console]
sys161: sys161:
ram: 4M ram: 4M
--- ---

View File

@ -2,8 +2,8 @@
name: "Open Test" name: "Open Test"
description: > description: >
Tests sys_open by attempting to open an existing file. Tests sys_open by attempting to open an existing file.
tags: [syscalls,filesyscalls] tags: [sys_open,filesyscalls,syscalls]
depends: [boot] depends: [console]
sys161: sys161:
ram: 512K ram: 512K
--- ---

View File

@ -2,8 +2,8 @@
name: "Read and Write Test" name: "Read and Write Test"
description: > description: >
Tests sys_read and sys_write by reading and writing to a file. Tests sys_read and sys_write by reading and writing to a file.
tags: [syscalls,filesyscalls] tags: [sys_read,sys_write,filesyscalls,syscalls]
depends: [/asst2/fs/opentest.t] depends: [console,sys_open]
sys161: sys161:
ram: 512K ram: 512K
--- ---

View File

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

View File

@ -4,10 +4,10 @@ description:
Tests whether the shell works by running /testbin/consoletest in the shell. 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 The shell test tries to identify a race condition between the shell and the
program that the shell is trying to run. program that the shell is trying to run.
tags: [syscalls,procsyscalls,shell] tags: [shell,procsyscalls,syscalls]
depends: [console] depends: [console]
sys161: sys161:
ram: 2M ram: 1M
--- ---
$ /testbin/shelltest $ /testbin/shelltest
$ /testbin/shelltest $ /testbin/shelltest

View File

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