diff --git a/.github/workflows/clang-format.yml b/.github/workflows/clang-format.yml index 1b86eed736..4b71cbf617 100644 --- a/.github/workflows/clang-format.yml +++ b/.github/workflows/clang-format.yml @@ -20,7 +20,7 @@ jobs: sudo apt-get update sudo apt-get install clang-format-${CLANG_VERSION} - name: Format first-party sources - run: find include src -type f \( -name '*.cpp' -o -name '*.hpp' -o -name '*.h' -o -name '*.ipp' \) -exec clang-format-${CLANG_VERSION} -i {} + + run: find include src tests -type f \( -name '*.cpp' -o -name '*.hpp' -o -name '*.h' -o -name '*.ipp' \) -exec clang-format-${CLANG_VERSION} -i {} + - name: Check for differences id: assert run: | diff --git a/.github/workflows/nix.yml b/.github/workflows/nix.yml index d9a67a63e9..1660103bd3 100644 --- a/.github/workflows/nix.yml +++ b/.github/workflows/nix.yml @@ -288,7 +288,7 @@ jobs: echo "reference=${reference}" >> "${GITHUB_ENV}" - name: build run: | - cd examples/example + cd tests/conan mkdir ${build_dir} cd ${build_dir} conan install .. --output-folder . \ diff --git a/tests/README.md b/tests/README.md new file mode 100644 index 0000000000..0306915b3b --- /dev/null +++ b/tests/README.md @@ -0,0 +1,4 @@ +# Integration tests +This directory contains integration tests for the project. These tests are run +against the `libxrpl` library or `rippled` binary to verify they are working as +expected. diff --git a/examples/example/CMakeLists.txt b/tests/conan/CMakeLists.txt similarity index 100% rename from examples/example/CMakeLists.txt rename to tests/conan/CMakeLists.txt diff --git a/examples/example/conanfile.py b/tests/conan/conanfile.py similarity index 100% rename from examples/example/conanfile.py rename to tests/conan/conanfile.py diff --git a/examples/example/src/example.cpp b/tests/conan/src/example.cpp similarity index 78% rename from examples/example/src/example.cpp rename to tests/conan/src/example.cpp index 8c3acdee07..41dcd62462 100644 --- a/examples/example/src/example.cpp +++ b/tests/conan/src/example.cpp @@ -2,7 +2,9 @@ #include -int main(int argc, char const** argv) { +int +main(int argc, char const** argv) +{ std::printf("%s\n", ripple::BuildInfo::getVersionString().c_str()); return 0; }