#include <kernel.h>
#include <proc.h>
#include <xc.h>
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[]) |
Definition in file xsh_testsuite.c.
#define NTESTS 9 |
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 ** | ||||
) |
Definition at line 10 of file test-dqueue.c.
References create(), dequeue(), EMPTY, FALSE, firstkey, freesem(), INITSTK, insertd(), isbadsem, kill(), newsem(), NULL, OK, printf, sentry::queue, semtab, sprintf(), SYSERR, testFail(), testPass(), and TRUE.
Referenced by testItem().
int test_procQueue | ( | int | , | |
char ** | ||||
) |
Definition at line 10 of file test-pqueue.c.
References create(), dequeue(), EMPTY, FALSE, firstkey, freesem(), INITSTK, insert(), isbadsem, kill(), newsem(), NULL, OK, printf, sentry::queue, semtab, sprintf(), SYSERR, testFail(), testPass(), and TRUE.
Referenced by testItem().
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 ** | ||||
) |
Definition at line 60 of file test-sem.c.
References create(), FALSE, freesem(), INITSTK, isbadsem, kill(), newsem(), OK, PRFREE, printf, PRWAIT, ready(), RESCHED_YES, signal(), sprintf(), test_checkProcState(), test_checkResult(), test_checkSemCount(), test_semWaiter(), testFail(), testPass(), and TRUE.
Referenced by testItem().
int test_semaphore2 | ( | int | , | |
char ** | ||||
) |
Definition at line 15 of file test-sem2.c.
References create(), FALSE, freesem(), INITSTK, isbadsem, kill(), newsem(), OK, PRFREE, printf, PRWAIT, ready(), RESCHED_NO, RESCHED_YES, signal(), sprintf(), test_checkProcState(), test_checkResult(), test_checkSemCount(), test_semWaiter(), testFail(), testPass(), and TRUE.
Referenced by testItem().
int test_semaphore3 | ( | int | , | |
char ** | ||||
) |
Definition at line 15 of file test-sem3.c.
References create(), FALSE, freesem(), INITSTK, isbadsem, kill(), newsem(), OK, PRFREE, printf, PRWAIT, ready(), RESCHED_NO, RESCHED_YES, signal(), sprintf(), test_checkProcState(), test_checkResult(), test_checkSemCount(), test_semWaiter(), testFail(), testPass(), and TRUE.
Referenced by testItem().
int test_semaphore4 | ( | int | , | |
char ** | ||||
) |
Definition at line 15 of file test-sem4.c.
References create(), FALSE, freesem(), INITSTK, isbadsem, kill(), newsem(), OK, PRFREE, printf, PRWAIT, ready(), RESCHED_YES, sprintf(), test_checkProcState(), test_checkResult(), test_checkSemCount(), test_semWaiter(), testFail(), testPass(), and TRUE.
Referenced by testItem().
Definition at line 89 of file xsh_testsuite.c.
References create(), disable(), fprintf(), INITSTK, NULL, OK, ready(), RESCHED_YES, restore(), sleep(), test_bigargs(), test_deltaQueue(), test_procQueue(), test_recursion(), test_schedule(), test_semaphore(), test_semaphore2(), test_semaphore3(), and test_semaphore4().
Referenced by xsh_testsuite().
Shell command (testsuite) provides a menu of standard XINU component tests.
stdin | descriptor of input device | |
stdout | descriptor of output device | |
stderr | descriptor of error device | |
args | array of arguments |
Definition at line 35 of file xsh_testsuite.c.
References atol(), fprintf(), NTESTS, OK, strncmp(), SYSERR, and testItem().