Makefile.am 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313
  1. # Makefile for GNU tar regression tests.
  2. # Copyright 1996-1997, 1999-2001, 2003-2007, 2009, 2012-2015 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. testsuite.at\
  35. T-cd.at\
  36. T-dir00.at\
  37. T-dir01.at\
  38. T-empty.at\
  39. T-null.at\
  40. T-null2.at\
  41. T-rec.at\
  42. T-recurse.at\
  43. T-zfile.at\
  44. T-nonl.at\
  45. T-mult.at\
  46. T-nest.at\
  47. add-file.at\
  48. append.at\
  49. append01.at\
  50. append02.at\
  51. append03.at\
  52. append04.at\
  53. append05.at\
  54. backup01.at\
  55. chtype.at\
  56. comprec.at\
  57. comperr.at\
  58. delete01.at\
  59. delete02.at\
  60. delete03.at\
  61. delete04.at\
  62. delete05.at\
  63. difflink.at\
  64. exclude.at\
  65. exclude01.at\
  66. exclude02.at\
  67. exclude03.at\
  68. exclude04.at\
  69. exclude05.at\
  70. exclude06.at\
  71. exclude07.at\
  72. exclude08.at\
  73. exclude09.at\
  74. exclude10.at\
  75. exclude11.at\
  76. exclude12.at\
  77. exclude13.at\
  78. exclude14.at\
  79. exclude15.at\
  80. exclude16.at\
  81. extrac01.at\
  82. extrac02.at\
  83. extrac03.at\
  84. extrac04.at\
  85. extrac05.at\
  86. extrac06.at\
  87. extrac07.at\
  88. extrac08.at\
  89. extrac09.at\
  90. extrac10.at\
  91. extrac11.at\
  92. extrac12.at\
  93. extrac13.at\
  94. extrac14.at\
  95. extrac15.at\
  96. extrac16.at\
  97. extrac17.at\
  98. extrac18.at\
  99. extrac19.at\
  100. extrac20.at\
  101. extrac21.at\
  102. filerem01.at\
  103. filerem02.at\
  104. dirrem01.at\
  105. dirrem02.at\
  106. gzip.at\
  107. grow.at\
  108. incremental.at\
  109. incr01.at\
  110. incr02.at\
  111. incr03.at\
  112. incr04.at\
  113. incr05.at\
  114. incr06.at\
  115. incr07.at\
  116. incr08.at\
  117. incr09.at\
  118. incr10.at\
  119. incr11.at\
  120. indexfile.at\
  121. ignfail.at\
  122. label01.at\
  123. label02.at\
  124. label03.at\
  125. label04.at\
  126. label05.at\
  127. link01.at\
  128. link02.at\
  129. link03.at\
  130. link04.at\
  131. listed01.at\
  132. listed02.at\
  133. listed03.at\
  134. listed04.at\
  135. listed05.at\
  136. long01.at\
  137. longv7.at\
  138. lustar01.at\
  139. lustar02.at\
  140. lustar03.at\
  141. map.at\
  142. multiv01.at\
  143. multiv02.at\
  144. multiv03.at\
  145. multiv04.at\
  146. multiv05.at\
  147. multiv06.at\
  148. multiv07.at\
  149. multiv08.at\
  150. multiv09.at\
  151. multiv10.at\
  152. numeric.at\
  153. old.at\
  154. onetop01.at\
  155. onetop02.at\
  156. onetop03.at\
  157. onetop04.at\
  158. onetop05.at\
  159. opcomp01.at\
  160. opcomp02.at\
  161. opcomp03.at\
  162. opcomp04.at\
  163. opcomp05.at\
  164. opcomp06.at\
  165. positional01.at\
  166. positional02.at\
  167. positional03.at\
  168. options.at\
  169. options02.at\
  170. options03.at\
  171. owner.at\
  172. pipe.at\
  173. recurse.at\
  174. recurs02.at\
  175. rename01.at\
  176. rename02.at\
  177. rename03.at\
  178. rename04.at\
  179. rename05.at\
  180. remfiles01.at\
  181. remfiles02.at\
  182. remfiles03.at\
  183. remfiles04a.at\
  184. remfiles04b.at\
  185. remfiles04c.at\
  186. remfiles05a.at\
  187. remfiles05b.at\
  188. remfiles05c.at\
  189. remfiles06a.at\
  190. remfiles06b.at\
  191. remfiles06c.at\
  192. remfiles07a.at\
  193. remfiles07b.at\
  194. remfiles07c.at\
  195. remfiles08a.at\
  196. remfiles08b.at\
  197. remfiles08c.at\
  198. remfiles09a.at\
  199. remfiles09b.at\
  200. remfiles09c.at\
  201. remfiles10.at\
  202. same-order01.at\
  203. same-order02.at\
  204. shortfile.at\
  205. shortupd.at\
  206. shortrec.at\
  207. sigpipe.at\
  208. sparse01.at\
  209. sparse02.at\
  210. sparse03.at\
  211. sparse04.at\
  212. sparse05.at\
  213. sparse06.at\
  214. sparse07.at\
  215. sparsemv.at\
  216. sparsemvp.at\
  217. spmvp00.at\
  218. spmvp01.at\
  219. spmvp10.at\
  220. time01.at\
  221. time02.at\
  222. truncate.at\
  223. update.at\
  224. update01.at\
  225. update02.at\
  226. update03.at\
  227. volsize.at\
  228. volume.at\
  229. verbose.at\
  230. verify.at\
  231. version.at\
  232. xform-h.at\
  233. xform01.at\
  234. xform02.at\
  235. xform03.at\
  236. star/gtarfail.at\
  237. star/gtarfail2.at\
  238. star/multi-fail.at\
  239. star/ustar-big-2g.at\
  240. star/ustar-big-8g.at\
  241. star/pax-big-10g.at\
  242. xattr01.at\
  243. xattr02.at\
  244. xattr03.at\
  245. xattr04.at\
  246. xattr05.at\
  247. xattr06.at\
  248. xattr07.at\
  249. acls01.at\
  250. acls02.at\
  251. acls03.at\
  252. selnx01.at\
  253. selacl01.at\
  254. capabs_raw01.at
  255. distclean-local:
  256. -rm -rf download
  257. TESTSUITE = $(srcdir)/testsuite
  258. AUTOTEST = $(AUTOM4TE) --language=autotest
  259. $(TESTSUITE): package.m4 $(TESTSUITE_AT)
  260. $(AUTOTEST) -I $(srcdir) testsuite.at -o [email protected]
  261. mv [email protected] $@
  262. atconfig: $(top_builddir)/config.status
  263. cd $(top_builddir) && ./config.status tests/$@
  264. clean-local:
  265. test ! -f $(TESTSUITE) || $(SHELL) $(TESTSUITE) --clean
  266. check-local: atconfig atlocal $(TESTSUITE)
  267. $(SHELL) $(TESTSUITE) $(TESTSUITEFLAGS)
  268. check-full:
  269. FULL_TEST=1 $(MAKE) check
  270. #check_SCRIPTS = tar
  271. # Run the test suite on the *installed* tree.
  272. installcheck-local: $(check_PROGRAMS)
  273. $(SHELL) $(TESTSUITE) $(TESTSUITEFLAGS) AUTOTEST_PATH=$(exec_prefix)/bin
  274. ## ------------ ##
  275. ## genfile ##
  276. ## ------------ ##
  277. check_PROGRAMS = genfile checkseekhole ckmtime
  278. genfile_SOURCES = genfile.c argcv.c argcv.h
  279. checkseekhole_SOURCES = checkseekhole.c
  280. localedir = $(datadir)/locale
  281. AM_CPPFLAGS = \
  282. -I$(top_srcdir)/gnu\
  283. -I../gnu\
  284. -I$(top_srcdir)/gnu\
  285. -I$(top_srcdir)/lib\
  286. -DLOCALEDIR=\"$(localedir)\"
  287. LDADD = ../gnu/libgnu.a $(LIBINTL) $(LIB_CLOCK_GETTIME) $(LIB_EACCESS)