summaryrefslogtreecommitdiff
path: root/Build/source/libs/icu/icutest.c
diff options
context:
space:
mode:
authorPeter Breitenlohner <peb@mppmu.mpg.de>2013-07-08 13:43:08 +0000
committerPeter Breitenlohner <peb@mppmu.mpg.de>2013-07-08 13:43:08 +0000
commit4fa56fbb23e2c4f58ec892731a6acb431846c5da (patch)
treec81259e8646794ec7a17abc75e216aa2c8d20bd6 /Build/source/libs/icu/icutest.c
parent09607811ee9f819abbeca6c1366f4c447ef68314 (diff)
icu, harfbuzz: Add simple tests
git-svn-id: svn://tug.org/texlive/trunk@31134 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/libs/icu/icutest.c')
-rw-r--r--Build/source/libs/icu/icutest.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/Build/source/libs/icu/icutest.c b/Build/source/libs/icu/icutest.c
new file mode 100644
index 00000000000..1b744a23e20
--- /dev/null
+++ b/Build/source/libs/icu/icutest.c
@@ -0,0 +1,19 @@
+/* pixtest.c: Basic test for libicu*
+ *
+ * Copyright (C) 2013 Peter Breitenlohner <tex-live@tug.org>
+ * You may freely use, modify and/or distribute this file.
+ */
+
+#include <stdio.h>
+#include <unicode/ucnv.h>
+
+int main (int argc, char **argv)
+{
+ UVersionInfo icuVersion;
+ char icu_version[U_MAX_VERSION_STRING_LENGTH] = "";
+
+ u_getVersion(icuVersion);
+ u_versionToString(icuVersion, icu_version);
+ printf ("%s: using ICU version %s\n", argv[0], icu_version);
+ return 0;
+}