Desktop/xinu_mips-1.0.2.tar/xinu_mips-1.0.2/shell/xsh_testsuite.c File Reference

#include <kernel.h>
#include <proc.h>
#include <xc.h>

Include dependency graph for xsh_testsuite.c:

Go to the source code of this file.

Defines

#define NTESTS   9

Functions

local testItem (ushort, ushort, ushort, ushort)
int test_bigargs (int, char **)
int test_schedule (int, char **)
int test_recursion (int, char **)
int test_semaphore (int, char **)
int test_semaphore2 (int, char **)
int test_semaphore3 (int, char **)
int test_semaphore4 (int, char **)
int test_procQueue (int, char **)
int test_deltaQueue (int, char **)
command xsh_testsuite (ushort stdin, ushort stdout, ushort stderr, ushort nargs, char *args[])


Detailed Description

xsh_testsuite

Id
xsh_testsuite.c 242 2007-07-13 22:28:23Z brylow

Definition in file xsh_testsuite.c.


Define Documentation

#define NTESTS   9

Definition at line 13 of file xsh_testsuite.c.

Referenced by xsh_testsuite().


Function Documentation

int test_bigargs ( int  ,
char **   
)

Definition at line 37 of file test-hw4.c.

References bigargs(), create(), INITSTK, OK, printf, ready(), RESCHED_YES, testFail(), and testPass().

Referenced by testItem().

int test_deltaQueue ( int  ,
char **   
)

int test_procQueue ( int  ,
char **   
)

int test_recursion ( int  ,
char **   
)

Definition at line 27 of file test-hw5.c.

References create(), FALSE, INITSTK, OK, printf, ready(), resched(), t5, testFail(), testPass(), TIMES, and TRUE.

Referenced by testItem().

int test_schedule ( int  ,
char **   
)

Definition at line 61 of file test-hw4.c.

References create(), FALSE, INITSTK, OK, printf, ready(), resched(), t4, testFail(), testPass(), TIMES, and TRUE.

Referenced by testItem().

int test_semaphore ( int  ,
char **   
)

int test_semaphore2 ( int  ,
char **   
)

int test_semaphore3 ( int  ,
char **   
)

int test_semaphore4 ( int  ,
char **   
)

local testItem ( ushort  stdin,
ushort  stdout,
ushort  stderr,
ushort  testnum 
)

command xsh_testsuite ( ushort  stdin,
ushort  stdout,
ushort  stderr,
ushort  nargs,
char *  args[] 
)

Shell command (testsuite) provides a menu of standard XINU component tests.

Parameters:
stdin descriptor of input device
stdout descriptor of output device
stderr descriptor of error device
args array of arguments
Returns:
OK for success, SYSERR for syntax error

Definition at line 35 of file xsh_testsuite.c.

References atol(), fprintf(), NTESTS, OK, strncmp(), SYSERR, and testItem().


Generated on Thu Oct 9 22:34:57 2008 for xinu by  doxygen 1.5.5