Skip to content

Commit

Permalink
CI updates for python tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bdeane-intel committed Mar 14, 2024
1 parent e32d5b5 commit b54e4e1
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/asciidoctor-ghpages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
runs-on: ${{ github.repository_owner == 'intel' && 'intel-' || '' }}ubuntu-22.04
steps:
- name: Checkout source
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
- name: Setup Node.js
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
with:
Expand Down
9 changes: 7 additions & 2 deletions .github/workflows/unit_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,12 @@ jobs:
- name: Install build tools
run: |
${{ matrix.install }}
sudo apt install -y ninja-build
sudo apt install -y python3-pip ninja-build
- name: Install python test tools
run: |
sudo pip3 install --upgrade pip
sudo pip3 install pytest pytest-forked hypothesis cppyy
- name: Configure CMake
env:
Expand Down Expand Up @@ -185,7 +190,7 @@ jobs:
run: cmake -B ${{github.workspace}}/build -DCMAKE_CXX_STANDARD=${{env.DEFAULT_CXX_STANDARD}}

- name: Build Unit Tests
run: cmake --build ${{github.workspace}}/build -t unit_tests
run: cmake --build ${{github.workspace}}/build -t cpp_tests

valgrind:
runs-on: ${{ github.repository_owner == 'intel' && 'intel-' || '' }}ubuntu-22.04
Expand Down
12 changes: 6 additions & 6 deletions test/mmio_bus_pbt.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@
#include <async/then.hpp>

#include <groov/mmio_bus.hpp>
#include <groov/path.hpp>
#include <groov/path.hpp>

namespace test {
uint64_t volatile reg64{};
auto addr64 = reinterpret_cast<std::uintptr_t>(&reg64);
template<typename T, T mask, T id_mask, T id_value>

template <typename T, T mask, T id_mask, T id_value>
void bus_write(std::uintptr_t addr64, T write_value) {
groov::mmio_bus<>::write<mask, id_mask, id_value>(addr64, write_value) |
async::sync_wait();
groov::mmio_bus<>::write<mask, id_mask, id_value>(addr64, write_value) |
async::sync_wait();
}
} // namespace test
} // namespace test

0 comments on commit b54e4e1

Please sign in to comment.