Skip to content

Commit

Permalink
enh(ci): run unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
obiltschnig committed Apr 29, 2024
1 parent 1ac5a28 commit e57e2e8
Showing 1 changed file with 24 additions and 3 deletions.
27 changes: 24 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,33 @@ jobs:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- run: sudo apt update && sudo apt install libssl-dev python-is-python3
- run: make -s -j`nproc` DEFAULT_TARGET=shared_release
- name: Install dependencies
run: sudo apt update && sudo apt install libssl-dev python-is-python3
- name: Build
run: make -s -j`nproc` TESTS=1 SAMPLES=1 ASAN=1 DEFAULT_TARGET=shared_release
- name: Run tests
run: |
export CPPUNIT_IGNORE="\
CppUnit::TestCaller<RawSocketTest>.testEchoIPv4,\
CppUnit::TestCaller<RawSocketTest>.testSendToReceiveFromIPv4,\
CppUnit::TestCaller<ICMPClientTest>.testPing,\
CppUnit::TestCaller<ICMPClientTest>.testBigPing,\
CppUnit::TestCaller<ICMPSocketTest>.testSendToReceiveFrom,\
CppUnit::TestCaller<ICMPSocketTest>.testAssign,\
CppUnit::TestCaller<ICMPSocketTest>.testMTU,\
CppUnit::TestCaller<NTPClientTest>.testTimeSync,\
CppUnit::TestCaller<HTTPSClientSessionTest>.testProxy,\
CppUnit::TestCaller<HTTPSStreamFactoryTest>.testProxy"
export EXCLUDE_TESTS="Data/MySQL Data/ODBC Data/PostgreSQL MongoDB"
cp platform/Foundation/testsuite/bin/Linux/x86_64/TestApp platform/Foundation/testsuite
export PATH=$PATH:.
cd platform && build/script/runtests.sh

macos-clang-make:
runs-on: macos-12
steps:
- uses: actions/checkout@v3
- run: brew install openssl@3 [email protected]
- name: Install dependencies
run: brew install openssl@3 [email protected]
- name: Build
- run: PATH=/usr/local/opt/[email protected]/libexec/bin:$PATH make -s -j`sysctl -n hw.ncpu` DEFAULT_TARGET=shared_release

0 comments on commit e57e2e8

Please sign in to comment.