summaryrefslogtreecommitdiff
path: root/repo/pack.sh
blob: 80f9411b8976b5072abb02d28577bfe05526db76 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/usr/bin/env bash

tests_dir="tests"
tests_unsupported_on_arm32_file="testsUnsupportedOnARM32.txt"
tests_file="coreclr-2.0.7-tests-script.Windows_NT.x86.tgz"

declare -a scripts=(
    "runtest.sh"
    "setup-stress-dependencies.sh"
    "skipCrossGenFiles.arm.txt"
    "testsRunningInsideARM.txt"
    "testsFailingOutsideWindows.txt"
    "testsUnsupportedOutsideWindows.txt"
    "testsUnsupportedOnARM32.txt"
)

declare -a patches=(
    "testsUnsupportedOnARM32.Tizen.txt"
    "testsUnsupportedOnARM32.LargeMemory.txt"
    "testsUnsupportedOnARM32.Uncommitted.txt"
)

mkdir ${tests_dir}
for script in "${scripts[@]}"
do
    cp ${script} -t ${tests_dir}
done

for patch in "${patches[@]}"
do
    echo "$0: apply ${patch} to ${tests_unsupported_on_arm32_file}"
    cat ./${patch} >> ${tests_dir}/${tests_unsupported_on_arm32_file}
done

tar cfz ${tests_file} ./${tests_dir}

echo "$0: ${tests_file}"

rm -rf ${tests_dir}