From 10bf9f48a78a8c2e891982598bb3321f41dee730 Mon Sep 17 00:00:00 2001 From: Sam Hocevar Date: Fri, 30 Nov 2007 23:48:39 +0000 Subject: [PATCH] * Rename "test" to "examples". The former will become a real testsuite. * Autodetect zzuf in the configure step. It might become handy. --- Makefile.am | 2 +- configure.ac | 15 ++++++++++++--- {test => examples}/.gitignore | 0 {test => examples}/Makefile.am | 0 {test => examples}/blit.c | 0 {test => examples}/colors.c | 0 {test => examples}/cucul.c | 0 {test => examples}/demo.c | 0 {test => examples}/demo0.c | 0 {test => examples}/dithering.c | 0 {test => examples}/event.c | 0 {test => examples}/export.c | 0 {test => examples}/font.c | 0 {test => examples}/font2tga.c | 0 {test => examples}/frames.c | 0 {test => examples}/fullwidth.c | 0 {test => examples}/gamma.c | 0 {test => examples}/hsv.c | 0 {test => examples}/import.c | 0 {test => examples}/input.c | 0 {test => examples}/spritedit.c | 0 {test => examples}/swallow.c | 0 {test => examples}/text.c | 0 {test => examples}/transform.c | 0 {test => examples}/truecolor.c | 0 {test => examples}/unicode.c | 0 26 files changed, 13 insertions(+), 4 deletions(-) rename {test => examples}/.gitignore (100%) rename {test => examples}/Makefile.am (100%) rename {test => examples}/blit.c (100%) rename {test => examples}/colors.c (100%) rename {test => examples}/cucul.c (100%) rename {test => examples}/demo.c (100%) rename {test => examples}/demo0.c (100%) rename {test => examples}/dithering.c (100%) rename {test => examples}/event.c (100%) rename {test => examples}/export.c (100%) rename {test => examples}/font.c (100%) rename {test => examples}/font2tga.c (100%) rename {test => examples}/frames.c (100%) rename {test => examples}/fullwidth.c (100%) rename {test => examples}/gamma.c (100%) rename {test => examples}/hsv.c (100%) rename {test => examples}/import.c (100%) rename {test => examples}/input.c (100%) rename {test => examples}/spritedit.c (100%) rename {test => examples}/swallow.c (100%) rename {test => examples}/text.c (100%) rename {test => examples}/transform.c (100%) rename {test => examples}/truecolor.c (100%) rename {test => examples}/unicode.c (100%) diff --git a/Makefile.am b/Makefile.am index fade0c6..96ae024 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,6 +1,6 @@ # $Id$ -SUBDIRS = kernel cucul caca src test tools csharp cxx python ruby doc +SUBDIRS = kernel cucul caca src examples tools csharp cxx python ruby doc DIST_SUBDIRS = $(SUBDIRS) msvc EXTRA_DIST = NOTES COPYING.GPL COPYING.LGPL bootstrap build-dos build-kernel build-win32 caca-config.in common.h libcaca.spec diff --git a/configure.ac b/configure.ac index ed21d1a..df02aed 100644 --- a/configure.ac +++ b/configure.ac @@ -79,11 +79,13 @@ AC_ARG_ENABLE(imlib2, dnl conditional builds AC_ARG_ENABLE(debug, - [ --enable-debug build debug versions of the library]) + [ --enable-debug build debug versions of the library (default no)]) AC_ARG_ENABLE(plugins, - [ --enable-plugins build X11 and GL drivers as plugins]) + [ --enable-plugins make X11 and GL drivers plugins (default disabled)]) AC_ARG_ENABLE(doc, [ --enable-doc build documentation (needs doxygen and LaTeX)]) +AC_ARG_ENABLE(zzuf, + [ --enable-zzuf use zzuf for fuzzing tests (autodetected)]) AC_CHECK_HEADERS(stdio.h stdarg.h signal.h sys/ioctl.h sys/time.h inttypes.h endian.h unistd.h arpa/inet.h netinet/in.h winsock2.h errno.h locale.h getopt.h dlfcn.h termios.h) AC_CHECK_FUNCS(signal ioctl vsnprintf getenv putenv strcasecmp htons) @@ -429,13 +431,20 @@ fi AM_CONDITIONAL(BUILD_DOCUMENTATION, test "${DOXYGEN}" != "no") AM_CONDITIONAL(USE_LATEX, test "${LATEX}" != "no") +# Use zzuf for fuzzing tests? +ZZUF="no" +if test "${enable_zzuf}" != "no"; then + AC_PATH_PROG(ZZUF, zzuf, no) +fi +AM_CONDITIONAL(USE_ZZUF, test "${ZZUF}" != "no") + AC_CONFIG_FILES([ Makefile kernel/Makefile cucul/Makefile caca/Makefile src/Makefile - test/Makefile + examples/Makefile tools/Makefile csharp/Makefile cxx/Makefile diff --git a/test/.gitignore b/examples/.gitignore similarity index 100% rename from test/.gitignore rename to examples/.gitignore diff --git a/test/Makefile.am b/examples/Makefile.am similarity index 100% rename from test/Makefile.am rename to examples/Makefile.am diff --git a/test/blit.c b/examples/blit.c similarity index 100% rename from test/blit.c rename to examples/blit.c diff --git a/test/colors.c b/examples/colors.c similarity index 100% rename from test/colors.c rename to examples/colors.c diff --git a/test/cucul.c b/examples/cucul.c similarity index 100% rename from test/cucul.c rename to examples/cucul.c diff --git a/test/demo.c b/examples/demo.c similarity index 100% rename from test/demo.c rename to examples/demo.c diff --git a/test/demo0.c b/examples/demo0.c similarity index 100% rename from test/demo0.c rename to examples/demo0.c diff --git a/test/dithering.c b/examples/dithering.c similarity index 100% rename from test/dithering.c rename to examples/dithering.c diff --git a/test/event.c b/examples/event.c similarity index 100% rename from test/event.c rename to examples/event.c diff --git a/test/export.c b/examples/export.c similarity index 100% rename from test/export.c rename to examples/export.c diff --git a/test/font.c b/examples/font.c similarity index 100% rename from test/font.c rename to examples/font.c diff --git a/test/font2tga.c b/examples/font2tga.c similarity index 100% rename from test/font2tga.c rename to examples/font2tga.c diff --git a/test/frames.c b/examples/frames.c similarity index 100% rename from test/frames.c rename to examples/frames.c diff --git a/test/fullwidth.c b/examples/fullwidth.c similarity index 100% rename from test/fullwidth.c rename to examples/fullwidth.c diff --git a/test/gamma.c b/examples/gamma.c similarity index 100% rename from test/gamma.c rename to examples/gamma.c diff --git a/test/hsv.c b/examples/hsv.c similarity index 100% rename from test/hsv.c rename to examples/hsv.c diff --git a/test/import.c b/examples/import.c similarity index 100% rename from test/import.c rename to examples/import.c diff --git a/test/input.c b/examples/input.c similarity index 100% rename from test/input.c rename to examples/input.c diff --git a/test/spritedit.c b/examples/spritedit.c similarity index 100% rename from test/spritedit.c rename to examples/spritedit.c diff --git a/test/swallow.c b/examples/swallow.c similarity index 100% rename from test/swallow.c rename to examples/swallow.c diff --git a/test/text.c b/examples/text.c similarity index 100% rename from test/text.c rename to examples/text.c diff --git a/test/transform.c b/examples/transform.c similarity index 100% rename from test/transform.c rename to examples/transform.c diff --git a/test/truecolor.c b/examples/truecolor.c similarity index 100% rename from test/truecolor.c rename to examples/truecolor.c diff --git a/test/unicode.c b/examples/unicode.c similarity index 100% rename from test/unicode.c rename to examples/unicode.c