File tree Expand file tree Collapse file tree 3 files changed +43
-21
lines changed
testsuite/tests/U204-026-arch-mix Expand file tree Collapse file tree 3 files changed +43
-21
lines changed Original file line number Diff line number Diff line change 12
12
13
13
# Update the linux artifacts
14
14
cd ..
15
- cp -rf U204-026-arch-mix /tmp/
15
+ rsync -ar U204-026-arch-mix/ /tmp/U204-026-arch-mix
16
16
cd /tmp/U204-026-arch-mix
17
17
./gen.sh linux
18
18
cd $cwd
19
- cp -rf /tmp/U204-026-arch-mix/* .
19
+ rsync -ar /tmp/U204-026-arch-mix/ .
20
20
21
- # Then update the windows artifacts
22
- [ ! -d ' /tmp/iod-dev' ] && git clone git-adacore:eng/shared/iod-dev /tmp/iod-dev
23
- /tmp/iod-dev/create-base.py --base-image x86_64-windows-2019
24
- git_branch=$( git rev-parse --abbrev-ref HEAD)
25
- sshpass ssh iod ' bash -s' < update_arch_mix_windows.sh $git_branch
21
+ # Then update the Windows artifacts using an IOD machine. Do not create the IOD
22
+ # instance if one already exists
23
+ IOD_DEV_DIR=/tmp/iod-dev
24
+ INSTANCES_FILE=" $IOD_DEV_DIR /instances.txt"
25
+ if ! [ -d " $IOD_DEV_DIR " ]
26
+ then
27
+ git clone git-adacore:eng/shared/iod-dev " $IOD_DEV_DIR "
28
+ fi
29
+ iod list --instances > " $INSTANCES_FILE " 2>&1
30
+ if ! grep " You have some running instance" " $INSTANCES_FILE " \
31
+ > /dev/null
32
+ then
33
+ " $IOD_DEV_DIR /create-base.py" --base-image x86_64-windows-2019
34
+ fi
35
+
36
+ ssh iod ' bash -s' < update_win_setup_git.sh
37
+ git push -f iod:gnatcoverage HEAD:wip
38
+ ssh iod ' bash -s' < update_arch_mix_windows.sh
26
39
rsync -av iod:/cygdrive/c/tmp/U204-026-arch-mix/gen/* gen/
Original file line number Diff line number Diff line change 2
2
3
3
set -ex
4
4
5
- if [ $# -eq 0 ]; then
6
- echo " No arguments provided. Please provide the name of the gnatcov branch"
7
- exit 1
8
- fi
9
-
10
5
# Create a sandbox
11
6
cd /Users/itmgr
12
- git clone git-adacore:eng/cov/gnatcoverage
13
- anod init wave
7
+ if ! [ -d wave ]
8
+ then
9
+ anod init wave
10
+ fi
14
11
15
12
# Checkout the right gnatcov branch
16
13
cd /Users/itmgr/gnatcoverage
17
- git fetch origin
18
- git checkout origin/$1
14
+ git reset --hard wip
19
15
20
16
# Build gnatcov
21
17
cd /Users/itmgr/wave
18
+ anod vcs --reset
22
19
anod vcs --add-repo gnatcoverage /Users/itmgr/gnatcoverage
23
- anod build gnatcov --interactive never
20
+ anod build gnatcov --smart
21
+ anod install gnatall -Qstable
24
22
eval $( anod printenv gnatcov)
25
23
eval $( anod printenv gnatall -Qstable)
26
24
27
25
# Then, retrieve the sources of the arch-mix test
28
- rm -rf /Users/itmgr/gnatcoverage/testsuite/tests/U204-026-arch-mix/gen/x86_64-windows
29
- cp -r /Users/itmgr/gnatcoverage/testsuite/tests/U204-026-arch-mix /cygdrive/c/tmp
30
- cd /cygdrive/c/tmp/U204-026-arch-mix
26
+ SRC_DIR=/Users/itmgr/gnatcoverage/testsuite/tests/U204-026-arch-mix
27
+ BUILD_DIR=/cygdrive/c/tmp/U204-026-arch-mix
28
+ rm -rf " $SRC_DIR /gen/x86_64-windows"
29
+ rsync -ar " $SRC_DIR /" " $BUILD_DIR "
30
+ cd " $BUILD_DIR "
31
31
chmod +x gen.sh
32
32
gnatcov setup
33
33
./gen.sh windows
34
34
35
35
# Copy back the generated sources
36
- cp -r /cygdrive/c/tmp/U204-026-arch-mix/ gen/* /Users/itmgr/gnatcoverage/testsuite/tests/U204-026-arch-mix/ gen/
36
+ rsync -ar " $BUILD_DIR / gen/" " $SRC_DIR / gen"
Original file line number Diff line number Diff line change
1
+ # Set up the gnatcoverage repositoy on the Windows IOD machie
2
+
3
+ set -ex
4
+
5
+ cd /Users/itmgr
6
+ if ! [ -d gnatcoverage ]
7
+ then
8
+ git clone git-adacore:eng/cov/gnatcoverage
9
+ fi
You can’t perform that action at this time.
0 commit comments