From 3c37539ceef8cc8f7e51aa0f79762d6e8459278e Mon Sep 17 00:00:00 2001 From: Scott Schurr Date: Tue, 25 Jul 2017 18:33:19 -0700 Subject: [PATCH] Address Travis compiler out of memory and timeout errors --- .travis.yml | 3 + Builds/VisualStudio2015/RippleD.vcxproj | 48 +++++++++++++-- .../VisualStudio2015/RippleD.vcxproj.filters | 39 ++++++++++-- CMakeLists.txt | 21 +++++-- SConstruct | 23 ++++--- bin/ci/ubuntu/build-and-test.sh | 12 +++- bin/ci/ubuntu/install-dependencies.sh | 2 +- bin/sh/install-boost.sh | 2 +- src/ripple/overlay/PeerSet.h | 4 +- src/ripple/overlay/impl/ConnectAttempt.cpp | 5 +- src/ripple/overlay/impl/ConnectAttempt.h | 18 ------ src/ripple/overlay/impl/OverlayImpl.cpp | 20 ++---- src/ripple/overlay/impl/PeerImp.cpp | 23 ++----- src/ripple/overlay/impl/PeerImp.h | 19 ++---- src/ripple/overlay/impl/PeerSet.cpp | 2 +- src/ripple/overlay/impl/TMHello.cpp | 5 +- src/ripple/overlay/impl/TMHello.h | 12 ++-- src/ripple/unity/app_ledger.cpp | 11 ---- src/ripple/unity/app_ledger_impl.cpp | 31 ++++++++++ .../unity/{app_main.cpp => app_main1.cpp} | 6 +- src/ripple/unity/app_main2.cpp | 25 ++++++++ src/ripple/unity/app_misc.cpp | 10 --- src/ripple/unity/app_misc_impl.cpp | 30 +++++++++ src/ripple/unity/overlay1.cpp | 25 ++++++++ .../unity/{overlay.cpp => overlay2.cpp} | 4 -- src/ripple/unity/{rpcx.cpp => rpcx1.cpp} | 37 +---------- src/ripple/unity/rpcx2.cpp | 61 +++++++++++++++++++ src/test/unity/app_test_unity1.cpp | 36 +++++++++++ ...app_test_unity.cpp => app_test_unity2.cpp} | 22 +------ ...t_test_unity.cpp => beast_test_unity1.cpp} | 9 --- src/test/unity/beast_test_unity2.cpp | 29 +++++++++ src/test/unity/jtx_unity1.cpp | 37 +++++++++++ .../unity/{jtx_unity.cpp => jtx_unity2.cpp} | 16 ----- src/test/unity/server_status_test_unity.cpp | 21 +++++++ src/test/unity/server_test_unity.cpp | 1 - 35 files changed, 444 insertions(+), 225 deletions(-) create mode 100644 src/ripple/unity/app_ledger_impl.cpp rename src/ripple/unity/{app_main.cpp => app_main1.cpp} (88%) create mode 100644 src/ripple/unity/app_main2.cpp create mode 100644 src/ripple/unity/app_misc_impl.cpp create mode 100644 src/ripple/unity/overlay1.cpp rename src/ripple/unity/{overlay.cpp => overlay2.cpp} (87%) rename src/ripple/unity/{rpcx.cpp => rpcx1.cpp} (66%) create mode 100644 src/ripple/unity/rpcx2.cpp create mode 100644 src/test/unity/app_test_unity1.cpp rename src/test/unity/{app_test_unity.cpp => app_test_unity2.cpp} (72%) rename src/test/unity/{beast_test_unity.cpp => beast_test_unity1.cpp} (78%) create mode 100644 src/test/unity/beast_test_unity2.cpp create mode 100644 src/test/unity/jtx_unity1.cpp rename src/test/unity/{jtx_unity.cpp => jtx_unity2.cpp} (74%) create mode 100644 src/test/unity/server_status_test_unity.cpp diff --git a/.travis.yml b/.travis.yml index 6b4d12ab7..e28df021f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -14,6 +14,9 @@ env: - BOOST_ROOT=$HOME/boost_1_60_0 - BOOST_URL='http://sourceforge.net/projects/boost/files/boost/1.60.0/boost_1_60_0.tar.gz' +# Travis is timing out on Trusty. So, for now, use Precise. July 2017 +dist: precise + addons: apt: sources: ['ubuntu-toolchain-r-test'] diff --git a/Builds/VisualStudio2015/RippleD.vcxproj b/Builds/VisualStudio2015/RippleD.vcxproj index d9784b939..76041f25a 100644 --- a/Builds/VisualStudio2015/RippleD.vcxproj +++ b/Builds/VisualStudio2015/RippleD.vcxproj @@ -3197,7 +3197,15 @@ True True - + + True + True + + + True + True + + True True @@ -3205,6 +3213,10 @@ True True + + True + True + True True @@ -3261,7 +3273,11 @@ ..\..\src\rocksdb2\include;..\..\src\snappy\config;..\..\src\snappy\snappy;%(AdditionalIncludeDirectories) ..\..\src\rocksdb2\include;..\..\src\snappy\config;..\..\src\snappy\snappy;%(AdditionalIncludeDirectories) - + + True + True + + True True @@ -3287,7 +3303,11 @@ - + + True + True + + True True @@ -5053,7 +5073,11 @@ True True - + + True + True + + True True @@ -5061,7 +5085,11 @@ True True - + + True + True + + True True @@ -5085,7 +5113,11 @@ True True - + + True + True + + True True @@ -5119,6 +5151,10 @@ True True + + True + True + True True diff --git a/Builds/VisualStudio2015/RippleD.vcxproj.filters b/Builds/VisualStudio2015/RippleD.vcxproj.filters index 3b4468664..c75f01036 100644 --- a/Builds/VisualStudio2015/RippleD.vcxproj.filters +++ b/Builds/VisualStudio2015/RippleD.vcxproj.filters @@ -3822,12 +3822,21 @@ ripple\unity - + + ripple\unity + + + ripple\unity + + ripple\unity ripple\unity + + ripple\unity + ripple\unity @@ -3870,7 +3879,10 @@ ripple\unity - + + ripple\unity + + ripple\unity @@ -3894,7 +3906,10 @@ ripple\unity - + + ripple\unity + + ripple\unity @@ -5742,13 +5757,19 @@ test\shamap - + + test\unity + + test\unity test\unity - + + test\unity + + test\unity @@ -5766,7 +5787,10 @@ test\unity - + + test\unity + + test\unity @@ -5790,6 +5814,9 @@ test\unity + + test\unity + test\unity diff --git a/CMakeLists.txt b/CMakeLists.txt index 2e3903f8f..7d648978b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -187,8 +187,11 @@ prepend(ripple_unity_srcs src/ripple/unity/ app_consensus.cpp app_ledger.cpp -app_main.cpp +app_ledger_impl.cpp +app_main1.cpp +app_main2.cpp app_misc.cpp +app_misc_impl.cpp app_paths.cpp app_tx.cpp conditions.cpp @@ -198,19 +201,23 @@ basics.cpp crypto.cpp ledger.cpp net.cpp -overlay.cpp +overlay1.cpp +overlay2.cpp peerfinder.cpp json.cpp protocol.cpp -rpcx.cpp +rpcx1.cpp +rpcx2.cpp shamap.cpp server.cpp) prepend(test_unity_srcs src/test/unity/ -app_test_unity.cpp +app_test_unity1.cpp +app_test_unity2.cpp basics_test_unity.cpp -beast_test_unity.cpp +beast_test_unity1.cpp +beast_test_unity2.cpp conditions_test_unity.cpp consensus_test_unity.cpp core_test_unity.cpp @@ -222,8 +229,10 @@ protocol_test_unity.cpp resource_test_unity.cpp rpc_test_unity.cpp server_test_unity.cpp +server_status_test_unity.cpp shamap_test_unity.cpp -jtx_unity.cpp +jtx_unity1.cpp +jtx_unity2.cpp csf_unity.cpp) list(APPEND rippled_src_unity ${beast_unity_srcs} ${ripple_unity_srcs} ${test_unity_srcs}) diff --git a/SConstruct b/SConstruct index 6b30788bf..1d104ec38 100644 --- a/SConstruct +++ b/SConstruct @@ -976,7 +976,7 @@ def get_classic_sources(toolchain): append_sources(result, *list_sources('src/test/server', '.cpp')) append_sources(result, *list_sources('src/test/shamap', '.cpp')) append_sources(result, *list_sources('src/test/jtx', '.cpp')) - append_sources(result, *list_sources('src/test/csf', '.cpp')) + append_sources(result, *list_sources('src/test/csf', '.cpp')) if use_shp(toolchain): @@ -1008,8 +1008,11 @@ def get_unity_sources(toolchain): 'src/ripple/beast/unity/beast_utility_unity.cpp', 'src/ripple/unity/app_consensus.cpp', 'src/ripple/unity/app_ledger.cpp', - 'src/ripple/unity/app_main.cpp', + 'src/ripple/unity/app_ledger_impl.cpp', + 'src/ripple/unity/app_main1.cpp', + 'src/ripple/unity/app_main2.cpp', 'src/ripple/unity/app_misc.cpp', + 'src/ripple/unity/app_misc_impl.cpp', 'src/ripple/unity/app_paths.cpp', 'src/ripple/unity/app_tx.cpp', 'src/ripple/unity/conditions.cpp', @@ -1019,16 +1022,20 @@ def get_unity_sources(toolchain): 'src/ripple/unity/crypto.cpp', 'src/ripple/unity/ledger.cpp', 'src/ripple/unity/net.cpp', - 'src/ripple/unity/overlay.cpp', + 'src/ripple/unity/overlay1.cpp', + 'src/ripple/unity/overlay2.cpp', 'src/ripple/unity/peerfinder.cpp', 'src/ripple/unity/json.cpp', 'src/ripple/unity/protocol.cpp', - 'src/ripple/unity/rpcx.cpp', + 'src/ripple/unity/rpcx1.cpp', + 'src/ripple/unity/rpcx2.cpp', 'src/ripple/unity/shamap.cpp', 'src/ripple/unity/server.cpp', - 'src/test/unity/app_test_unity.cpp', + 'src/test/unity/app_test_unity1.cpp', + 'src/test/unity/app_test_unity2.cpp', 'src/test/unity/basics_test_unity.cpp', - 'src/test/unity/beast_test_unity.cpp', + 'src/test/unity/beast_test_unity1.cpp', + 'src/test/unity/beast_test_unity2.cpp', 'src/test/unity/consensus_test_unity.cpp', 'src/test/unity/core_test_unity.cpp', 'src/test/unity/conditions_test_unity.cpp', @@ -1040,8 +1047,10 @@ def get_unity_sources(toolchain): 'src/test/unity/resource_test_unity.cpp', 'src/test/unity/rpc_test_unity.cpp', 'src/test/unity/server_test_unity.cpp', + 'src/test/unity/server_status_test_unity.cpp', 'src/test/unity/shamap_test_unity.cpp', - 'src/test/unity/jtx_unity.cpp', + 'src/test/unity/jtx_unity1.cpp', + 'src/test/unity/jtx_unity2.cpp', 'src/test/unity/csf_unity.cpp' ) diff --git a/bin/ci/ubuntu/build-and-test.sh b/bin/ci/ubuntu/build-and-test.sh index fb2da3cdd..03f84008e 100755 --- a/bin/ci/ubuntu/build-and-test.sh +++ b/bin/ci/ubuntu/build-and-test.sh @@ -10,6 +10,12 @@ echo "using TARGET: $TARGET" # Ensure APP defaults to rippled if it's not set. : ${APP:=rippled} + +JOBS=${NUM_PROCESSORS:-2} +if [[ ${TARGET} == *.nounity ]]; then + JOBS=$((2*${JOBS})) +fi + if [[ ${BUILD:-scons} == "cmake" ]]; then echo "cmake building ${APP}" CMAKE_TARGET=$CC.$TARGET @@ -19,7 +25,7 @@ if [[ ${BUILD:-scons} == "cmake" ]]; then mkdir -p "build/${CMAKE_TARGET}" pushd "build/${CMAKE_TARGET}" cmake ../.. -Dtarget=$CMAKE_TARGET - cmake --build . -- -j${NUM_PROCESSORS:-2} + cmake --build . -- -j${JOBS} popd export APP_PATH="$PWD/build/${CMAKE_TARGET}/${APP}" echo "using APP_PATH: $APP_PATH" @@ -33,7 +39,7 @@ else # $CC will be either `clang` or `gcc` # http://docs.travis-ci.com/user/migrating-from-legacy/?utm_source=legacy-notice&utm_medium=banner&utm_campaign=legacy-upgrade # indicates that 2 cores are available to containers. - scons -j${NUM_PROCESSORS:-2} $CC.$TARGET + scons -j${JOBS} $CC.$TARGET fi # We can be sure we're using the build/$CC.$TARGET variant # (-f so never err) @@ -91,6 +97,8 @@ if [[ $TARGET == "coverage" ]]; then # Push the results (lcov.info) to codecov codecov -X gcov # don't even try and look for .gcov files ;) + + find . -name "*.gcda" | xargs rm -f fi diff --git a/bin/ci/ubuntu/install-dependencies.sh b/bin/ci/ubuntu/install-dependencies.sh index 9b99e03f7..2bcbcca6e 100755 --- a/bin/ci/ubuntu/install-dependencies.sh +++ b/bin/ci/ubuntu/install-dependencies.sh @@ -8,7 +8,7 @@ TWD=$( cd ${TWD:-${1:-${PWD:-$( pwd )}}}; pwd ) echo "Target path is: $TWD" # Override gcc version to $GCC_VER. # Put an appropriate symlink at the front of the path. -mkdir -v $HOME/bin +mkdir -pv $HOME/bin for g in gcc g++ gcov gcc-ar gcc-nm gcc-ranlib do test -x $( type -p ${g}-$GCC_VER ) diff --git a/bin/sh/install-boost.sh b/bin/sh/install-boost.sh index 1f609c53b..8a49771e9 100644 --- a/bin/sh/install-boost.sh +++ b/bin/sh/install-boost.sh @@ -16,7 +16,7 @@ then tar xzf /tmp/boost.tar.gz cd $BOOST_ROOT && \ ./bootstrap.sh --prefix=$BOOST_ROOT && \ - ./b2 -d1 define=_GLIBCXX_USE_CXX11_ABI=0 -j${NUM_PROCESSORS:-2} &&\ + ./b2 -d1 define=_GLIBCXX_USE_CXX11_ABI=0 -j$((2*${NUM_PROCESSORS:-2})) &&\ ./b2 -d0 define=_GLIBCXX_USE_CXX11_ABI=0 install else echo "Using cached boost at $BOOST_ROOT" diff --git a/src/ripple/overlay/PeerSet.h b/src/ripple/overlay/PeerSet.h index 1dea55110..0f20d667e 100644 --- a/src/ripple/overlay/PeerSet.h +++ b/src/ripple/overlay/PeerSet.h @@ -21,11 +21,9 @@ #define RIPPLE_APP_PEERS_PEERSET_H_INCLUDED #include -#include -#include -#include #include #include +#include #include #include #include diff --git a/src/ripple/overlay/impl/ConnectAttempt.cpp b/src/ripple/overlay/impl/ConnectAttempt.cpp index 741820085..bdb05e15c 100644 --- a/src/ripple/overlay/impl/ConnectAttempt.cpp +++ b/src/ripple/overlay/impl/ConnectAttempt.cpp @@ -18,13 +18,10 @@ //============================================================================== #include -#include #include #include -#include +#include #include -#include -#include namespace ripple { diff --git a/src/ripple/overlay/impl/ConnectAttempt.h b/src/ripple/overlay/impl/ConnectAttempt.h index d27ff5bad..d22463e0f 100644 --- a/src/ripple/overlay/impl/ConnectAttempt.h +++ b/src/ripple/overlay/impl/ConnectAttempt.h @@ -22,25 +22,7 @@ #include "ripple.pb.h" #include -#include -#include #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include namespace ripple { diff --git a/src/ripple/overlay/impl/OverlayImpl.cpp b/src/ripple/overlay/impl/OverlayImpl.cpp index 5fbfebc00..12baa4e0a 100644 --- a/src/ripple/overlay/impl/OverlayImpl.cpp +++ b/src/ripple/overlay/impl/OverlayImpl.cpp @@ -21,26 +21,16 @@ #include #include #include -#include -#include -#include #include -#include -#include -#include -#include +#include +#include #include +#include #include -#include #include #include -#include -#include -#include -#include -#include -#include -#include +#include +#include #include diff --git a/src/ripple/overlay/impl/PeerImp.cpp b/src/ripple/overlay/impl/PeerImp.cpp index e9e0c2322..26e832081 100644 --- a/src/ripple/overlay/impl/PeerImp.cpp +++ b/src/ripple/overlay/impl/PeerImp.cpp @@ -18,41 +18,26 @@ //============================================================================== #include -#include #include #include +#include #include #include -#include #include #include #include #include #include -#include #include #include -#include #include -#include #include -#include -#include -#include -#include -#include -#include -#include -#include -#include #include -#include -#include -#include +#include +#include + #include -#include #include -#include #include #include diff --git a/src/ripple/overlay/impl/PeerImp.h b/src/ripple/overlay/impl/PeerImp.h index 97c7176c6..3585321be 100644 --- a/src/ripple/overlay/impl/PeerImp.h +++ b/src/ripple/overlay/impl/PeerImp.h @@ -21,25 +21,16 @@ #define RIPPLE_OVERLAY_PEERIMP_H_INCLUDED #include -#include // deprecated -#include -#include +#include +#include +#include #include #include -#include -#include -#include -#include #include #include #include -#include -#include -#include -#include -#include -#include -#include +#include + #include #include #include diff --git a/src/ripple/overlay/impl/PeerSet.cpp b/src/ripple/overlay/impl/PeerSet.cpp index ac282cc60..f63a84ff4 100644 --- a/src/ripple/overlay/impl/PeerSet.cpp +++ b/src/ripple/overlay/impl/PeerSet.cpp @@ -18,8 +18,8 @@ //============================================================================== #include -#include #include +#include #include #include diff --git a/src/ripple/overlay/impl/TMHello.cpp b/src/ripple/overlay/impl/TMHello.cpp index 020bc6f1d..0ea6a5c31 100644 --- a/src/ripple/overlay/impl/TMHello.cpp +++ b/src/ripple/overlay/impl/TMHello.cpp @@ -18,15 +18,12 @@ //============================================================================== #include +#include #include #include -#include #include #include -#include #include -#include -#include #include #include #include diff --git a/src/ripple/overlay/impl/TMHello.h b/src/ripple/overlay/impl/TMHello.h index 0b80aa9d7..ed03f1543 100644 --- a/src/ripple/overlay/impl/TMHello.h +++ b/src/ripple/overlay/impl/TMHello.h @@ -20,17 +20,15 @@ #ifndef RIPPLE_OVERLAY_TMHELLO_H_INCLUDED #define RIPPLE_OVERLAY_TMHELLO_H_INCLUDED +#include "ripple.pb.h" #include -#include -#include -#include -#include #include -#include +#include + +#include #include #include -#include -#include "ripple.pb.h" +#include namespace ripple { diff --git a/src/ripple/unity/app_ledger.cpp b/src/ripple/unity/app_ledger.cpp index eec781b82..d38e6d02f 100644 --- a/src/ripple/unity/app_ledger.cpp +++ b/src/ripple/unity/app_ledger.cpp @@ -28,14 +28,3 @@ #include #include #include - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include diff --git a/src/ripple/unity/app_ledger_impl.cpp b/src/ripple/unity/app_ledger_impl.cpp new file mode 100644 index 000000000..1ea9d02fb --- /dev/null +++ b/src/ripple/unity/app_ledger_impl.cpp @@ -0,0 +1,31 @@ +//------------------------------------------------------------------------------ +/* + This file is part of rippled: https://github.com/ripple/rippled + Copyright (c) 2012, 2013 Ripple Labs Inc. + + Permission to use, copy, modify, and/or distribute this software for any + purpose with or without fee is hereby granted, provided that the above + copyright notice and this permission notice appear in all copies. + + THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES + WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF + MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR + ANY SPECIAL , DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN + ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF + OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. +*/ +//============================================================================== + +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include diff --git a/src/ripple/unity/app_main.cpp b/src/ripple/unity/app_main1.cpp similarity index 88% rename from src/ripple/unity/app_main.cpp rename to src/ripple/unity/app_main1.cpp index be3c746d3..24610ce22 100644 --- a/src/ripple/unity/app_main.cpp +++ b/src/ripple/unity/app_main1.cpp @@ -19,12 +19,8 @@ #include -#include #include #include +#include #include -#include -#include -#include #include -#include diff --git a/src/ripple/unity/app_main2.cpp b/src/ripple/unity/app_main2.cpp new file mode 100644 index 000000000..35e73a214 --- /dev/null +++ b/src/ripple/unity/app_main2.cpp @@ -0,0 +1,25 @@ +//------------------------------------------------------------------------------ +/* + This file is part of rippled: https://github.com/ripple/rippled + Copyright (c) 2012, 2013 Ripple Labs Inc. + + Permission to use, copy, modify, and/or distribute this software for any + purpose with or without fee is hereby granted, provided that the above + copyright notice and this permission notice appear in all copies. + + THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES + WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF + MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR + ANY SPECIAL , DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN + ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF + OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. +*/ +//============================================================================== + +#include + +#include +#include +#include +#include diff --git a/src/ripple/unity/app_misc.cpp b/src/ripple/unity/app_misc.cpp index f1a661602..4b56e546a 100644 --- a/src/ripple/unity/app_misc.cpp +++ b/src/ripple/unity/app_misc.cpp @@ -24,13 +24,3 @@ #include #include #include - -#include -#include -#include -#include -#include -#include -#include -#include -#include diff --git a/src/ripple/unity/app_misc_impl.cpp b/src/ripple/unity/app_misc_impl.cpp new file mode 100644 index 000000000..303e44205 --- /dev/null +++ b/src/ripple/unity/app_misc_impl.cpp @@ -0,0 +1,30 @@ +//------------------------------------------------------------------------------ +/* + This file is part of rippled: https://github.com/ripple/rippled + Copyright (c) 2012, 2013 Ripple Labs Inc. + + Permission to use, copy, modify, and/or distribute this software for any + purpose with or without fee is hereby granted, provided that the above + copyright notice and this permission notice appear in all copies. + + THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES + WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF + MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR + ANY SPECIAL , DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN + ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF + OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. +*/ +//============================================================================== + +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include diff --git a/src/ripple/unity/overlay1.cpp b/src/ripple/unity/overlay1.cpp new file mode 100644 index 000000000..9c3c06820 --- /dev/null +++ b/src/ripple/unity/overlay1.cpp @@ -0,0 +1,25 @@ +//------------------------------------------------------------------------------ +/* + This file is part of rippled: https://github.com/ripple/rippled + Copyright (c) 2012, 2013 Ripple Labs Inc. + + Permission to use, copy, modify, and/or distribute this software for any + purpose with or without fee is hereby granted, provided that the above + copyright notice and this permission notice appear in all copies. + + THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES + WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF + MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR + ANY SPECIAL , DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN + ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF + OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. +*/ +//============================================================================== + +#include + +#include +#include +#include +#include diff --git a/src/ripple/unity/overlay.cpp b/src/ripple/unity/overlay2.cpp similarity index 87% rename from src/ripple/unity/overlay.cpp rename to src/ripple/unity/overlay2.cpp index 59026ed9c..3cb1fc6f8 100644 --- a/src/ripple/unity/overlay.cpp +++ b/src/ripple/unity/overlay2.cpp @@ -19,10 +19,6 @@ #include -#include -#include -#include -#include #include #include #include diff --git a/src/ripple/unity/rpcx.cpp b/src/ripple/unity/rpcx1.cpp similarity index 66% rename from src/ripple/unity/rpcx.cpp rename to src/ripple/unity/rpcx1.cpp index 5db0e2e8d..a023be833 100644 --- a/src/ripple/unity/rpcx.cpp +++ b/src/ripple/unity/rpcx1.cpp @@ -23,13 +23,9 @@ #include #include - #include - -#include -#include - #include + #include #include #include @@ -62,34 +58,3 @@ #include #include #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -#include -#include -#include -#include -#include -#include diff --git a/src/ripple/unity/rpcx2.cpp b/src/ripple/unity/rpcx2.cpp new file mode 100644 index 000000000..3a1a89c2a --- /dev/null +++ b/src/ripple/unity/rpcx2.cpp @@ -0,0 +1,61 @@ +//------------------------------------------------------------------------------ +/* + This file is part of rippled: https://github.com/ripple/rippled + Copyright (c) 2012, 2013 Ripple Labs Inc. + + Permission to use, copy, modify, and/or distribute this software for any + purpose with or without fee is hereby granted, provided that the above + copyright notice and this permission notice appear in all copies. + + THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES + WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF + MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR + ANY SPECIAL , DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN + ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF + OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. +*/ +//============================================================================== + +#include + +// This has to be included early to prevent an obscure MSVC compile error +#include + +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include diff --git a/src/test/unity/app_test_unity1.cpp b/src/test/unity/app_test_unity1.cpp new file mode 100644 index 000000000..9c7e11e0f --- /dev/null +++ b/src/test/unity/app_test_unity1.cpp @@ -0,0 +1,36 @@ + +//------------------------------------------------------------------------------ +/* + This file is part of rippled: https://github.com/ripple/rippled + Copyright (c) 2012, 2013 Ripple Labs Inc. + + Permission to use, copy, modify, and/or distribute this software for any + purpose with or without fee is hereby granted, provided that the above + copyright notice and this permission notice appear in all copies. + + THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES + WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF + MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR + ANY SPECIAL , DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN + ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF + OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. +*/ +//============================================================================== + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include diff --git a/src/test/unity/app_test_unity.cpp b/src/test/unity/app_test_unity2.cpp similarity index 72% rename from src/test/unity/app_test_unity.cpp rename to src/test/unity/app_test_unity2.cpp index 9dead746f..2253e00fd 100644 --- a/src/test/unity/app_test_unity.cpp +++ b/src/test/unity/app_test_unity2.cpp @@ -18,36 +18,20 @@ */ //============================================================================== -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include #include #include #include +#include #include #include #include +#include #include -#include #include +#include #include #include #include #include #include #include -#include -#include -#include diff --git a/src/test/unity/beast_test_unity.cpp b/src/test/unity/beast_test_unity1.cpp similarity index 78% rename from src/test/unity/beast_test_unity.cpp rename to src/test/unity/beast_test_unity1.cpp index d799f3de9..272628f32 100644 --- a/src/test/unity/beast_test_unity.cpp +++ b/src/test/unity/beast_test_unity1.cpp @@ -26,12 +26,3 @@ #include #include #include -#include -#include -#include -#include -#include -#include -#include -#include -#include \ No newline at end of file diff --git a/src/test/unity/beast_test_unity2.cpp b/src/test/unity/beast_test_unity2.cpp new file mode 100644 index 000000000..f31297d4f --- /dev/null +++ b/src/test/unity/beast_test_unity2.cpp @@ -0,0 +1,29 @@ + +//------------------------------------------------------------------------------ +/* + This file is part of rippled: https://github.com/ripple/rippled + Copyright (c) 2012, 2013 Ripple Labs Inc. + + Permission to use, copy, modify, and/or distribute this software for any + purpose with or without fee is hereby granted, provided that the above + copyright notice and this permission notice appear in all copies. + + THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES + WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF + MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR + ANY SPECIAL , DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN + ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF + OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. +*/ +//============================================================================== + +#include +#include +#include +#include +#include +#include +#include +#include +#include diff --git a/src/test/unity/jtx_unity1.cpp b/src/test/unity/jtx_unity1.cpp new file mode 100644 index 000000000..037b90dae --- /dev/null +++ b/src/test/unity/jtx_unity1.cpp @@ -0,0 +1,37 @@ +//------------------------------------------------------------------------------ +/* + This file is part of rippled: https://github.com/ripple/rippled + Copyright (c) 2012, 2013 Ripple Labs Inc. + + Permission to use, copy, modify, and/or distribute this software for any + purpose with or without fee is hereby granted, provided that the above + copyright notice and this permission notice appear in all copies. + + THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES + WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF + MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR + ANY SPECIAL , DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN + ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF + OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. +*/ +//============================================================================== + +#include + +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include diff --git a/src/test/unity/jtx_unity.cpp b/src/test/unity/jtx_unity2.cpp similarity index 74% rename from src/test/unity/jtx_unity.cpp rename to src/test/unity/jtx_unity2.cpp index d44159308..a2be737f9 100644 --- a/src/test/unity/jtx_unity.cpp +++ b/src/test/unity/jtx_unity2.cpp @@ -19,17 +19,6 @@ #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include #include #include #include @@ -45,9 +34,4 @@ #include #include #include - -#include -#include #include -#include -#include diff --git a/src/test/unity/server_status_test_unity.cpp b/src/test/unity/server_status_test_unity.cpp new file mode 100644 index 000000000..2a87ee13e --- /dev/null +++ b/src/test/unity/server_status_test_unity.cpp @@ -0,0 +1,21 @@ + +//------------------------------------------------------------------------------ +/* + This file is part of rippled: https://github.com/ripple/rippled + Copyright (c) 2012, 2013 Ripple Labs Inc. + + Permission to use, copy, modify, and/or distribute this software for any + purpose with or without fee is hereby granted, provided that the above + copyright notice and this permission notice appear in all copies. + + THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES + WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF + MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR + ANY SPECIAL , DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN + ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF + OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. +*/ +//============================================================================== + +#include diff --git a/src/test/unity/server_test_unity.cpp b/src/test/unity/server_test_unity.cpp index 1cb2570f1..557797d74 100644 --- a/src/test/unity/server_test_unity.cpp +++ b/src/test/unity/server_test_unity.cpp @@ -19,4 +19,3 @@ //============================================================================== #include -#include