2 * ReactOS test program -
6 * Copyright (C) 2002 Robert Dickenson <robd@reactos.org>
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
23 #define WIN32_LEAN_AND_MEAN
32 #define VERSION "1.00"
34 #define TARGET "UNICODE"
40 #define TEST_BUFFER_SIZE 200
42 TCHAR test_buffer
[TEST_BUFFER_SIZE
];
43 BOOL verbose_flagged
= 0;
46 int usage(char* argv0
)
49 printf("\t%s clean - delete test output files\n", argv0
);
50 printf("\t%s test_number [unicode][ansi]\n", argv0
);
54 int __cdecl
main(int argc
, char* argv
[])
59 printf("%s test application - build %s (%s)\n", argv
[0], VERSION
, TARGET
);
61 return usage(argv
[0]);
64 if (strstr(argv
[1], "clean") || strstr(argv
[1], "clean")) {
66 return test_unicode_files(-1);
68 return test_ansi_files(-1);
71 test_num
= atoi(argv
[1]);
77 if (strstr(argv
[2], "ansi") || strstr(argv
[2], "ANSI")) {
78 result
= test_ansi_files(test_num
);
79 } else if (strstr(argv
[2], "unicode") || strstr(argv
[2], "UNICODE")) {
80 result
= test_unicode_files(test_num
);
82 result
= test_ansi_files(test_num
);
83 result
= test_unicode_files(test_num
);
87 result
= test_unicode_files(test_num
);
89 result
= test_ansi_files(test_num
);