version 1.2 | | version 1.3 |
---|
| | |
POST_UNINSTALL = : | | POST_UNINSTALL = : |
build_triplet = @build@ | | build_triplet = @build@ |
host_triplet = @host@ | | host_triplet = @host@ |
| | DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in \ |
| | $(top_srcdir)/check-fragment.am |
noinst_PROGRAMS = $(am__EXEEXT_1) | | noinst_PROGRAMS = $(am__EXEEXT_1) |
subdir = test/unit/socket | | subdir = test/unit/socket |
DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in | | |
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 | | ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 |
am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \ | | am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \ |
$(top_srcdir)/configure.ac | | $(top_srcdir)/configure.ac |
| | |
PATH_SEPARATOR = @PATH_SEPARATOR@ | | PATH_SEPARATOR = @PATH_SEPARATOR@ |
PERL = @PERL@ | | PERL = @PERL@ |
PLUGIN_PYTHON = @PLUGIN_PYTHON@ | | PLUGIN_PYTHON = @PLUGIN_PYTHON@ |
| | PROCESS_XSLT_FALSE = @PROCESS_XSLT_FALSE@ |
| | PROCESS_XSLT_TRUE = @PROCESS_XSLT_TRUE@ |
PYTHON_LIB = @PYTHON_LIB@ | | PYTHON_LIB = @PYTHON_LIB@ |
PYTHON_PLUGIN_FALSE = @PYTHON_PLUGIN_FALSE@ | | PYTHON_PLUGIN_FALSE = @PYTHON_PLUGIN_FALSE@ |
PYTHON_PLUGIN_TRUE = @PYTHON_PLUGIN_TRUE@ | | PYTHON_PLUGIN_TRUE = @PYTHON_PLUGIN_TRUE@ |
| | |
UNCOMPRESS = @UNCOMPRESS@ | | UNCOMPRESS = @UNCOMPRESS@ |
VERSION = @VERSION@ | | VERSION = @VERSION@ |
X11LIBS = @X11LIBS@ | | X11LIBS = @X11LIBS@ |
| | XSLTENGINE = @XSLTENGINE@ |
X_CFLAGS = @X_CFLAGS@ | | X_CFLAGS = @X_CFLAGS@ |
X_EXTRA_LIBS = @X_EXTRA_LIBS@ | | X_EXTRA_LIBS = @X_EXTRA_LIBS@ |
X_LIBS = @X_LIBS@ | | X_LIBS = @X_LIBS@ |
| | |
build_cpu = @build_cpu@ | | build_cpu = @build_cpu@ |
build_os = @build_os@ | | build_os = @build_os@ |
build_vendor = @build_vendor@ | | build_vendor = @build_vendor@ |
| | check_xslt_forcedprogfound = @check_xslt_forcedprogfound@ |
| | check_xslt_sablotronfound = @check_xslt_sablotronfound@ |
| | check_xslt_xsltprocfound = @check_xslt_xsltprocfound@ |
datadir = @datadir@ | | datadir = @datadir@ |
exec_prefix = @exec_prefix@ | | exec_prefix = @exec_prefix@ |
host = @host@ | | host = @host@ |
| | |
target_alias = @target_alias@ | | target_alias = @target_alias@ |
x_includes = @x_includes@ | | x_includes = @x_includes@ |
x_libraries = @x_libraries@ | | x_libraries = @x_libraries@ |
BUILT_SOURCES = ../../logs/unit/socket | | |
noinst_LIBRARIES = libstubs.a | | noinst_LIBRARIES = libstubs.a |
libstubs_a_SOURCES = stubs_socket.c | | libstubs_a_SOURCES = stubs_socket.c |
INCLUDES = -I../../../include -I../../include | | |
AM_CPPFLAGS = -DRESSOURCES=\"$(srcdir)/../../resources\" -DLOGDIR=\"$(srcdir)/../../logs\" | | |
LDADD = ../../../common/libcross.a ../../../socket/libsocket.a libstubs.a $(LIBDL) @CHECK_LIBS@ | | LDADD = ../../../common/libcross.a ../../../socket/libsocket.a libstubs.a $(LIBDL) @CHECK_LIBS@ |
TESTS = check_image check_info check_init check_item check_loop check_lowlevel check_metaserver check_request check_sounds | | TESTS = check_image check_info check_init check_item check_loop check_lowlevel check_metaserver check_request check_sounds |
| | CHECK_ROOT = ../../ |
| | CHECK_FOLDER = unit/socket |
| | CHECK_PARENT_NAME = Unit |
| | LOGDIR = $(top_srcdir)/test/logs/$(CHECK_FOLDER) |
| | INCLUDES = -I$($top_srcdir)/include -I$($top_srcdir)/test/include |
| | BUILT_SOURCES = $(LOGDIR) |
| | AM_CPPFLAGS = -DRESSOURCES=\"$(srcdir)/../../resources\" -DLOGDIR=\"$(top_srcdir)/test/logs\" -DSOURCE_ROOT=\"$(srcdir)/../../../\" |
| | @PROCESS_XSLT_TRUE@CHECK_HTML = logreport template-copy |
| | @PROCESS_XSLT_TRUE@CHECK_TXT = textlog |
all: $(BUILT_SOURCES) | | all: $(BUILT_SOURCES) |
$(MAKE) $(AM_MAKEFLAGS) all-am | | $(MAKE) $(AM_MAKEFLAGS) all-am |
| | |
.SUFFIXES: | | .SUFFIXES: |
.SUFFIXES: .c .lo .o .obj | | .SUFFIXES: .c .lo .o .obj |
$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) | | $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(top_srcdir)/check-fragment.am $(am__configure_deps) |
@for dep in $?; do \ | | @for dep in $?; do \ |
case '$(am__configure_deps)' in \ | | case '$(am__configure_deps)' in \ |
*$$dep*) \ | | *$$dep*) \ |
| | |
else :; fi | | else :; fi |
| | |
distdir: $(DISTFILES) | | distdir: $(DISTFILES) |
| | $(mkdir_p) $(distdir)/../../.. |
@srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ | | @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ |
topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ | | topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ |
list='$(DISTFILES)'; for file in $$list; do \ | | list='$(DISTFILES)'; for file in $$list; do \ |
| | |
fi; \ | | fi; \ |
done | | done |
check-am: all-am | | check-am: all-am |
$(MAKE) $(AM_MAKEFLAGS) check-TESTS | | $(MAKE) $(AM_MAKEFLAGS) check-TESTS check-local |
check: $(BUILT_SOURCES) | | check: $(BUILT_SOURCES) |
$(MAKE) $(AM_MAKEFLAGS) check-am | | $(MAKE) $(AM_MAKEFLAGS) check-am |
all-am: Makefile $(LIBRARIES) $(PROGRAMS) | | all-am: Makefile $(LIBRARIES) $(PROGRAMS) |
| | |
-test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES) | | -test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES) |
clean: clean-am | | clean: clean-am |
| | |
clean-am: clean-generic clean-libtool clean-noinstLIBRARIES \ | | clean-am: clean-generic clean-libtool clean-local \ |
clean-noinstPROGRAMS mostlyclean-am | | clean-noinstLIBRARIES clean-noinstPROGRAMS mostlyclean-am |
| | |
distclean: distclean-am | | distclean: distclean-am |
-rm -rf ./$(DEPDIR) | | -rm -rf ./$(DEPDIR) |
| | |
| | |
uninstall-am: uninstall-info-am | | uninstall-am: uninstall-info-am |
| | |
.PHONY: CTAGS GTAGS all all-am check check-TESTS check-am clean \ | | .PHONY: CTAGS GTAGS all all-am check check-TESTS check-am check-local \ |
clean-generic clean-libtool clean-noinstLIBRARIES \ | | clean clean-generic clean-libtool clean-local \ |
clean-noinstPROGRAMS ctags distclean distclean-compile \ | | clean-noinstLIBRARIES clean-noinstPROGRAMS ctags distclean \ |
distclean-generic distclean-libtool distclean-tags distdir dvi \ | | distclean-compile distclean-generic distclean-libtool \ |
dvi-am html html-am info info-am install install-am \ | | distclean-tags distdir dvi dvi-am html html-am info info-am \ |
install-data install-data-am install-exec install-exec-am \ | | install install-am install-data install-data-am install-exec \ |
install-info install-info-am install-man install-strip \ | | install-exec-am install-info install-info-am install-man \ |
installcheck installcheck-am installdirs maintainer-clean \ | | install-strip installcheck installcheck-am installdirs \ |
maintainer-clean-generic mostlyclean mostlyclean-compile \ | | maintainer-clean maintainer-clean-generic mostlyclean \ |
mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ | | mostlyclean-compile mostlyclean-generic mostlyclean-libtool \ |
tags uninstall uninstall-am uninstall-info-am | | pdf pdf-am ps ps-am tags uninstall uninstall-am \ |
| | uninstall-info-am |
| | |
| | |
../../logs/unit/socket: | | ../../logs/unit/socket: |
| | |
( cd ../../../common ; make libcross.a ) | | ( cd ../../../common ; make libcross.a ) |
../../../socket/libsocket.a: | | ../../../socket/libsocket.a: |
( cd ../../../socket ; make libsocket.a ) | | ( cd ../../../socket ; make libsocket.a ) |
| | $(LOGDIR): |
| | mkdir -p $(LOGDIR) |
| | automenu: |
| | @echo "Building menu entry..." |
| | @subdirs='$(SUBDIRS)';\ |
| | list='$(TESTS)'; \ |
| | dir='$(LOGDIR)'; \ |
| | srcdir='$(top_srcdir)'; \ |
| | output_menu=$${dir}/.automenu.xml; \ |
| | parentfoldername=$(CHECK_PARENT_NAME); \ |
| | echo '<?xml version="1.0"?><menu>' > $$output_menu; \ |
| | echo '<parentMenu>$(CHECK_PARENT_NAME)</parentMenu>' >> $$output_menu;\ |
| | for tst in $$list; do \ |
| | tst=$${tst/check_/} ; \ |
| | tst=$${tst/-/_} ; \ |
| | xml=$(LOGDIR)/$${tst}.xml ;\ |
| | if test -e "$$xml"; then \ |
| | successCount=`grep -c 'result="success"' $$xml`;\ |
| | errorCount=`grep -c 'result="error"' $$xml`;\ |
| | failureCount=`grep -c 'result="failure"' $$xml`;\ |
| | echo '<entry success="'$${successCount}'" error="'$${errorCount}'" failure="'$${failureCount}'">'$$tst'</entry>' >> $$output_menu; \ |
| | fi; \ |
| | done; \ |
| | for sub in $$subdirs; do \ |
| | if test -e $${dir}/$${sub}/.automenu.xml; then \ |
| | echo '<subDirectory name="'$${sub}'"/>' >> $$output_menu; \ |
| | fi; \ |
| | done;\ |
| | echo "</menu>" >> $$output_menu |
| | |
| | logreport: automenu |
| | @echo "processing logs to html..." |
| | @list='$(TESTS)'; \ |
| | srcdir='$(top_srcdir)'; \ |
| | xsl=$${srcdir}/test/templates/logresult.xsl ; \ |
| | xsltproc='$(XSLTENGINE)';\ |
| | xsltproc=$${xsltproc/\%2/$$xsl};\ |
| | xml_siteuri='$(CHECK_ROOT)' ;\ |
| | xml_check_folder='../logs/$(CHECK_FOLDER)' ;\ |
| | runxml='.autorun.xml';\ |
| | if test -n "$$list"; then \ |
| | for tst in $$list; do \ |
| | tst=$${tst/check_/} ; \ |
| | tst=$${tst/-/_} ; \ |
| | checkFile=$${tst}.xml ;\ |
| | echo '<?xml version="1.0"?><config>' > $$runxml;\ |
| | echo "<baseSiteUri>$$xml_siteuri</baseSiteUri>" >> $$runxml;\ |
| | echo "<checkFile>$$checkFile</checkFile>" >> $$runxml;\ |
| | echo "<checkFolder>$$xml_check_folder</checkFolder></config>" >> $$runxml;\ |
| | html=$(LOGDIR)/$${tst}.html ;\ |
| | if test -e "$(LOGDIR)/$$xml"; then \ |
| | torun=$${xsltproc/\%1/$$runxml};\ |
| | torun=$${torun/\%3/$$html};\ |
| | echo "running $$torun";\ |
| | $$torun; \ |
| | fi; \ |
| | done; \ |
| | else :; fi; \ |
| | echo '<?xml version="1.0"?><config>' > $$runxml;\ |
| | echo "<baseSiteUri>$$xml_siteuri</baseSiteUri>" >> $$runxml;\ |
| | echo "<checkFolder>$$xml_check_folder</checkFolder></config>" >> $$runxml;\ |
| | html=$(LOGDIR)/.index.html ;\ |
| | torun=$${xsltproc/\%1/$$runxml};\ |
| | torun=$${torun/\%3/$$html};\ |
| | echo "running $$torun";\ |
| | $$torun; |
| | template-copy: $(LOGDIR) |
| | @echo copying template |
| | @if test -d "$(top_srcdir)/test/templates/$(CHECK_FOLDER)"; then \ |
| | cp $(top_srcdir)/test/templates/$(CHECK_FOLDER)/* $(LOGDIR)/;\ |
| | fi |
| | textlog: |
| | @echo "processing logs to text..." |
| | @srcdir='$(top_srcdir)'; \ |
| | xsl=$${srcdir}/test/templates/checkTextResult.xsl ; \ |
| | xsltproc='$(XSLTENGINE)';\ |
| | xsltproc=$${xsltproc/\%2/$$xsl};\ |
| | xml_siteuri='$(CHECK_ROOT)' ;\ |
| | xml_check_folder='../logs/$(CHECK_FOLDER)' ;\ |
| | runxml='.autorun.xml';\ |
| | echo '<?xml version="1.0"?><config>' > $$runxml;\ |
| | echo "<baseSiteUri>$$xml_siteuri</baseSiteUri>" >> $$runxml;\ |
| | echo "<checkFolder>$$xml_check_folder</checkFolder></config>" >> $$runxml;\ |
| | txt=$(LOGDIR)/testlog.txt ;\ |
| | torun=$${xsltproc/\%1/$$runxml};\ |
| | torun=$${torun/\%3/$$txt};\ |
| | echo "running $$torun";\ |
| | $$torun; |
| | check-html: $(CHECK_HTML) |
| | check-text: $(CHECK_TXT) |
| | clean-unit: |
| | rm autorun.xml |
| | |
| | check-local: check-html |
| | clean-local: clean-unit |
# Tell versions [3.59,3.63) of GNU make to not export all variables. | | # Tell versions [3.59,3.63) of GNU make to not export all variables. |
# Otherwise a system limit (for SysV at least) may be exceeded. | | # Otherwise a system limit (for SysV at least) may be exceeded. |
.NOEXPORT: | | .NOEXPORT: |