mirror of
https://github.com/ceph/ceph
synced 2024-12-22 19:34:30 +00:00
9b0d577696
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.
23 lines
398 B
Bash
Executable File
23 lines
398 B
Bash
Executable File
#!/bin/sh
|
|
|
|
check_for_pkg_config() {
|
|
which pkg-config >/dev/null && return
|
|
|
|
echo
|
|
echo "Error: could not find pkg-config"
|
|
echo
|
|
echo "Please make sure you have pkg-config installed."
|
|
echo
|
|
exit 1
|
|
}
|
|
|
|
rm -f config.cache
|
|
aclocal #-I m4
|
|
check_for_pkg_config
|
|
libtoolize --force --copy
|
|
autoconf
|
|
autoheader
|
|
automake -a --add-missing -Wall
|
|
( cd src/gtest && autoreconf -fvi; )
|
|
exit
|