Working on ASST2 targets.
This commit is contained in:
@@ -1,8 +0,0 @@
|
||||
---
|
||||
name: "Close Test"
|
||||
description:
|
||||
Tests close syscall. Attempts to close stdin and a normal file.
|
||||
tags: [fs]
|
||||
depends: [boot, /asst2/fs/opentest.t]
|
||||
---
|
||||
p /testbin/closetest
|
@@ -1,13 +0,0 @@
|
||||
---
|
||||
name: "Fileonly Test"
|
||||
description:
|
||||
Tests open/close/read/write/lseek system calls. Opens file, writes 512
|
||||
bytes, skips 512 bytes and writes another 512 bytes(odd steps). Then seeks
|
||||
back to beginning, and writes the even steps. Then seeks back to the
|
||||
beginning and verifies that the contents are correct.
|
||||
tags: [fs]
|
||||
depends: [console, /asst2/fs/readwritetest.t,]
|
||||
sys161:
|
||||
ram: 4M
|
||||
---
|
||||
p /testbin/fileonlytest
|
@@ -1,8 +0,0 @@
|
||||
---
|
||||
name: "Open Test"
|
||||
description:
|
||||
Tests open syscall. Attempts to open a file that is known to exist.
|
||||
tags: [fs]
|
||||
depends: [boot]
|
||||
---
|
||||
p /testbin/opentest
|
@@ -1,9 +0,0 @@
|
||||
---
|
||||
name: "Read-Write Test"
|
||||
description:
|
||||
Tests read and write syscalls. Attempts to write a file and then
|
||||
read it back.
|
||||
tags: [fs]
|
||||
depends: [/asst2/fs/opentest.t]
|
||||
---
|
||||
p /testbin/readwritetest
|
@@ -1,11 +0,0 @@
|
||||
---
|
||||
name: "Redirect Test"
|
||||
description:
|
||||
Tests dup2. Opens a file handle, forks a new process and manipulates the file
|
||||
table using dup2.
|
||||
tags: [fs]
|
||||
depends: [/asst2/process/forktest.t]
|
||||
sys161:
|
||||
ram: 4M
|
||||
---
|
||||
p /testbin/redirect
|
@@ -1,11 +0,0 @@
|
||||
---
|
||||
name: "Sparsefile Test"
|
||||
description:
|
||||
Tests lseek to write one byte of data after skipping the first x bytes
|
||||
in an empty file. Then attempts to read this byte.
|
||||
tags: [fs]
|
||||
depends: [shell, /asst2/fs/fileonlytest.t]
|
||||
sys161:
|
||||
ram: 2M
|
||||
---
|
||||
$ /testbin/sparsefile test 1048
|
10
test161/tests/syscalls/closetest.t
Normal file
10
test161/tests/syscalls/closetest.t
Normal 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
|
@@ -1,8 +1,10 @@
|
||||
---
|
||||
name: "Console Test"
|
||||
description: >
|
||||
Make sure that the console works.
|
||||
tags: [console]
|
||||
depends: [boot]
|
||||
sys161:
|
||||
ram: 4M
|
||||
ram: 512K
|
||||
---
|
||||
p /testbin/consoletest
|
13
test161/tests/syscalls/fileonlytest.t
Normal file
13
test161/tests/syscalls/fileonlytest.t
Normal 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
|
@@ -1,6 +1,8 @@
|
||||
---
|
||||
name: "Fork Test"
|
||||
tags: [proc]
|
||||
description: >
|
||||
Test that fork works.
|
||||
tags: [syscalls,procsyscalls]
|
||||
depends: [console, /asst2/fs/readwritetest.t]
|
||||
sys161:
|
||||
ram: 4M
|
10
test161/tests/syscalls/opentest.t
Normal file
10
test161/tests/syscalls/opentest.t
Normal 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
|
10
test161/tests/syscalls/readwritetest.t
Normal file
10
test161/tests/syscalls/readwritetest.t
Normal 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
|
11
test161/tests/syscalls/redirect.t
Normal file
11
test161/tests/syscalls/redirect.t
Normal 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
|
@@ -4,7 +4,7 @@ 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: [proc, shell]
|
||||
tags: [syscalls,procsyscalls,shell]
|
||||
depends: [console]
|
||||
sys161:
|
||||
ram: 2M
|
11
test161/tests/syscalls/sparsefile.t
Normal file
11
test161/tests/syscalls/sparsefile.t
Normal 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
|
Reference in New Issue
Block a user