Skip to content

Commit ebd92a7

Browse files
authored
changed the function tests name on the codebase (#177)
1 parent e2e334e commit ebd92a7

File tree

5 files changed

+23
-19
lines changed

5 files changed

+23
-19
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ To run the tests, you may use the driver scripts provided in the `./scripts/` di
148148

149149
```
150150
# Run Functional Tests
151-
./scripts/functional_tests/driver.sh ./build/tests/functional_tests/rocshmem_example_driver all <log_directory>
151+
./scripts/functional_tests/driver.sh ./build/tests/functional_tests/rocshmem_functional_tests all <log_directory>
152152
153153
# Run Unit Tests
154154
./scripts/unit_tests/driver.sh ./build/tests/unit_tests/rocshmem_unit_tests all

scripts/build_configs/codecov

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -36,29 +36,33 @@ LLVM_PROFILE_FILE="$PROFRAW_DIR/allreduce_test-%m.profraw" mpirun -np 4 ./ipc/e
3636

3737

3838
# Functional Tests
39-
LLVM_PROFILE_FILE="$PROFRAW_DIR/ipc-functional-%p.profraw" ../scripts/functional_tests/driver.sh ./ipc/tests/functional_tests/rocshmem_example_driver all ./test_output/
40-
LLVM_PROFILE_FILE="$PROFRAW_DIR/ro_net-functional-%p.profraw" ../scripts/functional_tests/driver.sh ./ro_net/tests/functional_tests/rocshmem_example_driver all ./test_output/
41-
LLVM_PROFILE_FILE="$PROFRAW_DIR/ro_ipc-functional-%p.profraw" ../scripts/functional_tests/driver.sh ./ro_ipc/tests/functional_tests/rocshmem_example_driver all ./test_output/
39+
LLVM_PROFILE_FILE="$PROFRAW_DIR/ipc-functional-%p.profraw" ../scripts/functional_tests/driver.sh ./ipc/tests/functional_tests/rocshmem_functional_tests all ./test_output/
40+
LLVM_PROFILE_FILE="$PROFRAW_DIR/ro_net-functional-%p.profraw" ../scripts/functional_tests/driver.sh ./ro_net/tests/functional_tests/rocshmem_functional_tests all ./test_output/
41+
LLVM_PROFILE_FILE="$PROFRAW_DIR/ro_ipc-functional-%p.profraw" ../scripts/functional_tests/driver.sh ./ro_ipc/tests/functional_tests/rocshmem_functional_tests all ./test_output/
4242

4343
# Coverage Report
4444
/opt/rocm/llvm/bin/llvm-profdata merge -sparse $PROFRAW_DIR/*.profraw -o ./coverage-report/rocshmem.profdata
4545
/opt/rocm/llvm/bin/llvm-cov report \
4646
-object ./ipc/tests/unit_tests/rocshmem_unit_tests \
47-
-object ./ipc/tests/functional_tests/rocshmem_example_driver \
47+
-object ./ipc/tests/functional_tests/rocshmem_functional_tests \
48+
-object ./ipc/examples/rocshmem_init_attr_test \
49+
-object ./ipc/examples/rocshmem_allreduce_test \
4850
-object ./ro_net/tests/unit_tests/rocshmem_unit_tests \
49-
-object ./ro_net/tests/functional_tests/rocshmem_example_driver \
51+
-object ./ro_net/tests/functional_tests/rocshmem_functional_tests \
5052
-object ./ro_ipc/tests/unit_tests/rocshmem_unit_tests \
51-
-object ./ro_ipc/tests/functional_tests/rocshmem_example_driver \
53+
-object ./ro_ipc/tests/functional_tests/rocshmem_functional_tests \
5254
-instr-profile=./coverage-report/rocshmem.profdata \
5355
--ignore-filename-regex=".*test.*"
5456

5557
/opt/rocm/llvm/bin/llvm-cov show \
5658
-object ./ipc/tests/unit_tests/rocshmem_unit_tests \
57-
-object ./ipc/tests/functional_tests/rocshmem_example_driver \
59+
-object ./ipc/tests/functional_tests/rocshmem_functional_tests \
60+
-object ./ipc/examples/rocshmem_init_attr_test \
61+
-object ./ipc/examples/rocshmem_allreduce_test \
5862
-object ./ro_net/tests/unit_tests/rocshmem_unit_tests \
59-
-object ./ro_net/tests/functional_tests/rocshmem_example_driver \
63+
-object ./ro_net/tests/functional_tests/rocshmem_functional_tests \
6064
-object ./ro_ipc/tests/unit_tests/rocshmem_unit_tests \
61-
-object ./ro_ipc/tests/functional_tests/rocshmem_example_driver \
65+
-object ./ro_ipc/tests/functional_tests/rocshmem_functional_tests \
6266
-instr-profile=./coverage-report/rocshmem.profdata \
6367
--ignore-filename-regex=".*test.*" \
6468
-format=html \

scripts/functional_tests/driver.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ def parse_command_line():
118118
parser.add_argument('--client_binary_path',
119119
dest='client_binary_path',
120120
type=str,
121-
default=os.getcwd()+'/build/rocshmem_example_driver')
121+
default=os.getcwd()+'/build/rocshmem_functional_tests')
122122

123123
parser.add_argument('--output_directory_path',
124124
dest='output_directory_path',

scripts/functional_tests/gdbrun

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,6 @@
2929
set -e
3030
for i in {1..$2};
3131
do
32-
mpirun -np 2 xterm -e gdb -x gdbscript --args build/rocshmem_example_driver -t 1 -w 1 -s 32768 -a $1 -x 8
32+
mpirun -np 2 xterm -e gdb -x gdbscript --args build/rocshmem_functional_tests -t 1 -w 1 -s 32768 -a $1 -x 8
3333
test $? -eq 0 || exit 1
3434
done

scripts/functional_tests/shmem_allLib_build_and_test.sh

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
#!/bin/bash
2626
###############################################
2727
# Script : shmem_allLib_build_and_test.sh
28-
# Description : the script is to build and execute test for
28+
# Description : the script is to build and execute test for
2929
# given libraries as parameter to the script.
3030
# the script used in math_ci jenkins pipeline
3131
# version 1.0 (Version 1)
@@ -91,12 +91,12 @@ do
9191
esac
9292

9393
if [ "$libnm" != "" ] #process only if libname found
94-
then
94+
then
9595
echo "+-------------------------------------------------------------------------------------------------+"
9696
echo `date +%Y%m%d%H%M%S`" ==> Start | $threadType - build_configs/$libnm <=="
9797
echo "starting with params==> $libnm ; $libBuildDir ; $threadType"
9898
echo
99-
99+
100100
echo "Library build at ==> "$libBuildDir
101101

102102
mkdir $libBuildDir
@@ -110,9 +110,9 @@ do
110110
ROC_NET_CPU_QUEUE=1
111111
UCX_TLS=rc
112112
#echo $ROCSHMEM_RO"--"$ROC_NET_CPU_QUEUE "--"$UCX_TLS
113-
../scripts/functional_tests/driver.sh tests/functional_tests/rocshmem_example_driver $threadType .
113+
../scripts/functional_tests/driver.sh tests/functional_tests/rocshmem_functional_tests $threadType .
114114
else
115-
../scripts/functional_tests/driver.sh tests/functional_tests/rocshmem_example_driver $threadType .
115+
../scripts/functional_tests/driver.sh tests/functional_tests/rocshmem_functional_tests $threadType .
116116
fi
117117

118118
if [ $? -ne 0 ]
@@ -133,7 +133,7 @@ do
133133
libBuildDir=""
134134
threadType=""
135135
done
136-
echo
136+
echo
137137
echo "Script execution ==> $0 <== is done"
138-
echo
138+
echo
139139

0 commit comments

Comments
 (0)