init tests for simple xv6 project

This commit is contained in:
Remzi Arpaci-Dusseau
2019-03-29 06:57:56 -05:00
parent 263afb4197
commit 1f2ee09b27
11 changed files with 18 additions and 0 deletions

View 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
View File

@@ -0,0 +1 @@
simple test of system call

0
initial-xv6/tests/1.err Normal file
View File

1
initial-xv6/tests/1.out Normal file
View File

@@ -0,0 +1 @@
XV6_TEST_OUTPUT 0 1 1000

1
initial-xv6/tests/1.rc Normal file
View File

@@ -0,0 +1 @@
0

1
initial-xv6/tests/1.run Normal file
View 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
View File

@@ -0,0 +1 @@
concurrency test; did you protect the counter with a lock?

0
initial-xv6/tests/2.err Normal file
View File

1
initial-xv6/tests/2.out Normal file
View File

@@ -0,0 +1 @@
XV6_TEST_OUTPUT 200000

1
initial-xv6/tests/2.rc Normal file
View File

@@ -0,0 +1 @@
0

1
initial-xv6/tests/2.run Normal file
View File

@@ -0,0 +1 @@
cd src; ../../tester/run-xv6-command.sh CPUS=2 Makefile.test test_2 | grep XV6_TEST_OUTPUT; cd ..