summaryrefslogtreecommitdiff
path: root/tools/localize/test.cpp
diff options
context:
space:
mode:
author The Android Open Source Project <initial-contribution@android.com> 2008-10-21 07:00:00 -0700
committer The Android Open Source Project <initial-contribution@android.com> 2008-10-21 07:00:00 -0700
commit54b6cfa9a9e5b861a9930af873580d6dc20f773c (patch)
tree35051494d2af230dce54d6b31c6af8fc24091316 /tools/localize/test.cpp
Initial Contribution
Diffstat (limited to 'tools/localize/test.cpp')
-rw-r--r--tools/localize/test.cpp31
1 files changed, 31 insertions, 0 deletions
diff --git a/tools/localize/test.cpp b/tools/localize/test.cpp
new file mode 100644
index 000000000000..5fa2c17340b3
--- /dev/null
+++ b/tools/localize/test.cpp
@@ -0,0 +1,31 @@
+#include "SourcePos.h"
+#include <stdio.h>
+
+int ValuesFile_test();
+int XLIFFFile_test();
+int XMLHandler_test();
+int Perforce_test();
+int localize_test();
+int merge_test();
+
+int
+test()
+{
+ bool all = true;
+ int err = 0;
+
+ if (all) err |= XMLHandler_test();
+ if (all) err |= ValuesFile_test();
+ if (all) err |= XLIFFFile_test();
+ if (all) err |= Perforce_test();
+ if (all) err |= localize_test();
+ if (all) err |= merge_test();
+
+ if (err != 0) {
+ fprintf(stderr, "some tests failed\n");
+ } else {
+ fprintf(stderr, "all tests passed\n");
+ }
+
+ return err;
+}