Makefile.am 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. # Makefile for GNU tar regression tests.
  2. # Copyright (C) 1996, 1997, 1999, 2000, 2001, 2003, 2004, 2005 Free Software
  3. # Foundation, Inc.
  4. # François Pinard <[email protected]>, 1988.
  5. # Sergey Poznyakoff <[email protected]>, 2004.
  6. ## This program is free software; you can redistribute it and/or modify
  7. ## it under the terms of the GNU General Public License as published by
  8. ## the Free Software Foundation; either version 2, or (at your option)
  9. ## any later version.
  10. ## This program is distributed in the hope that it will be useful,
  11. ## but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. ## GNU General Public License for more details.
  14. ## You should have received a copy of the GNU General Public License
  15. ## along with this program; if not, write to the Free Software
  16. ## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
  17. ## 02110-1301, USA.
  18. EXTRA_DIST = $(TESTSUITE_AT) testsuite package.m4 star/README star/quicktest.sh
  19. DISTCLEANFILES = atconfig $(check_SCRIPTS)
  20. MAINTAINERCLEANFILES = Makefile.in $(TESTSUITE)
  21. ## ------------ ##
  22. ## package.m4. ##
  23. ## ------------ ##
  24. $(srcdir)/package.m4: $(top_srcdir)/configure.ac
  25. { \
  26. echo '# Signature of the current package.'; \
  27. echo 'm4_define([AT_PACKAGE_NAME], [@PACKAGE_NAME@])'; \
  28. echo 'm4_define([AT_PACKAGE_TARNAME], [@PACKAGE_TARNAME@])'; \
  29. echo 'm4_define([AT_PACKAGE_VERSION], [@PACKAGE_VERSION@])'; \
  30. echo 'm4_define([AT_PACKAGE_STRING], [@PACKAGE_STRING@])'; \
  31. echo 'm4_define([AT_PACKAGE_BUGREPORT], [@PACKAGE_BUGREPORT@])'; \
  32. } >$(srcdir)/package.m4
  33. #
  34. ## ------------ ##
  35. ## Test suite. ##
  36. ## ------------ ##
  37. TESTSUITE_AT = \
  38. testsuite.at\
  39. append.at\
  40. append01.at\
  41. comprec.at\
  42. delete01.at\
  43. delete02.at\
  44. delete03.at\
  45. delete04.at\
  46. delete05.at\
  47. extrac01.at\
  48. extrac02.at\
  49. extrac03.at\
  50. extrac04.at\
  51. extrac05.at\
  52. gzip.at\
  53. incremental.at\
  54. incr01.at\
  55. ignfail.at\
  56. link01.at\
  57. listed01.at\
  58. listed02.at\
  59. long01.at\
  60. longv7.at\
  61. multiv01.at\
  62. multiv02.at\
  63. multiv03.at\
  64. multiv04.at\
  65. old.at\
  66. options.at\
  67. options02.at\
  68. pipe.at\
  69. recurse.at\
  70. same-order01.at\
  71. same-order02.at\
  72. shortrec.at\
  73. sparse01.at\
  74. sparse02.at\
  75. sparse03.at\
  76. truncate.at\
  77. update.at\
  78. volume.at\
  79. version.at\
  80. star/gtarfail.at\
  81. star/gtarfail2.at\
  82. star/multi-fail.at\
  83. star/ustar-big-2g.at\
  84. star/ustar-big-8g.at\
  85. star/pax-big-10g.at
  86. TESTSUITE = $(srcdir)/testsuite
  87. AUTOTEST = $(AUTOM4TE) --language=autotest
  88. $(TESTSUITE): package.m4 $(TESTSUITE_AT)
  89. $(AUTOTEST) -I $(srcdir) testsuite.at -o [email protected]
  90. mv [email protected] $@
  91. atconfig: $(top_builddir)/config.status
  92. cd $(top_builddir) && ./config.status tests/$@
  93. clean-local:
  94. test ! -f $(TESTSUITE) || $(SHELL) $(TESTSUITE) --clean
  95. check-local: atconfig atlocal $(TESTSUITE)
  96. $(SHELL) $(TESTSUITE)
  97. #check_SCRIPTS = tar
  98. # Run the test suite on the *installed* tree.
  99. installcheck-local:
  100. $(SHELL) $(TESTSUITE) AUTOTEST_PATH=$(exec_prefix)/bin
  101. ## ------------ ##
  102. ## genfile ##
  103. ## ------------ ##
  104. check_PROGRAMS = genfile
  105. genfile_SOURCES = genfile.c argcv.c argcv.h
  106. localedir = $(datadir)/locale
  107. INCLUDES = -I$(top_srcdir)/lib -I../lib -I$(top_srcdir)/src
  108. LDADD = ../lib/libtar.a $(LIBINTL) $(LIB_CLOCK_GETTIME)