Makefile.am 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242
  1. # Makefile for GNU tar regression tests.
  2. # Copyright 1996-1997, 1999-2001, 2003-2007, 2009, 2012-2013 Free Software
  3. # This file is part of GNU tar.
  4. # GNU tar is free software; you can redistribute it and/or modify
  5. # it under the terms of the GNU General Public License as published by
  6. # the Free Software Foundation; either version 3 of the License, or
  7. # (at your option) any later version.
  8. # GNU tar is distributed in the hope that it will be useful,
  9. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. # GNU General Public License for more details.
  12. # You should have received a copy of the GNU General Public License
  13. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  14. EXTRA_DIST = $(TESTSUITE_AT) testsuite package.m4 star/README star/quicktest.sh
  15. DISTCLEANFILES = atconfig $(check_SCRIPTS)
  16. MAINTAINERCLEANFILES = Makefile.in $(TESTSUITE)
  17. ## ------------ ##
  18. ## package.m4. ##
  19. ## ------------ ##
  20. $(srcdir)/package.m4: $(top_srcdir)/configure.ac
  21. { \
  22. echo '# Signature of the current package.'; \
  23. echo 'm4_define([AT_PACKAGE_NAME], [@PACKAGE_NAME@])'; \
  24. echo 'm4_define([AT_PACKAGE_TARNAME], [@PACKAGE_TARNAME@])'; \
  25. echo 'm4_define([AT_PACKAGE_VERSION], [@PACKAGE_VERSION@])'; \
  26. echo 'm4_define([AT_PACKAGE_STRING], [@PACKAGE_STRING@])'; \
  27. echo 'm4_define([AT_PACKAGE_BUGREPORT], [@PACKAGE_BUGREPORT@])'; \
  28. } >$(srcdir)/package.m4
  29. #
  30. ## ------------ ##
  31. ## Test suite. ##
  32. ## ------------ ##
  33. TESTSUITE_AT = \
  34. T-empty.at\
  35. T-null.at\
  36. testsuite.at\
  37. append.at\
  38. append01.at\
  39. append02.at\
  40. append03.at\
  41. backup01.at\
  42. chtype.at\
  43. comprec.at\
  44. delete01.at\
  45. delete02.at\
  46. delete03.at\
  47. delete04.at\
  48. delete05.at\
  49. exclude.at\
  50. exclude01.at\
  51. exclude02.at\
  52. exclude03.at\
  53. exclude04.at\
  54. exclude05.at\
  55. exclude06.at\
  56. exclude07.at\
  57. exclude08.at\
  58. exclude09.at\
  59. exclude10.at\
  60. exclude11.at\
  61. exclude12.at\
  62. exclude13.at\
  63. exclude14.at\
  64. exclude15.at\
  65. exclude16.at\
  66. extrac01.at\
  67. extrac02.at\
  68. extrac03.at\
  69. extrac04.at\
  70. extrac05.at\
  71. extrac06.at\
  72. extrac07.at\
  73. extrac08.at\
  74. extrac09.at\
  75. extrac10.at\
  76. extrac11.at\
  77. extrac12.at\
  78. extrac13.at\
  79. extrac14.at\
  80. extrac15.at\
  81. extrac16.at\
  82. extrac17.at\
  83. extrac18.at\
  84. extrac19.at\
  85. filerem01.at\
  86. filerem02.at\
  87. gzip.at\
  88. grow.at\
  89. incremental.at\
  90. incr01.at\
  91. incr02.at\
  92. incr03.at\
  93. incr04.at\
  94. incr05.at\
  95. incr06.at\
  96. indexfile.at\
  97. ignfail.at\
  98. label01.at\
  99. label02.at\
  100. label03.at\
  101. label04.at\
  102. label05.at\
  103. link01.at\
  104. link02.at\
  105. link03.at\
  106. link04.at\
  107. listed01.at\
  108. listed02.at\
  109. listed03.at\
  110. listed04.at\
  111. listed05.at\
  112. long01.at\
  113. longv7.at\
  114. lustar01.at\
  115. lustar02.at\
  116. lustar03.at\
  117. multiv01.at\
  118. multiv02.at\
  119. multiv03.at\
  120. multiv04.at\
  121. multiv05.at\
  122. multiv06.at\
  123. multiv07.at\
  124. multiv08.at\
  125. old.at\
  126. opcomp01.at\
  127. opcomp02.at\
  128. opcomp03.at\
  129. opcomp04.at\
  130. opcomp05.at\
  131. opcomp06.at\
  132. options.at\
  133. options02.at\
  134. owner.at\
  135. pipe.at\
  136. recurse.at\
  137. rename01.at\
  138. rename02.at\
  139. rename03.at\
  140. rename04.at\
  141. rename05.at\
  142. remfiles01.at\
  143. remfiles02.at\
  144. remfiles03.at\
  145. same-order01.at\
  146. same-order02.at\
  147. shortfile.at\
  148. shortupd.at\
  149. shortrec.at\
  150. sigpipe.at\
  151. sparse01.at\
  152. sparse02.at\
  153. sparse03.at\
  154. sparse04.at\
  155. sparsemv.at\
  156. sparsemvp.at\
  157. spmvp00.at\
  158. spmvp01.at\
  159. spmvp10.at\
  160. time01.at\
  161. truncate.at\
  162. update.at\
  163. update01.at\
  164. update02.at\
  165. volsize.at\
  166. volume.at\
  167. verbose.at\
  168. verify.at\
  169. version.at\
  170. xform-h.at\
  171. xform01.at\
  172. star/gtarfail.at\
  173. star/gtarfail2.at\
  174. star/multi-fail.at\
  175. star/ustar-big-2g.at\
  176. star/ustar-big-8g.at\
  177. star/pax-big-10g.at\
  178. xattr01.at\
  179. xattr02.at\
  180. xattr03.at\
  181. xattr04.at\
  182. xattr05.at\
  183. acls01.at\
  184. acls02.at\
  185. selnx01.at\
  186. selacl01.at\
  187. capabs_raw01.at
  188. TESTSUITE = $(srcdir)/testsuite
  189. AUTOTEST = $(AUTOM4TE) --language=autotest
  190. $(TESTSUITE): package.m4 $(TESTSUITE_AT)
  191. $(AUTOTEST) -I $(srcdir) testsuite.at -o $@.tmp
  192. mv $@.tmp $@
  193. atconfig: $(top_builddir)/config.status
  194. cd $(top_builddir) && ./config.status tests/$@
  195. clean-local:
  196. test ! -f $(TESTSUITE) || $(SHELL) $(TESTSUITE) --clean
  197. check-local: atconfig atlocal $(TESTSUITE)
  198. $(SHELL) $(TESTSUITE) $(TESTSUITEFLAGS)
  199. check-full:
  200. FULL_TEST=1 $(MAKE) check
  201. #check_SCRIPTS = tar
  202. # Run the test suite on the *installed* tree.
  203. installcheck-local:
  204. $(SHELL) $(TESTSUITE) $(TESTSUITEFLAGS) AUTOTEST_PATH=$(exec_prefix)/bin
  205. ## ------------ ##
  206. ## genfile ##
  207. ## ------------ ##
  208. check_PROGRAMS = genfile
  209. genfile_SOURCES = genfile.c argcv.c argcv.h
  210. localedir = $(datadir)/locale
  211. AM_CPPFLAGS = \
  212. -I$(top_srcdir)/gnu\
  213. -I../gnu\
  214. -I$(top_srcdir)/gnu\
  215. -I$(top_srcdir)/lib\
  216. -DLOCALEDIR=\"$(localedir)\"
  217. LDADD = ../gnu/libgnu.a $(LIBINTL) $(LIB_CLOCK_GETTIME) $(LIB_EACCESS)