Commit Graph

25 Commits

Author SHA1 Message Date
Loic Dachary
9748d45b61 autogen.sh: do not submodule --force if git does not support it
Signed-off-by: Loic Dachary <ldachary@redhat.com>
2015-03-07 17:11:58 +01:00
Loic Dachary
3a8b8284dd doc,tests: force checkout of submodules
When updating submodules, always checkout even if the HEAD is the
desired commit hash (update --force) to avoid the following:

* a directory gmock exists in hammer
* a submodule gmock replaces the directory gmock in master
* checkout master + submodule update : gmock/.git is created
* checkout hammer : the gmock directory still contains the .git from
  master because it did not exist at the time and checkout won't
  remove untracked directories
* checkout master + submodule update : git rev-parse HEAD is
  at the desired commit although the content of the gmock directory
  is from hammer

Signed-off-by: Loic Dachary <ldachary@redhat.com>
2015-03-06 17:16:46 +01:00
Danny Al-Gaaf
a7b344388b submodules: --recursive needed for gtest in gmock
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2015-03-02 21:10:24 +01:00
Jason Dillaman
bf05ec186a tests: replace existing gtest 1.5.0 with gmock/gtest 1.7.0
Google Testing Framework is included by default within the Google
C++ Mocking Framework.  Update makefiles to use new gmock/gtest
libraries and remove old gtest source code.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-01-25 23:09:03 -05:00
Loic Dachary
61cae54137 autogen.sh: git submodule sync
It is not enough to git submodule update on a existing git clone: if the
URL of the repository has been changed, the

   git submodule sync

command must be called to synchronizes submodules' remote URL
configuration setting to the value specified in .gitmodules.

http://tracker.ceph.com/issues/10173 Fixes: #10173

Signed-off-by: Loic Dachary <ldachary@redhat.com>
2014-11-24 12:35:50 +01:00
Sage Weil
c574e653e4 autogen.sh: debug with -x
Signed-off-by: Sage Weil <sage@redhat.com>
2014-07-31 21:11:25 -07:00
xinxin shu
708b5b8766 add --with-librocksdb-static configure options
with this options, ceph will build rocksdb from submodule

Signed-off-by: xinxin shu <xinxin.shu@intel.com>
2014-07-29 21:45:25 -07:00
Thorsten Behrens
f7086d3684 Automagically setup submodules on first run.
I mean, who's reading the README, anyway?

Signed-off-by: Thorsten Behrens <tbehrens@suse.com>
2014-07-03 00:51:23 +02:00
Sahid Orentino Ferdjaoui
30ae96a737 Ensure autogen.sh to be executed at the top-level
The commit adds a test to ensure that user executes
'autogen.sh' at the top-level of the directory.

Signed-off-by: Sahid Orentino Ferdjaoui <sahid.ferdjaoui@cloudwatt.com>
2014-05-19 14:33:48 +02:00
Noah Watkins
fdf1a41094 autogen: re-run aclocal after libtoolize
This seems to prevent configure from re-running after the first
invocation of 'make' following ./autogen.sh. The autoreconf script also
does this.

Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
2014-01-15 10:43:49 -08:00
Noah Watkins
ea725d3a90 autogen.sh: use glibtoolize when available
libtoolize is called glibtoolize on osx.

Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
2013-11-05 08:06:24 -08:00
Noah Watkins
00734ec7c1 autogen: set exit on error
Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
2013-11-05 08:06:05 -08:00
Gary Lowell
ea546aef0c Build: Change build to always use system leveldb
Dynamically link to the leveldb installed on the system rather than
statically linking ceph copy.  Remove the --with-system-leveldb config
option, and add a requirement for leveldb libraries for rpm and debian
packages.  Bug 3945.

Signed-off-by: Gary Lowell  <gary.lowell@inktank.com>
2013-02-26 20:07:49 -08:00
Danny Al-Gaaf
59aad34795 configure.ac: check for org.junit.rules.ExternalResource
Check for org.junit.rules.ExternalResource if build with
--enable-cephfs-java and --with-debug. Checking for junit4
isn't enough since junit4 has this class not before 4.7.

Added some m4 files to get some JAVA related macros. Changed
autogen.sh to work with local m4 files/macros.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-01-09 19:52:05 -08:00
Gary Lowell
f525534b5f autogen.sh: On some platforms, the m4 is created earlier. 2012-10-15 14:14:35 -07:00
Gary Lowell
d28ba52b5f autogen.sh: Create m4 directory for leveldb submodule. 2012-10-15 14:14:35 -07:00
Samuel Just
d9b130faf0 Added LevelDBStore
Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
2012-03-01 10:11:42 -08:00
Tommi Virtanen
9b0d577696 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-10 15:19:45 -08:00
Colin Patrick McCabe
f015c9894a autogen.sh: check for pkg-config
To avoid seeing confusing errors later in the configure process, in
autogen.sh, check to make sure the pkg-config program is installed.

Signed-off-by: Colin McCabe <colinm@hq.newdream.net>
2010-11-05 11:34:11 -07:00
Sage Weil
a7769755c1 automake: some clean up 2010-05-18 08:01:23 -07:00
Sage Weil
6fd390d3af rados: build librados, libcrush using libtool
Finally?
2009-05-11 21:06:14 -07:00
Sage Weil
33c6a6b771 no more m4 dir 2008-07-11 12:04:59 -07:00
Sage Weil
57db9eba54 libcrushwrapper.so now builds, yay 2008-03-12 19:36:54 -07:00
Sage Weil
3c38bb6bdd getting closer to building swig stuff 2008-03-12 17:26:38 -07:00
Sage Weil
78532348f0 autogen.sh 2008-01-28 11:54:53 -08:00