File tree 4 files changed +40
-1
lines changed
4 files changed +40
-1
lines changed Original file line number Diff line number Diff line change 99
99
run : |
100
100
UMF_TESTS_FSDAX_PATH=${{env.UMF_TESTS_FSDAX_PATH}} ctest -C ${{matrix.build_type}} -R umf-provider_file_memory -V
101
101
UMF_TESTS_FSDAX_PATH=${{env.UMF_TESTS_FSDAX_PATH}} ctest -C ${{matrix.build_type}} -R umf_example_dram_and_fsdax -V
102
+ UMF_TESTS_FSDAX_PATH=${{env.UMF_TESTS_FSDAX_PATH}} ctest -C ${{matrix.build_type}} -R umf-ipc_file_prov_fsdax -V
Original file line number Diff line number Diff line change @@ -433,6 +433,7 @@ if(LINUX)
433
433
common/ipc_common.c
434
434
common/ipc_os_prov_common.c)
435
435
add_umf_ipc_test(TEST ipc_file_prov)
436
+ add_umf_ipc_test(TEST ipc_file_prov_fsdax)
436
437
endif ()
437
438
438
439
# TODO add IPC tests for CUDA
Original file line number Diff line number Diff line change
1
+ #
2
+ # Copyright (C) 2024 Intel Corporation
3
+ #
4
+ # Under the Apache License v2.0 with LLVM Exceptions. See LICENSE.TXT.
5
+ # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6
+ #
7
+
8
+ #! /bin/bash
9
+
10
+ set -e
11
+
12
+ if [ " $UMF_TESTS_FSDAX_PATH " = " " ]; then
13
+ echo " $0 : Test skipped, UMF_TESTS_FSDAX_PATH is not set" ;
14
+ exit 0
15
+ fi
16
+
17
+ FILE_NAME=" $UMF_TESTS_FSDAX_PATH "
18
+
19
+ # port should be a number from the range <1024, 65535>
20
+ PORT=$(( 1024 + ( $$ % ( 65535 - 1024 )) ))
21
+
22
+ UMF_LOG_VAL=" level:debug;flush:debug;output:stderr;pid:yes"
23
+
24
+ # make sure the temp file does not exist
25
+ rm -f ${FILE_NAME}
26
+
27
+ echo " Starting ipc_file_prov_fsdax CONSUMER on port $PORT ..."
28
+ UMF_LOG=$UMF_LOG_VAL ./umf_test-ipc_file_prov_consumer $PORT $FILE_NAME &
29
+
30
+ echo " Waiting 1 sec ..."
31
+ sleep 1
32
+
33
+ echo " Starting ipc_file_prov_fsdax PRODUCER on port $PORT ..."
34
+ UMF_LOG=$UMF_LOG_VAL ./umf_test-ipc_file_prov_producer $PORT $FILE_NAME
35
+
36
+ # remove the SHM file
37
+ rm -f ${FILE_NAME}
Original file line number Diff line number Diff line change @@ -94,7 +94,7 @@ for test in $(ls -1 umf_test-*); do
94
94
;;
95
95
umf_test-ipc_file_prov_* )
96
96
echo " - SKIPPED"
97
- continue ; # skip testing helper binaries used by the ipc_file_prov test
97
+ continue ; # skip testing helper binaries used by the ipc_file_prov_* tests
98
98
;;
99
99
umf_test-memspace_host_all)
100
100
FILTER=' --gtest_filter="-*allocsSpreadAcrossAllNumaNodes"'
You can’t perform that action at this time.
0 commit comments