summaryrefslogtreecommitdiff
path: root/test/pixmaps/good/Miniweave.xpm
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2023-01-07 13:39:56 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2023-01-08 14:50:03 -0800
commit501494c6c68a84114fdd0b44d4b67ef9cde776c9 (patch)
treefb5b1c7483d8f6859f52ed93c8ea931a1dde11ad /test/pixmaps/good/Miniweave.xpm
parent4841039e5385f264d12757903894f47c64f59361 (diff)
test: Add unit tests using glib framework
Includes rudimentary tests for XpmReadFileToXpmImage, XpmReadFileToData, XpmReadFileToBuffer, XpmCreateXpmImageFromData, XpmCreateXpmImageFromBuffer, XpmWriteFileFromXpmImage, XpmWriteFileFromData, XpmWriteFileFromBuffer, XpmAttributesSize, XpmGetErrorString, XpmLibraryVersion Includes test cases for CVE-2004-0687 Tests .Z and .gz files if --enable-open-zfile is active Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'test/pixmaps/good/Miniweave.xpm')
-rw-r--r--test/pixmaps/good/Miniweave.xpm63
1 files changed, 63 insertions, 0 deletions
diff --git a/test/pixmaps/good/Miniweave.xpm b/test/pixmaps/good/Miniweave.xpm
new file mode 100644
index 0000000..492cec6
--- /dev/null
+++ b/test/pixmaps/good/Miniweave.xpm
@@ -0,0 +1,63 @@
+/* XPM */
+/*
+ * Copyright (c) 1993, 1995, Oracle and/or its affiliates.
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice (including the next
+ * paragraph) shall be included in all copies or substantial portions of the
+ * Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+ * DEALINGS IN THE SOFTWARE.
+ */
+
+static char * Miniweave_pm[] = {
+/* width height ncolors cpp [x_hot y_hot] */
+"32 32 2 1 0 0",
+/* colors */
+" s selectColor m white c #737373737373",
+". s background m black c #949494949494",
+/* pixels */
+" .. .. .. .. .. .. .. ..",
+".... ..... ..... ..... .",
+"..... ..... ..... ..... ",
+" .. .. .. .. .. .. .. .. ",
+".. .. .. .. .. .. .. .. ",
+". ..... ..... ..... ....",
+" ..... ..... ..... .....",
+" .. .. .. .. .. .. .. .. ",
+" .. .. .. .. .. .. .. ..",
+".... ..... ..... ..... .",
+"..... ..... ..... ..... ",
+" .. .. .. .. .. .. .. .. ",
+".. .. .. .. .. .. .. .. ",
+". ..... ..... ..... ....",
+" ..... ..... ..... .....",
+" .. .. .. .. .. .. .. .. ",
+" .. .. .. .. .. .. .. ..",
+".... ..... ..... ..... .",
+"..... ..... ..... ..... ",
+" .. .. .. .. .. .. .. .. ",
+".. .. .. .. .. .. .. .. ",
+". ..... ..... ..... ....",
+" ..... ..... ..... .....",
+" .. .. .. .. .. .. .. .. ",
+" .. .. .. .. .. .. .. ..",
+".... ..... ..... ..... .",
+"..... ..... ..... ..... ",
+" .. .. .. .. .. .. .. .. ",
+".. .. .. .. .. .. .. .. ",
+". ..... ..... ..... ....",
+" ..... ..... ..... .....",
+" .. .. .. .. .. .. .. ..."};