Makefile.am 6.3 KB

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