Skip to content

Commit edc1ca8

Browse files
committed
Add DEVDAX and FSDAX tests with the proxy library
Signed-off-by: Lukasz Dorau <[email protected]>
1 parent f1a0ede commit edc1ca8

File tree

1 file changed

+22
-4
lines changed

1 file changed

+22
-4
lines changed

.github/workflows/reusable_dax.yml

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -101,10 +101,28 @@ jobs:
101101
102102
- name: Run the FSDAX tests
103103
working-directory: ${{env.BUILD_DIR}}
104-
run: |
105-
UMF_TESTS_FSDAX_PATH=${{env.UMF_TESTS_FSDAX_PATH}} UMF_TESTS_FSDAX_PATH_2=${{env.UMF_TESTS_FSDAX_PATH_2}} ctest -C ${{matrix.build_type}} -R umf-provider_file_memory -V
106-
UMF_TESTS_FSDAX_PATH=${{env.UMF_TESTS_FSDAX_PATH}} UMF_TESTS_FSDAX_PATH_2=${{env.UMF_TESTS_FSDAX_PATH_2}} ctest -C ${{matrix.build_type}} -R umf_example_dram_and_fsdax -V
107-
UMF_TESTS_FSDAX_PATH=${{env.UMF_TESTS_FSDAX_PATH}} UMF_TESTS_FSDAX_PATH_2=${{env.UMF_TESTS_FSDAX_PATH_2}} ctest -C ${{matrix.build_type}} -R umf-ipc_file_prov_fsdax -V
104+
run: >
105+
UMF_TESTS_FSDAX_PATH=${{env.UMF_TESTS_FSDAX_PATH}}
106+
UMF_TESTS_FSDAX_PATH_2=${{env.UMF_TESTS_FSDAX_PATH_2}}
107+
ctest -C ${{matrix.build_type}} -V -R "umf-provider_file_memory|umf_example_dram_and_fsdax|umf-ipc_file_prov_fsdax"
108+
109+
# TODO: enable the provider_devdax_memory_ipc test when the IPC tests with the proxy library are fixed
110+
# see the issue: https://github.com/oneapi-src/unified-memory-framework/issues/864
111+
- name: Run the DEVDAX tests with the proxy library
112+
working-directory: ${{env.BUILD_DIR}}
113+
run: >
114+
LD_PRELOAD=./lib/libumf_proxy.so
115+
UMF_TESTS_DEVDAX_PATH="/dev/dax${{env.DEVDAX_NAMESPACE}}"
116+
UMF_TESTS_DEVDAX_SIZE="$(ndctl list --namespace=namespace${{env.DEVDAX_NAMESPACE}} | grep size | cut -d':' -f2 | cut -d',' -f1)"
117+
ctest -C ${{matrix.build_type}} -R devdax -E provider_devdax_memory_ipc -V
118+
119+
- name: Run the FSDAX tests with the proxy library
120+
working-directory: ${{env.BUILD_DIR}}
121+
run: >
122+
LD_PRELOAD=./lib/libumf_proxy.so
123+
UMF_TESTS_FSDAX_PATH=${{env.UMF_TESTS_FSDAX_PATH}}
124+
UMF_TESTS_FSDAX_PATH_2=${{env.UMF_TESTS_FSDAX_PATH_2}}
125+
ctest -C ${{matrix.build_type}} -V -R "umf-provider_file_memory|umf_example_dram_and_fsdax|umf-ipc_file_prov_fsdax"
108126
109127
- name: Check coverage
110128
if: ${{ matrix.build_type == 'Debug' }}

0 commit comments

Comments
 (0)