diff options
-rwxr-xr-x | Build/source/libs/harfbuzz/harfbuzz.test | 7 | ||||
-rw-r--r-- | Build/source/libs/harfbuzz/hbtest.c | 28 | ||||
-rwxr-xr-x | Build/source/libs/icu/icu.test | 7 | ||||
-rw-r--r-- | Build/source/libs/icu/icutest.c | 19 |
4 files changed, 61 insertions, 0 deletions
diff --git a/Build/source/libs/harfbuzz/harfbuzz.test b/Build/source/libs/harfbuzz/harfbuzz.test new file mode 100755 index 00000000000..edaac7a6326 --- /dev/null +++ b/Build/source/libs/harfbuzz/harfbuzz.test @@ -0,0 +1,7 @@ +#! /bin/sh + +# Copyright (C) 2013 Peter Breitenlohner <tex-live@tug.org> +# You may freely use, modify and/or distribute this file. + +./hbtest || exit 1 + diff --git a/Build/source/libs/harfbuzz/hbtest.c b/Build/source/libs/harfbuzz/hbtest.c new file mode 100644 index 00000000000..c77daaccbe6 --- /dev/null +++ b/Build/source/libs/harfbuzz/hbtest.c @@ -0,0 +1,28 @@ +/* gr2test.c: Basic test for libharfbuzz + * + * Copyright (C) 2013 Peter Breitenlohner <tex-live@tug.org> + * You may freely use, modify and/or distribute this file. + */ + +#ifdef HAVE_CONFIG_H +#include <config.h> +#endif +#include <hb.h> +#include <stdio.h> +#include <unicode/ucnv.h> +#include <graphite2/Font.h> + +int main (int argc, char **argv) +{ + UVersionInfo icuVersion; + char icu_version[U_MAX_VERSION_STRING_LENGTH] = ""; + int nMajor, nMinor, nBugFix; + + printf ("%s: using HarfBuzz version %s\n", argv[0], hb_version_string ()); + u_getVersion(icuVersion); + u_versionToString(icuVersion, icu_version); + printf ("%s: using ICU version %s\n", argv[0], icu_version); + gr_engine_version(&nMajor, &nMinor, &nBugFix); + printf ("%s: using Graphite2 version %d.%d.%d\n", argv[0], nMajor, nMinor, nBugFix); + return 0; +} diff --git a/Build/source/libs/icu/icu.test b/Build/source/libs/icu/icu.test new file mode 100755 index 00000000000..44ae74a002d --- /dev/null +++ b/Build/source/libs/icu/icu.test @@ -0,0 +1,7 @@ +#! /bin/sh + +# Copyright (C) 2013 Peter Breitenlohner <tex-live@tug.org> +# You may freely use, modify and/or distribute this file. + +./icutest || exit 1 + 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; +} |