Makefile.am 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  1. # Makefile for GNU tar regression tests.
  2. # Copyright (C) 1996, 1997, 1999, 2000, 2001, 2003, 2004, 2005,
  3. # 2006 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 2, 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. testsuite.at\
  39. append.at\
  40. append01.at\
  41. append02.at\
  42. chtype.at\
  43. comprec.at\
  44. delete01.at\
  45. delete02.at\
  46. delete03.at\
  47. delete04.at\
  48. delete05.at\
  49. extrac01.at\
  50. extrac02.at\
  51. extrac03.at\
  52. extrac04.at\
  53. extrac05.at\
  54. extrac06.at\
  55. gzip.at\
  56. incremental.at\
  57. incr01.at\
  58. incr02.at\
  59. incr03.at\
  60. incr04.at\
  61. indexfile.at\
  62. ignfail.at\
  63. link01.at\
  64. listed01.at\
  65. listed02.at\
  66. long01.at\
  67. longv7.at\
  68. lustar01.at\
  69. lustar02.at\
  70. lustar03.at\
  71. multiv01.at\
  72. multiv02.at\
  73. multiv03.at\
  74. multiv04.at\
  75. multiv05.at\
  76. old.at\
  77. options.at\
  78. options02.at\
  79. pipe.at\
  80. recurse.at\
  81. rename01.at\
  82. rename02.at\
  83. rename03.at\
  84. same-order01.at\
  85. same-order02.at\
  86. shortrec.at\
  87. sparse01.at\
  88. sparse02.at\
  89. sparse03.at\
  90. sparsemv.at\
  91. sparsemvp.at\
  92. spmvp00.at\
  93. spmvp01.at\
  94. spmvp10.at\
  95. truncate.at\
  96. update.at\
  97. volsize.at\
  98. volume.at\
  99. verbose.at\
  100. version.at\
  101. star/gtarfail.at\
  102. star/gtarfail2.at\
  103. star/multi-fail.at\
  104. star/ustar-big-2g.at\
  105. star/ustar-big-8g.at\
  106. star/pax-big-10g.at
  107. TESTSUITE = $(srcdir)/testsuite
  108. AUTOTEST = $(AUTOM4TE) --language=autotest
  109. $(TESTSUITE): package.m4 $(TESTSUITE_AT)
  110. $(AUTOTEST) -I $(srcdir) testsuite.at -o [email protected]
  111. mv [email protected] $@
  112. atconfig: $(top_builddir)/config.status
  113. cd $(top_builddir) && ./config.status tests/$@
  114. clean-local:
  115. test ! -f $(TESTSUITE) || $(SHELL) $(TESTSUITE) --clean
  116. check-local: atconfig atlocal $(TESTSUITE)
  117. $(SHELL) $(TESTSUITE)
  118. check-full:
  119. FULL_TEST=1 $(MAKE) check
  120. #check_SCRIPTS = tar
  121. # Run the test suite on the *installed* tree.
  122. installcheck-local:
  123. $(SHELL) $(TESTSUITE) AUTOTEST_PATH=$(exec_prefix)/bin
  124. ## ------------ ##
  125. ## genfile ##
  126. ## ------------ ##
  127. check_PROGRAMS = genfile
  128. genfile_SOURCES = genfile.c argcv.c argcv.h
  129. localedir = $(datadir)/locale
  130. INCLUDES = -I$(top_srcdir)/lib -I../lib -I$(top_srcdir)/src
  131. AM_CPPFLAGS = -DLOCALEDIR=\"$(localedir)\"
  132. LDADD = ../lib/libtar.a $(LIBINTL) $(LIB_CLOCK_GETTIME)