-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.c
53 lines (45 loc) · 1.62 KB
/
main.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
/* This is auto-generated code. Edit at your own peril. */
#include <stdio.h>
#include <stdlib.h>
#include "CuTest.h"
extern void TestFormat(CuTest *);
extern void TestRootDirectory(CuTest *);
extern void TestCreateFile(CuTest *);
extern void TestCreateFiles(CuTest *);
extern void TestCreateLotsOfFiles(CuTest *);
extern void TestCreateFileWithDir(CuTest *);
extern void TestCreateFilesWithDir(CuTest *);
extern void TestWriteFile(CuTest *);
extern void TestWriteNulls(CuTest *);
extern void TestReallyBigWrite(CuTest *);
extern void TestReadFile(CuTest *);
extern void TestReadLotsOfFiles(CuTest *);
extern void TestWriteAndReadWithDirectories(CuTest *);
extern void TestSeek(CuTest *);
void RunAllTests(void) {
CuString *output = CuStringNew();
CuSuite *suite = CuSuiteNew();
SUITE_ADD_TEST(suite, TestFormat);
SUITE_ADD_TEST(suite, TestRootDirectory);
SUITE_ADD_TEST(suite, TestCreateFile);
SUITE_ADD_TEST(suite, TestCreateFiles);
SUITE_ADD_TEST(suite, TestCreateLotsOfFiles);
SUITE_ADD_TEST(suite, TestCreateFileWithDir);
SUITE_ADD_TEST(suite, TestCreateFilesWithDir);
SUITE_ADD_TEST(suite, TestWriteFile);
SUITE_ADD_TEST(suite, TestWriteNulls);
SUITE_ADD_TEST(suite, TestReallyBigWrite);
SUITE_ADD_TEST(suite, TestReadFile);
SUITE_ADD_TEST(suite, TestReadLotsOfFiles);
SUITE_ADD_TEST(suite, TestWriteAndReadWithDirectories);
SUITE_ADD_TEST(suite, TestSeek);
CuSuiteRun(suite);
CuSuiteSummary(suite, output);
CuSuiteDetails(suite, output);
printf("%s\n", output->buffer);
CuStringDelete(output);
CuSuiteDelete(suite);
}
int main(void) {
RunAllTests();
}