Lines Matching defs:test

6  * RUN : ./locktests -n <number of concurent process> -f <test file> [-P]
8 * GOAL : This test tries to stress the fcntl locking functions. A
13 * the same as the expected one, the test suceeds, else it fails.
19 * -f <file> : Run the test on given test file defined by the -f option (mandatory).
23 * EXAMPLE : ./locktests -n 50 -f /file/system/to/test
42 /* Which lock will be applied by the master process on test startup */
58 /* List of test names */
71 /* List of expected test results, when slaves are processes */
79 /* List of expected test results, when slaves are threads */
125 /* Verify the test result is the expected one */
136 /* Increments the number of process which have successfully passed the test */
142 /* Special case for test 'lock file byte byte by byte'.
181 perror("lock test : can't open test file :");
271 void selectTest(int n, struct s_test *test)
274 test->test = testSuiv(n);
275 test->resAtt = resAttSuiv(n);
276 test->nom = nomTestSuiv(n);
277 test->type = lockSuiv(n);
280 /* Final test report */
290 printf("%s number running test successfully :\n", eType);
295 printf("%d %s of %d successfully ran test : %s\n",
306 /* Configure slaves for test */
370 sprintf(message, "T:%d:%d:%d::", tLock->test, tLock->type,
377 sscanf(message, "T:%d:%d:%d::", &(tLock->test), &(tLock->type),
462 /* Add remote test results */
471 /* Add local test results */
586 /* A test sentence written in the file */
588 "Ceci est une phrase test ecrite par le maitre dans le fichier";
593 /* Start with the first test ;) */
599 /* Select the test to perform */
666 /* Create a string to record in the test file. Length is exactly the number of sub process */
717 tLock.test = CLEAN;
730 tLock.test = END;
778 state = tLock.test;
949 printf("locktest -n <number of process> -f <test file> [-T]\n");