Skip to content

Commit ba3b193

Browse files
martin-gadrianreber
authored andcommitted
Add get_source.sh for admin/test-suite component
Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org> (cherry picked from commit c8c3da5)
1 parent bd0f2b8 commit ba3b193

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
#!/usr/bin/env bash
2+
3+
set -xe
4+
5+
# Note: The current working directory is the component's SPEC folder
6+
OHPC_ROOT_FOLDER="../../../.."
7+
8+
# The folder that will contain the .git/ and docs/ folders
9+
TESTS_OHPC_FOLDER=tests-ohpc
10+
11+
cleanup() {
12+
rm -rf ${TESTS_OHPC_FOLDER}
13+
}
14+
trap cleanup EXIT
15+
16+
# 1. Prepare
17+
cleanup
18+
mkdir -p ${TESTS_OHPC_FOLDER}
19+
20+
# 2. Copy the local docs/
21+
cp -r ${OHPC_ROOT_FOLDER}/tests ${TESTS_OHPC_FOLDER}
22+
23+
# 3. Create tests-ohpc.tar
24+
tar cf ../SOURCES/tests-ohpc.tar ${TESTS_OHPC_FOLDER}

0 commit comments

Comments
 (0)