Makefile.am 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273
  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. incr08.at\
  105. incr09.at\
  106. indexfile.at\
  107. ignfail.at\
  108. label01.at\
  109. label02.at\
  110. label03.at\
  111. label04.at\
  112. label05.at\
  113. link01.at\
  114. link02.at\
  115. link03.at\
  116. link04.at\
  117. listed01.at\
  118. listed02.at\
  119. listed03.at\
  120. listed04.at\
  121. listed05.at\
  122. long01.at\
  123. longv7.at\
  124. lustar01.at\
  125. lustar02.at\
  126. lustar03.at\
  127. multiv01.at\
  128. multiv02.at\
  129. multiv03.at\
  130. multiv04.at\
  131. multiv05.at\
  132. multiv06.at\
  133. multiv07.at\
  134. multiv08.at\
  135. old.at\
  136. onetop01.at\
  137. onetop02.at\
  138. onetop03.at\
  139. opcomp01.at\
  140. opcomp02.at\
  141. opcomp03.at\
  142. opcomp04.at\
  143. opcomp05.at\
  144. opcomp06.at\
  145. options.at\
  146. options02.at\
  147. owner.at\
  148. pipe.at\
  149. recurse.at\
  150. rename01.at\
  151. rename02.at\
  152. rename03.at\
  153. rename04.at\
  154. rename05.at\
  155. remfiles01.at\
  156. remfiles02.at\
  157. remfiles03.at\
  158. remfiles04a.at\
  159. remfiles04b.at\
  160. remfiles04c.at\
  161. remfiles05a.at\
  162. remfiles05b.at\
  163. remfiles05c.at\
  164. remfiles06a.at\
  165. remfiles06b.at\
  166. remfiles06c.at\
  167. remfiles07a.at\
  168. remfiles07b.at\
  169. remfiles07c.at\
  170. remfiles08a.at\
  171. remfiles08b.at\
  172. remfiles08c.at\
  173. remfiles09a.at\
  174. remfiles09b.at\
  175. remfiles09c.at\
  176. same-order01.at\
  177. same-order02.at\
  178. shortfile.at\
  179. shortupd.at\
  180. shortrec.at\
  181. sigpipe.at\
  182. sparse01.at\
  183. sparse02.at\
  184. sparse03.at\
  185. sparse04.at\
  186. sparsemv.at\
  187. sparsemvp.at\
  188. spmvp00.at\
  189. spmvp01.at\
  190. spmvp10.at\
  191. time01.at\
  192. truncate.at\
  193. update.at\
  194. update01.at\
  195. update02.at\
  196. volsize.at\
  197. volume.at\
  198. verbose.at\
  199. verify.at\
  200. version.at\
  201. xform-h.at\
  202. xform01.at\
  203. star/gtarfail.at\
  204. star/gtarfail2.at\
  205. star/multi-fail.at\
  206. star/ustar-big-2g.at\
  207. star/ustar-big-8g.at\
  208. star/pax-big-10g.at\
  209. xattr01.at\
  210. xattr02.at\
  211. xattr03.at\
  212. xattr04.at\
  213. xattr05.at\
  214. acls01.at\
  215. acls02.at\
  216. selnx01.at\
  217. selacl01.at\
  218. capabs_raw01.at
  219. TESTSUITE = $(srcdir)/testsuite
  220. AUTOTEST = $(AUTOM4TE) --language=autotest
  221. $(TESTSUITE): package.m4 $(TESTSUITE_AT)
  222. $(AUTOTEST) -I $(srcdir) testsuite.at -o [email protected]
  223. mv [email protected] $@
  224. atconfig: $(top_builddir)/config.status
  225. cd $(top_builddir) && ./config.status tests/$@
  226. clean-local:
  227. test ! -f $(TESTSUITE) || $(SHELL) $(TESTSUITE) --clean
  228. check-local: atconfig atlocal $(TESTSUITE)
  229. $(SHELL) $(TESTSUITE) $(TESTSUITEFLAGS)
  230. check-full:
  231. FULL_TEST=1 $(MAKE) check
  232. #check_SCRIPTS = tar
  233. # Run the test suite on the *installed* tree.
  234. installcheck-local:
  235. $(SHELL) $(TESTSUITE) $(TESTSUITEFLAGS) AUTOTEST_PATH=$(exec_prefix)/bin
  236. ## ------------ ##
  237. ## genfile ##
  238. ## ------------ ##
  239. check_PROGRAMS = genfile
  240. genfile_SOURCES = genfile.c argcv.c argcv.h
  241. localedir = $(datadir)/locale
  242. AM_CPPFLAGS = \
  243. -I$(top_srcdir)/gnu\
  244. -I../gnu\
  245. -I$(top_srcdir)/gnu\
  246. -I$(top_srcdir)/lib\
  247. -DLOCALEDIR=\"$(localedir)\"
  248. LDADD = ../gnu/libgnu.a $(LIBINTL) $(LIB_CLOCK_GETTIME) $(LIB_EACCESS)