Makefile.am 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  1. # Makefile for GNU tar regression tests.
  2. # Copyright (C) 1996, 1997, 1999, 2000, 2001, 2003, 2004, 2005,
  3. # 2006, 2007 Free Software Foundation, Inc.
  4. # François Pinard <[email protected]>, 1988.
  5. # Sergey Poznyakoff <[email protected]>, 2004.
  6. ## This program is free software; you can redistribute it and/or modify
  7. ## it under the terms of the GNU General Public License as published by
  8. ## the Free Software Foundation; either version 3, or (at your option)
  9. ## any later version.
  10. ## This program is distributed in the hope that it will be useful,
  11. ## but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. ## GNU General Public License for more details.
  14. ## You should have received a copy of the GNU General Public License
  15. ## along with this program; if not, write to the Free Software
  16. ## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
  17. ## 02110-1301, USA.
  18. EXTRA_DIST = $(TESTSUITE_AT) testsuite package.m4 star/README star/quicktest.sh
  19. DISTCLEANFILES = atconfig $(check_SCRIPTS)
  20. MAINTAINERCLEANFILES = Makefile.in $(TESTSUITE)
  21. ## ------------ ##
  22. ## package.m4. ##
  23. ## ------------ ##
  24. $(srcdir)/package.m4: $(top_srcdir)/configure.ac
  25. { \
  26. echo '# Signature of the current package.'; \
  27. echo 'm4_define([AT_PACKAGE_NAME], [@PACKAGE_NAME@])'; \
  28. echo 'm4_define([AT_PACKAGE_TARNAME], [@PACKAGE_TARNAME@])'; \
  29. echo 'm4_define([AT_PACKAGE_VERSION], [@PACKAGE_VERSION@])'; \
  30. echo 'm4_define([AT_PACKAGE_STRING], [@PACKAGE_STRING@])'; \
  31. echo 'm4_define([AT_PACKAGE_BUGREPORT], [@PACKAGE_BUGREPORT@])'; \
  32. } >$(srcdir)/package.m4
  33. #
  34. ## ------------ ##
  35. ## Test suite. ##
  36. ## ------------ ##
  37. TESTSUITE_AT = \
  38. T-empty.at\
  39. T-null.at\
  40. testsuite.at\
  41. append.at\
  42. append01.at\
  43. append02.at\
  44. chtype.at\
  45. comprec.at\
  46. delete01.at\
  47. delete02.at\
  48. delete03.at\
  49. delete04.at\
  50. delete05.at\
  51. exclude.at\
  52. extrac01.at\
  53. extrac02.at\
  54. extrac03.at\
  55. extrac04.at\
  56. extrac05.at\
  57. extrac06.at\
  58. extrac07.at\
  59. gzip.at\
  60. grow.at\
  61. incremental.at\
  62. incr01.at\
  63. incr02.at\
  64. incr03.at\
  65. incr04.at\
  66. indexfile.at\
  67. ignfail.at\
  68. link01.at\
  69. listed01.at\
  70. listed02.at\
  71. long01.at\
  72. longv7.at\
  73. lustar01.at\
  74. lustar02.at\
  75. lustar03.at\
  76. multiv01.at\
  77. multiv02.at\
  78. multiv03.at\
  79. multiv04.at\
  80. multiv05.at\
  81. old.at\
  82. options.at\
  83. options02.at\
  84. pipe.at\
  85. recurse.at\
  86. rename01.at\
  87. rename02.at\
  88. rename03.at\
  89. same-order01.at\
  90. same-order02.at\
  91. shortrec.at\
  92. sparse01.at\
  93. sparse02.at\
  94. sparse03.at\
  95. sparsemv.at\
  96. sparsemvp.at\
  97. spmvp00.at\
  98. spmvp01.at\
  99. spmvp10.at\
  100. truncate.at\
  101. update.at\
  102. volsize.at\
  103. volume.at\
  104. verbose.at\
  105. version.at\
  106. star/gtarfail.at\
  107. star/gtarfail2.at\
  108. star/multi-fail.at\
  109. star/ustar-big-2g.at\
  110. star/ustar-big-8g.at\
  111. star/pax-big-10g.at
  112. TESTSUITE = $(srcdir)/testsuite
  113. AUTOTEST = $(AUTOM4TE) --language=autotest
  114. $(TESTSUITE): package.m4 $(TESTSUITE_AT)
  115. $(AUTOTEST) -I $(srcdir) testsuite.at -o [email protected]
  116. mv [email protected] $@
  117. atconfig: $(top_builddir)/config.status
  118. cd $(top_builddir) && ./config.status tests/$@
  119. clean-local:
  120. test ! -f $(TESTSUITE) || $(SHELL) $(TESTSUITE) --clean
  121. check-local: atconfig atlocal $(TESTSUITE)
  122. $(SHELL) $(TESTSUITE)
  123. check-full:
  124. FULL_TEST=1 $(MAKE) check
  125. #check_SCRIPTS = tar
  126. # Run the test suite on the *installed* tree.
  127. installcheck-local:
  128. $(SHELL) $(TESTSUITE) AUTOTEST_PATH=$(exec_prefix)/bin
  129. ## ------------ ##
  130. ## genfile ##
  131. ## ------------ ##
  132. check_PROGRAMS = genfile
  133. genfile_SOURCES = genfile.c argcv.c argcv.h
  134. localedir = $(datadir)/locale
  135. INCLUDES = -I$(top_srcdir)/lib -I../lib -I$(top_srcdir)/src
  136. AM_CPPFLAGS = -DLOCALEDIR=\"$(localedir)\"
  137. LDADD = ../lib/libtar.a $(LIBINTL) $(LIB_CLOCK_GETTIME)