Makefile.am 4.7 KB

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