Skip to content

Commit edcd0d7

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

File tree

1 file changed

+24
-1
lines changed

1 file changed

+24
-1
lines changed

scripts/coverage/merge_coverage_files.sh

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,34 @@
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-actions-runner/_work/unified-memory-framework/unified-memory-framework"
21+
22+
for link in $LINKS; do
23+
sudo mkdir -p $link # create all subdirectories
24+
sudo rm -r $link # remove the last directory
25+
sudo ln -s $UMF_DIR $link # create the link
26+
sudo chown $USER:$GROUP $link # set permissions
27+
ls -al $link # check the link
28+
done
29+
30+
set +x
31+
932
OPTS=""
1033
for file in $(ls -1 ${PREFIX}-*); do
1134
OPTS="$OPTS -a $file"
1235
done
1336

14-
set -ex
37+
set -x
1538

1639
lcov -o $OUTPUT_NAME $OPTS

0 commit comments

Comments
 (0)