2008-01-28 02:12:20 +00:00
|
|
|
AUTOMAKE_OPTIONS = gnu
|
2012-10-08 17:04:25 +00:00
|
|
|
ACLOCAL_AMFLAGS = -I m4
|
2011-09-08 19:59:05 +00:00
|
|
|
EXTRA_DIST = autogen.sh ceph.spec.in ceph.spec
|
Use Google Test framework for unit tests.
Use ``make check`` to run the tests.
The src/gtest directory comes from ``svn export
http://googletest.googlecode.com/svn/tags/release-1.5.0 src/gtest``
and running "git add -f src/gtest".
gtest is licensed under the New BSD license, see src/gtest/COPYING.
For more on Google Test, see http://code.google.com/p/googletest/
Changed autogen.sh regenerate gtest automake files too. Make sure to
run ``./autogen.sh && ./configure`` after merging this commit, or
incremental builds may fail. The automake integration is inspired
heavily by the protobuf project, and may still be problematic.
Make git ignore files generated by gtest compilation.
Currently putting in just one new-style unit test, refactoring old
tests to fit will come in separate commits.
Note: if you are starting daemons, listening on TCP ports, using
multiple machines, mounting filesystems, etc, it's not a unit test
and does not belong in this setup. A framework for system/integration
tests will be provided later.
2011-01-07 21:15:40 +00:00
|
|
|
# the "." here makes sure check-local builds gtest before it is used
|
2011-06-14 19:53:33 +00:00
|
|
|
SUBDIRS = . src man
|
Use Google Test framework for unit tests.
Use ``make check`` to run the tests.
The src/gtest directory comes from ``svn export
http://googletest.googlecode.com/svn/tags/release-1.5.0 src/gtest``
and running "git add -f src/gtest".
gtest is licensed under the New BSD license, see src/gtest/COPYING.
For more on Google Test, see http://code.google.com/p/googletest/
Changed autogen.sh regenerate gtest automake files too. Make sure to
run ``./autogen.sh && ./configure`` after merging this commit, or
incremental builds may fail. The automake integration is inspired
heavily by the protobuf project, and may still be problematic.
Make git ignore files generated by gtest compilation.
Currently putting in just one new-style unit test, refactoring old
tests to fit will come in separate commits.
Note: if you are starting daemons, listening on TCP ports, using
multiple machines, mounting filesystems, etc, it's not a unit test
and does not belong in this setup. A framework for system/integration
tests will be provided later.
2011-01-07 21:15:40 +00:00
|
|
|
|
2011-01-13 21:38:40 +00:00
|
|
|
EXTRA_DIST += \
|
|
|
|
src/test/run-cli-tests \
|
2011-09-23 22:15:13 +00:00
|
|
|
src/test/run-cli-tests-maybe-unset-ccache \
|
2011-01-14 18:33:31 +00:00
|
|
|
src/test/cli \
|
2011-03-08 00:03:08 +00:00
|
|
|
src/test/downloads \
|
2013-02-14 01:30:19 +00:00
|
|
|
udev/50-rbd.rules \
|
2013-05-17 01:40:29 +00:00
|
|
|
udev/60-ceph-partuuid-workaround.rules \
|
2013-04-11 16:42:13 +00:00
|
|
|
udev/95-ceph-osd.rules \
|
2013-08-17 00:59:11 +00:00
|
|
|
udev/95-ceph-osd-alt.rules \
|
|
|
|
share/known_hosts_drop.ceph.com \
|
|
|
|
share/id_dsa_drop.ceph.com \
|
|
|
|
share/id_dsa_drop.ceph.com.pub
|
2011-06-14 19:53:33 +00:00
|
|
|
|
2013-08-17 00:59:11 +00:00
|
|
|
# why is it so hard to make autotools to this?
|
|
|
|
install-data-local:
|
|
|
|
-mkdir -p $(DESTDIR)$(datadir)/ceph
|
|
|
|
-install -m 644 share/known_hosts_drop.ceph.com $(DESTDIR)$(datadir)/ceph/known_hosts_drop.ceph.com
|
2014-04-04 21:39:56 +00:00
|
|
|
-install -m 644 share/id_dsa_drop.ceph.com $(DESTDIR)$(datadir)/ceph/id_dsa_drop.ceph.com
|
|
|
|
-install -m 644 share/id_dsa_drop.ceph.com.pub $(DESTDIR)$(datadir)/ceph/id_dsa_drop.ceph.com.pub
|
2011-08-09 22:21:53 +00:00
|
|
|
|
|
|
|
all-local:
|
|
|
|
if WITH_DEBUG
|
|
|
|
# We need gtest to build the rados-api tests. We only build those in
|
|
|
|
# a debug build, though.
|
2012-06-13 18:05:43 +00:00
|
|
|
@cd src/gtest && $(MAKE) $(AM_MAKEFLAGS) lib/libgtest.a lib/libgtest_main.a
|
2011-08-09 22:21:53 +00:00
|
|
|
endif
|
Use Google Test framework for unit tests.
Use ``make check`` to run the tests.
The src/gtest directory comes from ``svn export
http://googletest.googlecode.com/svn/tags/release-1.5.0 src/gtest``
and running "git add -f src/gtest".
gtest is licensed under the New BSD license, see src/gtest/COPYING.
For more on Google Test, see http://code.google.com/p/googletest/
Changed autogen.sh regenerate gtest automake files too. Make sure to
run ``./autogen.sh && ./configure`` after merging this commit, or
incremental builds may fail. The automake integration is inspired
heavily by the protobuf project, and may still be problematic.
Make git ignore files generated by gtest compilation.
Currently putting in just one new-style unit test, refactoring old
tests to fit will come in separate commits.
Note: if you are starting daemons, listening on TCP ports, using
multiple machines, mounting filesystems, etc, it's not a unit test
and does not belong in this setup. A framework for system/integration
tests will be provided later.
2011-01-07 21:15:40 +00:00
|
|
|
|
2014-10-08 18:19:07 +00:00
|
|
|
check-local: all
|
2011-08-09 22:21:53 +00:00
|
|
|
# We build gtest this way, instead of using SUBDIRS, because with that,
|
|
|
|
# gtest's own tests would be run and that would slow us down.
|
2012-06-13 18:05:43 +00:00
|
|
|
@cd src/gtest && $(MAKE) $(AM_MAKEFLAGS) lib/libgtest.a lib/libgtest_main.a
|
2011-01-12 00:43:46 +00:00
|
|
|
# exercise cli tools
|
2011-01-13 20:59:11 +00:00
|
|
|
$(srcdir)/src/test/run-cli-tests '$(top_builddir)/src/test'
|
2011-01-12 00:43:46 +00:00
|
|
|
|
Use Google Test framework for unit tests.
Use ``make check`` to run the tests.
The src/gtest directory comes from ``svn export
http://googletest.googlecode.com/svn/tags/release-1.5.0 src/gtest``
and running "git add -f src/gtest".
gtest is licensed under the New BSD license, see src/gtest/COPYING.
For more on Google Test, see http://code.google.com/p/googletest/
Changed autogen.sh regenerate gtest automake files too. Make sure to
run ``./autogen.sh && ./configure`` after merging this commit, or
incremental builds may fail. The automake integration is inspired
heavily by the protobuf project, and may still be problematic.
Make git ignore files generated by gtest compilation.
Currently putting in just one new-style unit test, refactoring old
tests to fit will come in separate commits.
Note: if you are starting daemons, listening on TCP ports, using
multiple machines, mounting filesystems, etc, it's not a unit test
and does not belong in this setup. A framework for system/integration
tests will be provided later.
2011-01-07 21:15:40 +00:00
|
|
|
# "make distclean" both runs this and recurses into src/gtest, if
|
|
|
|
# gtest is in DIST_SUBDIRS. Take extra care to not fail when
|
|
|
|
# effectively cleaned twice.
|
|
|
|
clean-local:
|
|
|
|
@if test -e src/gtest/Makefile; then \
|
|
|
|
echo "Making clean in src/gtest"; \
|
|
|
|
cd src/gtest && $(MAKE) $(AM_MAKEFLAGS) clean; \
|
|
|
|
fi
|
2011-01-14 18:35:20 +00:00
|
|
|
|
|
|
|
@rm -rf src/test/virtualenv
|
2014-05-21 16:50:56 +00:00
|
|
|
|
|
|
|
|
|
|
|
# NOTE: This only works when enough dependencies are installed for
|
|
|
|
# autoconf to be happy. These commands should be run manually to
|
|
|
|
# bootstrap.
|
|
|
|
install-deps:
|
|
|
|
if test -x /usr/bin/apt-get; then \
|
|
|
|
sudo apt-get -y --no-install-recommends install `cat deps.deb.txt`; \
|
|
|
|
else \
|
|
|
|
sudo yum -y install `cat deps.rpm.txt`; \
|
|
|
|
fi
|
2014-06-05 15:31:08 +00:00
|
|
|
|
|
|
|
dist-hook:
|
|
|
|
# Generates the full list of contributors
|
|
|
|
if test -d $(srcdir)/.git; then \
|
|
|
|
cd $(srcdir); \
|
|
|
|
git log --format='%aN <%aE>' | sort -u >$(distdir)/AUTHORS; \
|
|
|
|
fi
|
2014-06-05 15:32:10 +00:00
|
|
|
# Generates ChangeLog from git
|
|
|
|
if test -d $(srcdir)/.git; then \
|
|
|
|
cd $(srcdir); \
|
|
|
|
git log --oneline --decorate --no-merges > $(distdir)/ChangeLog; \
|
|
|
|
fi
|