From 7a7c2bdda1dda6e98f6bae1c8951b9534cb55de7 Mon Sep 17 00:00:00 2001 From: Hongli Lai Date: Wed, 18 Sep 2024 15:12:07 +0200 Subject: [PATCH] test --- .github/workflows/main.yml | 29 ++++++++++++++--------------- 1 file changed, 14 insertions(+), 15 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index fa76505302..e47f5a6577 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -11,7 +11,7 @@ on: jobs: cxx: - name: "C++ unit tests on ${{ matrix.os }}, as ${{ matrix.user }}" + name: "C++ unit tests/${{ matrix.os }}" strategy: fail-fast: false matrix: @@ -23,20 +23,19 @@ jobs: - uses: actions/checkout@v4 with: submodules: true - - uses: ruby/setup-ruby@v1 - with: - ruby-version: ${{ env.DEFAULT_RUBY_VERSION }} - bundler-cache: true - - run: bundle exec rake test:install_deps BASE_DEPS=yes - env: - SUDO: '1' - - run: bundle exec rake -j2 test:cxx - env: - SUDO: '1' - - uses: actions/upload-artifact@v4 - with: - name: cxx-${{ matrix.os }} - path: 'buildout/testlogs/*' + - run: bundle exec rake src/cxx_supportlib/Constants.h + - run: c++ -o buildout/test/cxx/Core/SecurityUpdateCheckerTest.o -Itest/cxx -Itest/support -Isrc/agent -Isrc/cxx_supportlib -Isrc/cxx_supportlib/vendor-copy -Isrc/cxx_supportlib/vendor-modified -include test/cxx/TestSupport.h -Isrc/cxx_supportlib/vendor-modified/libev -DUSE_VENDORED_LIBEV -Isrc/cxx_supportlib/vendor-copy/libuv/include -DTESTING_APPLICATION_POOL -D_REENTRANT -I/usr/local/include -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-long-long -Wno-missing-field-initializers -Wno-unknown-pragmas -feliminate-unused-debug-symbols -feliminate-unused-debug-types -fvisibility=hidden -DVISIBILITY_ATTRIBUTE_SUPPORTED -Wno-attributes -DHAS_ALLOCA_H -DHAVE_ACCEPT4 -DHAS_SFENCE -DHAS_LFENCE -DPASSENGER_DEBUG -DBOOST_DISABLE_ASSERTS -ggdb -std=gnu++11 -Wno-unused-local-typedefs -Wno-format-nonliteral -DHAS_UNORDERED_MAP -c test/cxx/Core/SecurityUpdateCheckerTest.cpp + # - uses: ruby/setup-ruby@v1 + # with: + # ruby-version: ${{ env.DEFAULT_RUBY_VERSION }} + # bundler-cache: true + # - run: bundle exec rake -j2 test:cxx + # env: + # SUDO: '1' + # - uses: actions/upload-artifact@v4 + # with: + # name: cxx-${{ matrix.os }} + # path: 'buildout/testlogs/*' # integration: # name: '${{ matrix.integration.name }} integration tests on ${{ matrix.os }}'