Skip to content

Commit

Permalink
Adjust tests
Browse files Browse the repository at this point in the history
  • Loading branch information
davschneller committed Aug 20, 2024
1 parent da2a02e commit 5acd604
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/tidy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
sudo apt-get -y update
sudo apt-get install -y software-properties-common
sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt-get install -y hdf5-tools libeigen3-dev libhdf5-openmpi-103 libhdf5-openmpi-dev libmetis-dev libomp-dev libopenmpi-dev libparmetis-dev libyaml-cpp-dev openmpi-bin openmpi-common python3 python3-pip
sudo apt-get install -y ninja-build libomp-dev libopenmpi-dev openmpi-bin openmpi-common python3 python3-pip
# keep, for once clang-19 or higher is needed
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
Expand All @@ -41,6 +41,7 @@ jobs:
which clang-tidy-18
git submodule update --init
mkdir -p build && cd build
cmake .. -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DTESTING=ON -DUSE_MPI=ON
cmake .. -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DTESTING=ON -DUSE_MPI=ON -GNinja
sed -i 's/-fprofile-abs-path //g' compile_commands.json
ninja
run-clang-tidy ../ ./ -clang-tidy-binary=$(which clang-tidy-18) -quiet -j $(nproc)
3 changes: 2 additions & 1 deletion tests/Module.t.h
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@ class Module : private async::Module<Module, Param, Param> {
void run() {
init();

const Param param;
const auto param = Param{0};

callInit(param);

wait();
Expand Down

0 comments on commit 5acd604

Please sign in to comment.