Makefile.am 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367
  1. # Makefile for GNU tar regression tests.
  2. # Copyright 1996-2019 Free Software Foundation, Inc.
  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) \
  15. testsuite package.m4 star/README star/quicktest.sh \
  16. compress.at.in
  17. DISTCLEANFILES = atconfig $(check_SCRIPTS)
  18. MAINTAINERCLEANFILES = Makefile.in $(TESTSUITE)
  19. CLEANFILES =
  20. ## ------------ ##
  21. ## package.m4. ##
  22. ## ------------ ##
  23. $(srcdir)/package.m4: $(top_srcdir)/configure.ac
  24. { \
  25. echo '# Signature of the current package.'; \
  26. echo 'm4_define([AT_PACKAGE_NAME], [@PACKAGE_NAME@])'; \
  27. echo 'm4_define([AT_PACKAGE_TARNAME], [@PACKAGE_TARNAME@])'; \
  28. echo 'm4_define([AT_PACKAGE_VERSION], [@PACKAGE_VERSION@])'; \
  29. echo 'm4_define([AT_PACKAGE_STRING], [@PACKAGE_STRING@])'; \
  30. echo 'm4_define([AT_PACKAGE_BUGREPORT], [@PACKAGE_BUGREPORT@])'; \
  31. } >$(srcdir)/package.m4
  32. #
  33. ## ------------ ##
  34. ## Test suite. ##
  35. ## ------------ ##
  36. TESTSUITE_AT = \
  37. testsuite.at\
  38. T-cd.at\
  39. T-dir00.at\
  40. T-dir01.at\
  41. T-empty.at\
  42. T-null.at\
  43. T-null2.at\
  44. T-rec.at\
  45. T-recurse.at\
  46. T-zfile.at\
  47. T-nonl.at\
  48. T-mult.at\
  49. T-nest.at\
  50. add-file.at\
  51. append.at\
  52. append01.at\
  53. append02.at\
  54. append03.at\
  55. append04.at\
  56. append05.at\
  57. backup01.at\
  58. chtype.at\
  59. comprec.at\
  60. comperr.at\
  61. compress-zstd.at\
  62. compress-xz.at\
  63. compress-bzip2.at\
  64. compress-gzip.at\
  65. compress-lzip.at\
  66. compress-lzop.at\
  67. checkpoint/defaults.at\
  68. checkpoint/interval.at\
  69. checkpoint/dot.at\
  70. checkpoint/dot-compat.at\
  71. checkpoint/dot-int.at\
  72. delete01.at\
  73. delete02.at\
  74. delete03.at\
  75. delete04.at\
  76. delete05.at\
  77. difflink.at\
  78. exclude.at\
  79. exclude01.at\
  80. exclude02.at\
  81. exclude03.at\
  82. exclude04.at\
  83. exclude05.at\
  84. exclude06.at\
  85. exclude07.at\
  86. exclude08.at\
  87. exclude09.at\
  88. exclude10.at\
  89. exclude11.at\
  90. exclude12.at\
  91. exclude13.at\
  92. exclude14.at\
  93. exclude15.at\
  94. exclude16.at\
  95. extrac01.at\
  96. extrac02.at\
  97. extrac03.at\
  98. extrac04.at\
  99. extrac05.at\
  100. extrac06.at\
  101. extrac07.at\
  102. extrac08.at\
  103. extrac09.at\
  104. extrac10.at\
  105. extrac11.at\
  106. extrac12.at\
  107. extrac13.at\
  108. extrac14.at\
  109. extrac15.at\
  110. extrac16.at\
  111. extrac17.at\
  112. extrac18.at\
  113. extrac19.at\
  114. extrac20.at\
  115. extrac21.at\
  116. filerem01.at\
  117. filerem02.at\
  118. dirrem01.at\
  119. dirrem02.at\
  120. gzip.at\
  121. grow.at\
  122. incremental.at\
  123. incr01.at\
  124. incr02.at\
  125. incr03.at\
  126. incr04.at\
  127. incr05.at\
  128. incr06.at\
  129. incr07.at\
  130. incr08.at\
  131. incr09.at\
  132. incr10.at\
  133. incr11.at\
  134. indexfile.at\
  135. ignfail.at\
  136. label01.at\
  137. label02.at\
  138. label03.at\
  139. label04.at\
  140. label05.at\
  141. link01.at\
  142. link02.at\
  143. link03.at\
  144. link04.at\
  145. listed01.at\
  146. listed02.at\
  147. listed03.at\
  148. listed04.at\
  149. listed05.at\
  150. long01.at\
  151. longv7.at\
  152. lustar01.at\
  153. lustar02.at\
  154. lustar03.at\
  155. map.at\
  156. multiv01.at\
  157. multiv02.at\
  158. multiv03.at\
  159. multiv04.at\
  160. multiv05.at\
  161. multiv06.at\
  162. multiv07.at\
  163. multiv08.at\
  164. multiv09.at\
  165. multiv10.at\
  166. numeric.at\
  167. old.at\
  168. onetop01.at\
  169. onetop02.at\
  170. onetop03.at\
  171. onetop04.at\
  172. onetop05.at\
  173. opcomp01.at\
  174. opcomp02.at\
  175. opcomp03.at\
  176. opcomp04.at\
  177. opcomp05.at\
  178. opcomp06.at\
  179. positional01.at\
  180. positional02.at\
  181. positional03.at\
  182. options.at\
  183. options02.at\
  184. options03.at\
  185. owner.at\
  186. pipe.at\
  187. recurse.at\
  188. recurs02.at\
  189. rename01.at\
  190. rename02.at\
  191. rename03.at\
  192. rename04.at\
  193. rename05.at\
  194. remfiles01.at\
  195. remfiles02.at\
  196. remfiles03.at\
  197. remfiles04a.at\
  198. remfiles04b.at\
  199. remfiles04c.at\
  200. remfiles05a.at\
  201. remfiles05b.at\
  202. remfiles05c.at\
  203. remfiles06a.at\
  204. remfiles06b.at\
  205. remfiles06c.at\
  206. remfiles07a.at\
  207. remfiles07b.at\
  208. remfiles07c.at\
  209. remfiles08a.at\
  210. remfiles08b.at\
  211. remfiles08c.at\
  212. remfiles09a.at\
  213. remfiles09b.at\
  214. remfiles09c.at\
  215. remfiles10.at\
  216. same-order01.at\
  217. same-order02.at\
  218. shortfile.at\
  219. shortupd.at\
  220. shortrec.at\
  221. sigpipe.at\
  222. sparse01.at\
  223. sparse02.at\
  224. sparse03.at\
  225. sparse04.at\
  226. sparse05.at\
  227. sparse06.at\
  228. sparse07.at\
  229. sparsemv.at\
  230. sparsemvp.at\
  231. spmvp00.at\
  232. spmvp01.at\
  233. spmvp10.at\
  234. sptrcreat.at\
  235. sptrdiff00.at\
  236. sptrdiff01.at\
  237. time01.at\
  238. time02.at\
  239. truncate.at\
  240. update.at\
  241. update01.at\
  242. update02.at\
  243. update03.at\
  244. volsize.at\
  245. volume.at\
  246. verbose.at\
  247. verify.at\
  248. version.at\
  249. xform-h.at\
  250. xform01.at\
  251. xform02.at\
  252. xform03.at\
  253. star/gtarfail.at\
  254. star/gtarfail2.at\
  255. star/multi-fail.at\
  256. star/ustar-big-2g.at\
  257. star/ustar-big-8g.at\
  258. star/pax-big-10g.at\
  259. xattr01.at\
  260. xattr02.at\
  261. xattr03.at\
  262. xattr04.at\
  263. xattr05.at\
  264. xattr06.at\
  265. xattr07.at\
  266. acls01.at\
  267. acls02.at\
  268. acls03.at\
  269. selnx01.at\
  270. selacl01.at\
  271. capabs_raw01.at
  272. CLEANFILES += compress-zstd.at
  273. compress-zstd.at: compress.at.in
  274. $(AM_V_GEN)rm -rf $@ $@-t
  275. $(AM_V_at)sed 's/@tool@/zstd/g;s/@suff@/zst/g;s/@suff2@/tzst/g;' \
  276. $(srcdir)/compress.at.in > $@-t && chmod a-w $@-t && mv $@-t $@
  277. CLEANFILES += compress-gzip.at
  278. compress-gzip.at: compress.at.in
  279. $(AM_V_GEN)rm -rf $@ $@-t
  280. $(AM_V_at)sed 's/@tool@/gzip/g;s/@suff@/gz/g;s/@suff2@/tgz/g;' \
  281. $(srcdir)/compress.at.in > $@-t && chmod a-w $@-t && mv $@-t $@
  282. CLEANFILES += compress-xz.at
  283. compress-xz.at: compress.at.in
  284. $(AM_V_GEN)rm -rf $@ $@-t
  285. $(AM_V_at)sed 's/@tool@/xz/g;s/@suff@/xz/g;s/@suff2@/txz/g;' \
  286. $(srcdir)/compress.at.in > $@-t && chmod a-w $@-t && mv $@-t $@
  287. CLEANFILES += compress-bzip2.at
  288. compress-bzip2.at: compress.at.in
  289. $(AM_V_GEN)rm -rf $@ $@-t
  290. $(AM_V_at)sed 's/@tool@/bzip2/g;s/@suff@/bz2/g;s/@suff2@/tbz2/g;' \
  291. $(srcdir)/compress.at.in > $@-t && chmod a-w $@-t && mv $@-t $@
  292. CLEANFILES += compress-lzip.at
  293. compress-lzip.at: compress.at.in
  294. $(AM_V_GEN)rm -rf $@ $@-t
  295. $(AM_V_at)sed 's/@tool@/lzip/g;s/@suff@/lz/g;s/@suff2@//g;' \
  296. $(srcdir)/compress.at.in > $@-t && chmod a-w $@-t && mv $@-t $@
  297. CLEANFILES += compress-lzop.at
  298. compress-lzop.at: compress.at.in
  299. $(AM_V_GEN)rm -rf $@ $@-t
  300. $(AM_V_at)sed 's/@tool@/lzop/g;s/@suff@/lzo/g;s/@suff2@//g;' \
  301. $(srcdir)/compress.at.in > $@-t && chmod a-w $@-t && mv $@-t $@
  302. distclean-local:
  303. -rm -rf download
  304. TESTSUITE = $(srcdir)/testsuite
  305. AUTOTEST = $(AUTOM4TE) --language=autotest
  306. $(TESTSUITE): package.m4 $(TESTSUITE_AT)
  307. $(AUTOTEST) -I $(srcdir) testsuite.at -o $@.tmp
  308. mv $@.tmp $@
  309. atconfig: $(top_builddir)/config.status
  310. cd $(top_builddir) && ./config.status tests/$@
  311. clean-local:
  312. test ! -f $(TESTSUITE) || $(SHELL) $(TESTSUITE) --clean
  313. check-local: atconfig atlocal $(TESTSUITE)
  314. $(SHELL) $(TESTSUITE) $(TESTSUITEFLAGS)
  315. check-full:
  316. FULL_TEST=1 $(MAKE) check
  317. #check_SCRIPTS = tar
  318. # Run the test suite on the *installed* tree.
  319. installcheck-local: $(check_PROGRAMS)
  320. $(SHELL) $(TESTSUITE) $(TESTSUITEFLAGS) AUTOTEST_PATH=$(exec_prefix)/bin
  321. ## ------------ ##
  322. ## genfile ##
  323. ## ------------ ##
  324. check_PROGRAMS = genfile checkseekhole ckmtime
  325. genfile_SOURCES = genfile.c argcv.c argcv.h
  326. checkseekhole_SOURCES = checkseekhole.c
  327. localedir = $(datadir)/locale
  328. AM_CPPFLAGS = \
  329. -I$(top_srcdir)/gnu\
  330. -I../gnu\
  331. -I$(top_srcdir)/gnu\
  332. -I$(top_srcdir)/lib\
  333. -DLOCALEDIR=\"$(localedir)\"
  334. LDADD = ../gnu/libgnu.a $(LIBINTL) $(LIB_CLOCK_GETTIME) $(LIB_EACCESS)