diff options
author | Peter Breitenlohner <peb@mppmu.mpg.de> | 2013-07-08 13:43:08 +0000 |
---|---|---|
committer | Peter Breitenlohner <peb@mppmu.mpg.de> | 2013-07-08 13:43:08 +0000 |
commit | 4fa56fbb23e2c4f58ec892731a6acb431846c5da (patch) | |
tree | c81259e8646794ec7a17abc75e216aa2c8d20bd6 /Build/source/libs | |
parent | 09607811ee9f819abbeca6c1366f4c447ef68314 (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')
-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; +} |