Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
maxtropets committed Nov 6, 2024
1 parent 013efc4 commit caf0f42
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 26 deletions.
17 changes: 16 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ jobs:
# Dependencies
tdnf -y install openssl-devel libuv-devel
# Test dependencies
tdnf -y install libarrow-devel parquet-libs-devel
tdnf -y install libarrow-devel parquet-libs-devel lldb
shell: bash

- uses: actions/checkout@v4
Expand All @@ -131,3 +131,18 @@ jobs:
CC=`which clang` CXX=`which clang++` cmake -GNinja -DCOMPILE_TARGET=virtual -DCMAKE_BUILD_TYPE=Debug -DLVI_MITIGATIONS=OFF -DUSE_LIBCXX=OFF ..
ninja
shell: bash

- name: "Test virtual"
run: |
set -ex
cd build
rm -rf /github/home/.cache
mkdir -p /github/home/.cache
export ASAN_SYMBOLIZER_PATH=$(realpath /usr/bin/llvm-symbolizer-15)
# Unit tests
./tests.sh --output-on-failure -L unit -j$(nproc --all)
# All other acceptably fast tests, mostly end-to-end
./tests.sh --timeout 360 --output-on-failure -LE "benchmark|protocolstest|suite|unit"
# Partitions tests
./tests.sh --timeout 240 --output-on-failure -L partitions -C partitions
shell: bash
22 changes: 11 additions & 11 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -807,17 +807,17 @@ if(BUILD_TESTS)
http_parser.host
)

add_unit_test(
endorsements_test
${CMAKE_CURRENT_SOURCE_DIR}/src/node/test/endorsements.cpp
)
set_property(
TEST endorsements_test
APPEND
PROPERTY
ENVIRONMENT
"TEST_ENDORSEMENTS_PATH=${CMAKE_CURRENT_SOURCE_DIR}/tests/uvm_endorsements"
)
# add_unit_test(
# endorsements_test
# ${CMAKE_CURRENT_SOURCE_DIR}/src/node/test/endorsements.cpp
# )
# set_property(
# TEST endorsements_test
# APPEND
# PROPERTY
# ENVIRONMENT
# "TEST_ENDORSEMENTS_PATH=${CMAKE_CURRENT_SOURCE_DIR}/tests/uvm_endorsements"
# )

add_unit_test(
historical_queries_test
Expand Down
16 changes: 2 additions & 14 deletions tests/tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,8 @@
set -e

echo "Setting up Python environment..."
if [ ! -f "env/bin/activate" ]
then
python3 -m venv env
if [ ! -f "env/bin/activate" ]; then
python3 -m venv env
fi

source env/bin/activate
Expand All @@ -16,17 +15,6 @@ pip install -q -U -e ../python/
pip install -q -U -r ../tests/requirements.txt
echo "Python environment successfully setup"

# We can delete it when
# lldb is included in the CI images
if ! command -v lldb; then
SUDO=""
if [ "$EUID" != 0 ]; then
SUDO="sudo"
fi
$SUDO apt update
$SUDO apt install -y lldb
fi

# Export where the VENV has been set, so tests running
# a sandbox.sh can inherit it rather create a new one
VENV_DIR=$(realpath env)
Expand Down

0 comments on commit caf0f42

Please sign in to comment.