The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 1 | #include "SourcePos.h" |
| 2 | #include <stdio.h> |
| 3 | |
| 4 | int ValuesFile_test(); |
| 5 | int XLIFFFile_test(); |
| 6 | int XMLHandler_test(); |
| 7 | int Perforce_test(); |
| 8 | int localize_test(); |
| 9 | int merge_test(); |
| 10 | |
| 11 | int |
| 12 | test() |
| 13 | { |
| 14 | bool all = true; |
| 15 | int err = 0; |
| 16 | |
| 17 | if (all) err |= XMLHandler_test(); |
| 18 | if (all) err |= ValuesFile_test(); |
| 19 | if (all) err |= XLIFFFile_test(); |
| 20 | if (all) err |= Perforce_test(); |
| 21 | if (all) err |= localize_test(); |
| 22 | if (all) err |= merge_test(); |
| 23 | |
| 24 | if (err != 0) { |
| 25 | fprintf(stderr, "some tests failed\n"); |
| 26 | } else { |
| 27 | fprintf(stderr, "all tests passed\n"); |
| 28 | } |
| 29 | |
| 30 | return err; |
| 31 | } |