init tests for simple xv6 project
This commit is contained in:
10
initial-xv6/test-getreadcount.sh
Executable file
10
initial-xv6/test-getreadcount.sh
Executable file
@@ -0,0 +1,10 @@
|
||||
#! /bin/bash
|
||||
|
||||
if ! [[ -d src ]]; then
|
||||
echo "src dir does not exist"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
../tester/run-tests.sh $*
|
||||
|
||||
|
||||
1
initial-xv6/tests/1.desc
Normal file
1
initial-xv6/tests/1.desc
Normal file
@@ -0,0 +1 @@
|
||||
simple test of system call
|
||||
0
initial-xv6/tests/1.err
Normal file
0
initial-xv6/tests/1.err
Normal file
1
initial-xv6/tests/1.out
Normal file
1
initial-xv6/tests/1.out
Normal file
@@ -0,0 +1 @@
|
||||
XV6_TEST_OUTPUT 0 1 1000
|
||||
1
initial-xv6/tests/1.rc
Normal file
1
initial-xv6/tests/1.rc
Normal file
@@ -0,0 +1 @@
|
||||
0
|
||||
1
initial-xv6/tests/1.run
Normal file
1
initial-xv6/tests/1.run
Normal file
@@ -0,0 +1 @@
|
||||
cd src; ../../tester/run-xv6-command.sh CPUS=1 Makefile.test test_1 | grep XV6_TEST_OUTPUT; cd ..
|
||||
1
initial-xv6/tests/2.desc
Normal file
1
initial-xv6/tests/2.desc
Normal file
@@ -0,0 +1 @@
|
||||
concurrency test; did you protect the counter with a lock?
|
||||
0
initial-xv6/tests/2.err
Normal file
0
initial-xv6/tests/2.err
Normal file
1
initial-xv6/tests/2.out
Normal file
1
initial-xv6/tests/2.out
Normal file
@@ -0,0 +1 @@
|
||||
XV6_TEST_OUTPUT 200000
|
||||
1
initial-xv6/tests/2.rc
Normal file
1
initial-xv6/tests/2.rc
Normal file
@@ -0,0 +1 @@
|
||||
0
|
||||
1
initial-xv6/tests/2.run
Normal file
1
initial-xv6/tests/2.run
Normal file
@@ -0,0 +1 @@
|
||||
cd src; ../../tester/run-xv6-command.sh CPUS=2 Makefile.test test_2 | grep XV6_TEST_OUTPUT; cd ..
|
||||
Reference in New Issue
Block a user