Makefile.am 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166
  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. multiv06.at\
  82. old.at\
  83. options.at\
  84. options02.at\
  85. pipe.at\
  86. recurse.at\
  87. rename01.at\
  88. rename02.at\
  89. rename03.at\
  90. rename04.at\
  91. rename05.at\
  92. same-order01.at\
  93. same-order02.at\
  94. shortfile.at\
  95. shortupd.at\
  96. shortrec.at\
  97. sparse01.at\
  98. sparse02.at\
  99. sparse03.at\
  100. sparsemv.at\
  101. sparsemvp.at\
  102. spmvp00.at\
  103. spmvp01.at\
  104. spmvp10.at\
  105. truncate.at\
  106. update.at\
  107. volsize.at\
  108. volume.at\
  109. verbose.at\
  110. version.at\
  111. star/gtarfail.at\
  112. star/gtarfail2.at\
  113. star/multi-fail.at\
  114. star/ustar-big-2g.at\
  115. star/ustar-big-8g.at\
  116. star/pax-big-10g.at
  117. TESTSUITE = $(srcdir)/testsuite
  118. AUTOTEST = $(AUTOM4TE) --language=autotest
  119. $(TESTSUITE): package.m4 $(TESTSUITE_AT)
  120. $(AUTOTEST) -I $(srcdir) testsuite.at -o [email protected]
  121. mv [email protected] $@
  122. atconfig: $(top_builddir)/config.status
  123. cd $(top_builddir) && ./config.status tests/$@
  124. clean-local:
  125. test ! -f $(TESTSUITE) || $(SHELL) $(TESTSUITE) --clean
  126. check-local: atconfig atlocal $(TESTSUITE)
  127. $(SHELL) $(TESTSUITE)
  128. check-full:
  129. FULL_TEST=1 $(MAKE) check
  130. #check_SCRIPTS = tar
  131. # Run the test suite on the *installed* tree.
  132. installcheck-local:
  133. $(SHELL) $(TESTSUITE) AUTOTEST_PATH=$(exec_prefix)/bin
  134. ## ------------ ##
  135. ## genfile ##
  136. ## ------------ ##
  137. check_PROGRAMS = genfile
  138. genfile_SOURCES = genfile.c argcv.c argcv.h
  139. localedir = $(datadir)/locale
  140. INCLUDES = -I$(top_srcdir)/lib -I../lib -I$(top_srcdir)/src
  141. AM_CPPFLAGS = -DLOCALEDIR=\"$(localedir)\"
  142. LDADD = ../lib/libtar.a $(LIBINTL) $(LIB_CLOCK_GETTIME)