github.com/matislovas/ratago@v0.0.0-20240408115641-cc0857415a7a/xslt/testdata/general/Makefile.am (about)

     1  ## Process this file with automake to produce Makefile.in
     2  
     3  $(top_builddir)/xsltproc/xsltproc:
     4  	@(cd ../../xsltproc ; $(MAKE) xsltproc)
     5  
     6  EXTRA_DIST = \
     7      bug-1-.out bug-1-.xsl \
     8      bug-2-.out bug-2-.xsl \
     9      bug-3-.out bug-3-.xsl \
    10      bug-4-.out bug-4-.xsl \
    11      bug-5-.out bug-5-.xsl \
    12      bug-6-.out bug-6-.xsl \
    13      bug-7-.out bug-7-.xsl \
    14      bug-8-.out bug-8-.xsl \
    15      bug-9-.out bug-9-.xsl \
    16      bug-10-.out bug-10-.xsl \
    17      bug-11-.out bug-11-.xsl \
    18      bug-12-.out bug-12-.xsl \
    19      bug-13-.out bug-13-.xsl \
    20      bug-14-.out bug-14-.xsl \
    21      bug-15-.out bug-15-.xsl \
    22      bug-16-.out bug-16-.xsl \
    23      bug-17-.out bug-17-.xsl \
    24      bug-18-.out bug-18-.xsl \
    25      bug-19-.out bug-19-.xsl \
    26      bug-20-.out bug-20-.xsl \
    27      bug-21-.out bug-21-.xsl \
    28      bug-22-.out bug-22-.xsl \
    29      bug-23-.out bug-23-.xsl \
    30      bug-24-.out bug-24-.xsl \
    31      bug-25-.out bug-25-.xsl \
    32      bug-26-.out bug-26-.xsl \
    33      bug-27-.out bug-27-.xsl \
    34      bug-28-.out bug-28-.xsl \
    35      bug-29-.out bug-29-.xsl \
    36      bug-30-.out bug-30-.xsl \
    37      bug-31-.out bug-31-.xsl \
    38      bug-32-.out bug-32-.xsl \
    39      bug-33-.out bug-33-.xsl \
    40      bug-35-.out bug-35-.xsl \
    41      bug-36-.out bug-36-.xsl \
    42      bug-36-inc.out bug-36-inc.xsl \
    43      bug-37-.out bug-37-.xsl \
    44      bug-37-inc.out bug-37-inc.xsl \
    45      array.out array.xsl \
    46      bug-38-.out bug-38-.xsl \
    47      bug-39-.out bug-39-.xsl \
    48      bug-40-.out bug-40-.xsl \
    49      bug-41-.out bug-41-.xsl \
    50      bug-42-.out bug-42-.xsl \
    51      bug-43-.out bug-43-.xsl \
    52      bug-44-.out bug-44-.xsl \
    53      bug-45-.out bug-45-.xsl \
    54      bug-46-.out bug-46-.xsl \
    55      bug-47-.out bug-47-.xsl \
    56      bug-48-.out bug-48-.xsl \
    57      bug-49-.out bug-49-.xsl \
    58      bug-50-.out bug-50-.xsl \
    59      bug-52.out bug-52.xsl \
    60      bug-53.out bug-53.xsl \
    61      bug-54.out bug-54.xsl \
    62      bug-55.out bug-55.xsl \
    63      bug-56.out bug-56.xsl \
    64      bug-57.out bug-57.xsl \
    65      bug-59.out bug-59.xsl \
    66      bug-60.out bug-60.xsl bug-60.err \
    67      bug-61.out bug-61.xsl \
    68      bug-62-inc.out bug-62-inc.xsl \
    69      bug-62.out bug-62.xsl \
    70      bug-63.out bug-63.xsl \
    71      bug-64.out bug-64.xsl \
    72      bug-65.ent bug-65.out bug-65.xsl \
    73      bug-66.out bug-66.xsl \
    74      bug-68.out bug-68.xsl \
    75      bug-69.out bug-69.xsl \
    76      bug-70.out bug-70.xsl \
    77      bug-71.out bug-71.xsl \
    78      bug-72.out bug-72.xsl \
    79      bug-73.out bug-73.xsl \
    80      bug-74.out bug-74.xsl \
    81      bug-75.out bug-75.xsl \
    82      bug-76.out bug-76.xsl \
    83      bug-77.out bug-77.xsl \
    84      bug-78.out bug-78.xsl \
    85      bug-79.out bug-79.xsl \
    86      bug-80.out bug-80.xsl \
    87      bug-81.out bug-81.xsl \
    88      bug-82.out bug-82.xsl \
    89      bug-83.out bug-83.xsl \
    90      bug-84.out bug-84.xsl \
    91      bug-86.out bug-86.xsl \
    92      bug-87.out bug-87.xsl \
    93      bug-88.out bug-88.xsl \
    94      bug-89.out bug-89.xsl \
    95      bug-90.out bug-90.xsl \
    96      bug-91.out bug-91.xsl \
    97      bug-92.out bug-92.xsl \
    98      bug-93.out bug-93.xsl \
    99      bug-93-inc.out bug-93-inc.xsl \
   100      bug-94.out bug-94.xsl \
   101      bug-95.out bug-95.xsl \
   102      bug-96.out bug-96.xsl \
   103      bug-97.out bug-97.xsl \
   104      bug-98.out bug-98.xsl \
   105      bug-99.out bug-99.xsl \
   106      bug-100.out bug-100.xsl \
   107      bug-101.out bug-101.xsl \
   108      bug-102.out bug-102.xsl \
   109      bug-102-inc.out bug-102-inc.xsl \
   110      bug-103.out bug-103.xsl \
   111      bug-104.out bug-104.xsl \
   112      bug-105.out bug-105.xsl \
   113      bug-106.out bug-106.xsl \
   114      bug-107.out bug-107.xsl \
   115      bug-108.out bug-108.xsl \
   116      bug-109.out bug-109.xsl \
   117      bug-110.out bug-110.xsl \
   118      bug-111.out bug-111.xsl \
   119      bug-112.out bug-112.xsl \
   120      bug-113.out bug-113.xsl \
   121      bug-114.out bug-114.xsl \
   122      bug-115.out bug-115.xsl \
   123      bug-116.out bug-116.xsl \
   124      bug-117.out bug-117.xsl \
   125      bug-118.out bug-118.xsl \
   126      bug-119.out bug-119.xsl \
   127      bug-120.out bug-120.xsl \
   128      bug-121.out bug-121.xsl \
   129      bug-122.out bug-122.xsl \
   130      bug-123.out bug-123.xsl \
   131      bug-124.out bug-124.xsl \
   132      bug-125.out bug-125.xsl \
   133      bug-126.out bug-126.xsl \
   134      bug-127.out bug-127.xsl \
   135      bug-128.out bug-128.xsl \
   136      bug-129.out bug-129.xsl \
   137      bug-130.out bug-130.xsl \
   138      bug-130-imp1.imp bug-130-imp2.imp bug-130-imp3.imp bug-130-imp4.imp \
   139      bug-131.out bug-131.xsl bug-131-imp.imp \
   140      bug-132.out bug-132.xsl \
   141      bug-133.out bug-133.xsl \
   142      bug-134.out bug-134.xsl \
   143      bug-135.out bug-135.xsl \
   144      bug-136.out bug-136.xsl \
   145      bug-137.imp  bug-137.out  bug-137.xsl \
   146      bug-138.out bug-138.xsl \
   147      bug-139.out bug-139.xsl \
   148      bug-140.out bug-140.xsl \
   149      bug-141.out bug-141.xsl \
   150      bug-142.out bug-142.xsl \
   151      bug-143.out bug-143.xsl \
   152      bug-144.out bug-144.xsl \
   153      bug-145.out bug-145.xsl bug-145.err \
   154      bug-146.out bug-146.xsl \
   155      bug-147.out bug-147.xsl \
   156      bug-147-1.imp bug-147-2.imp bug-147-3.imp \
   157      bug-147-4.imp bug-147-5.imp bug-147-6.imp \
   158      bug-148.out bug-148.xsl \
   159      bug-149.out bug-149.xsl \
   160      bug-150.out bug-150.xsl \
   161      bug-151.out bug-151.xsl \
   162      bug-152.out bug-152.xsl \
   163      bug-153.out bug-153.xsl \
   164      bug-154.out bug-154.xsl \
   165      bug-155.out bug-155.xsl \
   166      bug-156.err bug-156.out bug-156.xsl \
   167      bug-156.imp1.imp bug-156.imp2.imp \
   168      bug-157.err bug-157.out bug-157.xsl \
   169      bug-158.out bug-158.xsl \
   170      bug-159.out bug-159.xsl \
   171      bug-160.out bug-160.xsl \
   172      bug-161.out bug-161.xsl \
   173      bug-163.out bug-163.xsl \
   174      bug-164.out bug-164.xsl \
   175      bug-165.out bug-165.xsl bug-165.err \
   176      bug-166.out bug-166.xsl \
   177      bug-167.out bug-167.xsl \
   178      bug-168.out bug-168.xsl \
   179      bug-169.out bug-169.xsl bug-169.imp \
   180      bug-170.out bug-170.xsl \
   181      bug-171.out bug-171.xsl \
   182      bug-172.out bug-172.xsl \
   183      bug-173.out bug-173.xsl \
   184      bug-174.out bug-174.xsl bug-174.err \
   185      bug-175.out bug-175.xsl bug-175.err \
   186      bug-176.out bug-176.xsl \
   187      bug-177.out bug-177.xsl \
   188      bug-178.out bug-178.xsl \
   189      bug-179.out bug-179.xsl \
   190      bug-180.out bug-180.xsl bug-180.err \
   191      bug-181.out bug-181.xsl \
   192      bug-182.out bug-182.xsl \
   193      character.out character.xsl \
   194      character2.out character2.xsl \
   195      itemschoose.out itemschoose.xsl \
   196      inner.xsl date_add.xsl
   197  
   198  CLEANFILES = .memdump
   199  
   200  valgrind:
   201  	@echo '## Running the regression tests under Valgrind'
   202  	$(MAKE) CHECKER='valgrind -q' tests
   203  
   204  test tests: $(top_builddir)/xsltproc/xsltproc
   205  	@echo '## Running general tests'
   206  	@(echo > .memdump)
   207  	-@(for i in $(srcdir)/../docs/*.xml ; do \
   208  	  if [ -d $$i ] ; then continue ; fi ; \
   209  	  doc=`basename $$i .xml` ; \
   210  	  for j in $(srcdir)/$$doc*.xsl ; do \
   211  	  if [ ! -f $$j ] ; then continue ; fi ; \
   212  	  if [ -d $$j ] ; then continue ; fi ; \
   213  	  name=`basename $$j .xsl`; \
   214  	  out=$(srcdir)/"$$name".out; \
   215  	  err=$(srcdir)/"$$name".err; \
   216  	  log=`$(CHECKER) $(top_builddir)/xsltproc/xsltproc $$j $$i \
   217  	  	> result.$$name 2>err.$$name; \
   218  	  if [ ! -f $$out ] ; then \
   219  	  	cp result.$$name $$out ; \
   220  		if [ -s err.$$name ] ; then \
   221  			cp err.$$name $$err ; \
   222  		fi ; \
   223  	  else \
   224  	  	diff $$out result.$$name; \
   225  		if [ -s $$err ] ; then \
   226  	  		diff $$err err.$$name; \
   227  		else \
   228  			diff /dev/null err.$$name; \
   229  		fi ; \
   230  	  fi ; \
   231  	  grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0" || true`;\
   232  	  if [ -n "$$log" ] ; then \
   233  	  	echo $$name result ; \
   234  		echo "$$log" ; \
   235  	  fi ; \
   236  	  rm -f result.$$name err.$$name; \
   237  	  done ; done)
   238  	@echo '## Running general tests without dictionaries'
   239  	-@(for i in $(srcdir)/../docs/*.xml ; do \
   240  	  if [ -d $$i ] ; then continue ; fi ; \
   241  	  doc=`basename $$i .xml` ; \
   242  	  for j in $(srcdir)/$$doc*.xsl ; do \
   243  	  if [ ! -f $$j ] ; then continue ; fi ; \
   244  	  if [ -d $$j ] ; then continue ; fi ; \
   245  	  name=`basename $$j .xsl`; \
   246  	  out=$(srcdir)/"$$name".out; \
   247  	  err=$(srcdir)/"$$name".err; \
   248  	  log=`$(CHECKER) $(top_builddir)/xsltproc/xsltproc --nodict $$j $$i \
   249  	  	> result.$$name 2>err.$$name; \
   250  	  if [ ! -f $$out ] ; then \
   251  	  	cp result.$$name $$out ; \
   252  		if [ -s err.$$name ] ; then \
   253  			cp err.$$name $$err ; \
   254  		fi ; \
   255  	  else \
   256  	  	diff $$out result.$$name; \
   257  		if [ -s $$err ] ; then \
   258  	  		diff $$err err.$$name; \
   259  		else \
   260  			diff /dev/null err.$$name; \
   261  		fi ; \
   262  	  fi ; \
   263  	  grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0" || true`;\
   264  	  if [ -n "$$log" ] ; then \
   265  	  	echo $$name result ; \
   266  		echo "$$log" ; \
   267  	  fi ; \
   268  	  rm -f result.$$name err.$$name; \
   269  	  done ; done)
   270