Added test161 files for ASST2
This commit is contained in:
8
test161/tests/asst2/fs/closetest.t
Normal file
8
test161/tests/asst2/fs/closetest.t
Normal file
@@ -0,0 +1,8 @@
|
||||
---
|
||||
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
|
8
test161/tests/asst2/fs/consoletest.t
Normal file
8
test161/tests/asst2/fs/consoletest.t
Normal file
@@ -0,0 +1,8 @@
|
||||
---
|
||||
name: "Console Test"
|
||||
tags: [console]
|
||||
depends: [boot]
|
||||
sys161:
|
||||
ram: 4M
|
||||
---
|
||||
p /testbin/consoletest
|
13
test161/tests/asst2/fs/fileonlytest.t
Normal file
13
test161/tests/asst2/fs/fileonlytest.t
Normal file
@@ -0,0 +1,13 @@
|
||||
---
|
||||
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
|
8
test161/tests/asst2/fs/opentest.t
Normal file
8
test161/tests/asst2/fs/opentest.t
Normal file
@@ -0,0 +1,8 @@
|
||||
---
|
||||
name: "Open Test"
|
||||
description:
|
||||
Tests open syscall. Attempts to open a file that is known to exist.
|
||||
tags: [fs]
|
||||
depends: [boot]
|
||||
---
|
||||
p /testbin/opentest
|
9
test161/tests/asst2/fs/readwritetest.t
Normal file
9
test161/tests/asst2/fs/readwritetest.t
Normal file
@@ -0,0 +1,9 @@
|
||||
---
|
||||
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
|
11
test161/tests/asst2/fs/redirect.t
Normal file
11
test161/tests/asst2/fs/redirect.t
Normal file
@@ -0,0 +1,11 @@
|
||||
---
|
||||
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
|
11
test161/tests/asst2/fs/sparsefile.t
Normal file
11
test161/tests/asst2/fs/sparsefile.t
Normal file
@@ -0,0 +1,11 @@
|
||||
---
|
||||
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
|
Reference in New Issue
Block a user