Makefile.am 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. # Makefile for GNU tar regression tests.
  2. # Copyright (C) 1996, 1997, 1999, 2000, 2001, 2003, 2004 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., 59 Temple Place - Suite 330, Boston, MA
  17. ## 02111-1307, 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. comprec.at\
  40. delete01.at\
  41. delete02.at\
  42. delete03.at\
  43. delete04.at\
  44. delete05.at\
  45. extrac01.at\
  46. extrac02.at\
  47. extrac03.at\
  48. extrac04.at\
  49. extrac05.at\
  50. gzip.at\
  51. incremental.at\
  52. ignfail.at\
  53. link01.at\
  54. listed01.at\
  55. listed02.at\
  56. longv7.at\
  57. multiv01.at\
  58. multiv02.at\
  59. multiv03.at\
  60. old.at\
  61. options.at\
  62. pipe.at\
  63. recurse.at\
  64. same-order01.at\
  65. same-order02.at\
  66. sparse01.at\
  67. volume.at\
  68. version.at\
  69. star/gtarfail.at\
  70. star/gtarfail2.at\
  71. star/multi-fail.at\
  72. star/ustar-big-2g.at\
  73. star/ustar-big-8g.at\
  74. star/pax-big-10g.at
  75. TESTSUITE = $(srcdir)/testsuite
  76. AUTOTEST = $(AUTOM4TE) --language=autotest
  77. $(TESTSUITE): package.m4 $(TESTSUITE_AT)
  78. $(AUTOTEST) -I $(srcdir) testsuite.at -o [email protected]
  79. mv [email protected] $@
  80. atconfig: $(top_builddir)/config.status
  81. cd $(top_builddir) && ./config.status tests/$@
  82. clean-local:
  83. $(SHELL) $(TESTSUITE) --clean
  84. check-local: atconfig atlocal $(TESTSUITE)
  85. $(SHELL) $(TESTSUITE)
  86. #check_SCRIPTS = tar
  87. # Run the test suite on the *installed* tree.
  88. installcheck-local:
  89. $(SHELL) $(TESTSUITE) AUTOTEST_PATH=$(exec_prefix)/bin
  90. ## ------------ ##
  91. ## genfile ##
  92. ## ------------ ##
  93. check_PROGRAMS = genfile
  94. genfile_SOURCES = genfile.c
  95. localedir = $(datadir)/locale
  96. INCLUDES = -I$(top_srcdir)/lib -I../lib -I$(top_srcdir)/src
  97. LDADD = ../lib/libtar.a $(LIBINTL)