Skip to content

Commit 50ea7f3

Browse files
committed
Create links to different UMF source code directories
Signed-off-by: Lukasz Dorau <[email protected]>
1 parent c36a0ce commit 50ea7f3

File tree

1 file changed

+26
-1
lines changed

1 file changed

+26
-1
lines changed

scripts/coverage/merge_coverage_files.sh

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,36 @@
66
[ "$1" != "" ] && PREFIX="$1" || PREFIX="exports-coverage"
77
[ "$2" != "" ] && OUTPUT_NAME="$2" || OUTPUT_NAME="total_coverage"
88

9+
set -x
10+
11+
GROUP=$(groups | cut -d' ' -f1)
12+
13+
# The source code of UMF is located in /home/runner/work/unified-memory-framework/unified-memory-framework.
14+
UMF_DIR=/home/runner/work/unified-memory-framework/unified-memory-framework
15+
16+
# Create required links:
17+
LINKS="
18+
/home/testuser
19+
/home/test-user/actions-runner/_work/unified-memory-framework/unified-memory-framework
20+
/home/test-user/shared-action-runner/_work/unified-memory-framework/unified-memory-framework
21+
/home/test-user/shared-actions-runner/_work/unified-memory-framework/unified-memory-framework
22+
/opt/actions-runner/_work/unified-memory-framework/unified-memory-framework"
23+
24+
for link in $LINKS; do
25+
sudo mkdir -p $link # create all subdirectories
26+
sudo rm -r $link # remove the last directory
27+
sudo ln -s $UMF_DIR $link # create the link
28+
sudo chown $USER:$GROUP $link # set permissions
29+
ls -al $link # check the link
30+
done
31+
32+
set +x
33+
934
OPTS=""
1035
for file in $(ls -1 ${PREFIX}-*); do
1136
OPTS="$OPTS -a $file"
1237
done
1338

14-
set -ex
39+
set -x
1540

1641
lcov -o $OUTPUT_NAME $OPTS

0 commit comments

Comments
 (0)