Makefile.am 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245
  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. T-zfile.at\
  37. T-nonl.at\
  38. testsuite.at\
  39. append.at\
  40. append01.at\
  41. append02.at\
  42. append03.at\
  43. append04.at\
  44. backup01.at\
  45. chtype.at\
  46. comprec.at\
  47. delete01.at\
  48. delete02.at\
  49. delete03.at\
  50. delete04.at\
  51. delete05.at\
  52. exclude.at\
  53. exclude01.at\
  54. exclude02.at\
  55. exclude03.at\
  56. exclude04.at\
  57. exclude05.at\
  58. exclude06.at\
  59. exclude07.at\
  60. exclude08.at\
  61. exclude09.at\
  62. exclude10.at\
  63. exclude11.at\
  64. exclude12.at\
  65. exclude13.at\
  66. exclude14.at\
  67. exclude15.at\
  68. exclude16.at\
  69. extrac01.at\
  70. extrac02.at\
  71. extrac03.at\
  72. extrac04.at\
  73. extrac05.at\
  74. extrac06.at\
  75. extrac07.at\
  76. extrac08.at\
  77. extrac09.at\
  78. extrac10.at\
  79. extrac11.at\
  80. extrac12.at\
  81. extrac13.at\
  82. extrac14.at\
  83. extrac15.at\
  84. extrac16.at\
  85. extrac17.at\
  86. extrac18.at\
  87. extrac19.at\
  88. filerem01.at\
  89. filerem02.at\
  90. gzip.at\
  91. grow.at\
  92. incremental.at\
  93. incr01.at\
  94. incr02.at\
  95. incr03.at\
  96. incr04.at\
  97. incr05.at\
  98. incr06.at\
  99. indexfile.at\
  100. ignfail.at\
  101. label01.at\
  102. label02.at\
  103. label03.at\
  104. label04.at\
  105. label05.at\
  106. link01.at\
  107. link02.at\
  108. link03.at\
  109. link04.at\
  110. listed01.at\
  111. listed02.at\
  112. listed03.at\
  113. listed04.at\
  114. listed05.at\
  115. long01.at\
  116. longv7.at\
  117. lustar01.at\
  118. lustar02.at\
  119. lustar03.at\
  120. multiv01.at\
  121. multiv02.at\
  122. multiv03.at\
  123. multiv04.at\
  124. multiv05.at\
  125. multiv06.at\
  126. multiv07.at\
  127. multiv08.at\
  128. old.at\
  129. opcomp01.at\
  130. opcomp02.at\
  131. opcomp03.at\
  132. opcomp04.at\
  133. opcomp05.at\
  134. opcomp06.at\
  135. options.at\
  136. options02.at\
  137. owner.at\
  138. pipe.at\
  139. recurse.at\
  140. rename01.at\
  141. rename02.at\
  142. rename03.at\
  143. rename04.at\
  144. rename05.at\
  145. remfiles01.at\
  146. remfiles02.at\
  147. remfiles03.at\
  148. same-order01.at\
  149. same-order02.at\
  150. shortfile.at\
  151. shortupd.at\
  152. shortrec.at\
  153. sigpipe.at\
  154. sparse01.at\
  155. sparse02.at\
  156. sparse03.at\
  157. sparse04.at\
  158. sparsemv.at\
  159. sparsemvp.at\
  160. spmvp00.at\
  161. spmvp01.at\
  162. spmvp10.at\
  163. time01.at\
  164. truncate.at\
  165. update.at\
  166. update01.at\
  167. update02.at\
  168. volsize.at\
  169. volume.at\
  170. verbose.at\
  171. verify.at\
  172. version.at\
  173. xform-h.at\
  174. xform01.at\
  175. star/gtarfail.at\
  176. star/gtarfail2.at\
  177. star/multi-fail.at\
  178. star/ustar-big-2g.at\
  179. star/ustar-big-8g.at\
  180. star/pax-big-10g.at\
  181. xattr01.at\
  182. xattr02.at\
  183. xattr03.at\
  184. xattr04.at\
  185. xattr05.at\
  186. acls01.at\
  187. acls02.at\
  188. selnx01.at\
  189. selacl01.at\
  190. capabs_raw01.at
  191. TESTSUITE = $(srcdir)/testsuite
  192. AUTOTEST = $(AUTOM4TE) --language=autotest
  193. $(TESTSUITE): package.m4 $(TESTSUITE_AT)
  194. $(AUTOTEST) -I $(srcdir) testsuite.at -o [email protected]
  195. mv [email protected] $@
  196. atconfig: $(top_builddir)/config.status
  197. cd $(top_builddir) && ./config.status tests/$@
  198. clean-local:
  199. test ! -f $(TESTSUITE) || $(SHELL) $(TESTSUITE) --clean
  200. check-local: atconfig atlocal $(TESTSUITE)
  201. $(SHELL) $(TESTSUITE) $(TESTSUITEFLAGS)
  202. check-full:
  203. FULL_TEST=1 $(MAKE) check
  204. #check_SCRIPTS = tar
  205. # Run the test suite on the *installed* tree.
  206. installcheck-local:
  207. $(SHELL) $(TESTSUITE) $(TESTSUITEFLAGS) AUTOTEST_PATH=$(exec_prefix)/bin
  208. ## ------------ ##
  209. ## genfile ##
  210. ## ------------ ##
  211. check_PROGRAMS = genfile
  212. genfile_SOURCES = genfile.c argcv.c argcv.h
  213. localedir = $(datadir)/locale
  214. AM_CPPFLAGS = \
  215. -I$(top_srcdir)/gnu\
  216. -I../gnu\
  217. -I$(top_srcdir)/gnu\
  218. -I$(top_srcdir)/lib\
  219. -DLOCALEDIR=\"$(localedir)\"
  220. LDADD = ../gnu/libgnu.a $(LIBINTL) $(LIB_CLOCK_GETTIME) $(LIB_EACCESS)