. test71: blackbox test of FS operation, testing using the regular VFS interface crazy i/o patterns with various working set sizes, triggering only primary cache, also secondary cache, and finally disk i/o and verifying contents all the time . test72: unit test of libminixfs, implementing functions it needs from -lsys and -lblockdriver and the client in order to simulate a working cache client and backend environment. Change-Id: I1287e9753182b8719e634917ad158e3c1e079ceb
13 lines
319 B
C
13 lines
319 B
C
|
|
#include <sys/types.h>
|
|
|
|
#define MAXBLOCKS 1500000
|
|
|
|
#define MAXBLOCKSIZE (4*PAGE_SIZE)
|
|
|
|
int dowriteblock(int b, int blocksize, u32_t seed, char *block);
|
|
int readblock(int b, int blocksize, u32_t seed, char *block);
|
|
void testend(void);
|
|
int dotest(int blocksize, int nblocks, int iterations);
|
|
void cachequiet(int quiet);
|