summaryrefslogtreecommitdiff
path: root/tcwg-buildfarm.sh
AgeCommit message (Collapse)Author
2020-04-30Shellcheck fixes round 4David Spickett
Fixes for: https://github.com/koalaman/shellcheck/wiki/SC2207 Are using the bash 4.x 'mapfile' syntax where the input to the array is seperated by newlines. If it's separated by spaces we use 'read' instead. Support for selecting libc in MakeRelease.job was removed in 3fa23da28ad73d0fe4b512c4aab269b5280a6650. So remove references to "libc" which were expanding to nothing anyway. In tcwg-llvm-common.sh PROJECTS->BRANCHED_PROJECTS is not strictly needed. However shellcheck can't tell that the local PROJECTS in this file is different from the PROJECTS in tcwg-llvm-build.sh. Change-Id: Ie55968e3bf185d0bd5795fe48014636cda1009bc
2020-04-28Shellcheck fixes round 3David Spickett
Now using the version that's present in the bionic images. Meaning we have more warnings but can also set the minimum level to ignore a lot of them. Fix the check for whether shellcheck supports --severity. (we have pipefail on, but we expect shellcheck to fail in this case) Change-Id: I296b8554591b7d327c75393e3924184abc6512b7
2020-04-23Shellcheck fixes round 2David Spickett
Also update the sanity check script to include .job files. Change-Id: Ibf72d9ff346ff7b012d4e282a6ac8f3b7e73590d
2020-04-10tcwg-buildfarm.sh, start-container-docker.sh: Update default distro imageMaxim Kuvyrkov
... to Ubuntu Bionic. Change-Id: If70d24e100d53eab95050cd9beb762a3c506a004
2020-04-01Change default to use "master" docker imagesMaxim Kuvyrkov
... instead of "tcwg-tested" due to https://projects.linaro.org/browse/LSS-1153 , which causes tcwg-tested images to not being updated. Change-Id: I2222b87892b029b23eb1baeb28747b148addb345
2018-11-29tcwg-buildfarm.sh: Fix ILP32 buildsMaxim Kuvyrkov
Convert $target_opt into bash array to fix quoting issues when passing "--override \"--extraconfigdir ../config/ilp32-dev\"" to jenkins.sh. Current quoting make the above into 3 arguments: 1: --override 2: "--extraconfigdir 3: ../config/ilp32-dev" instead of 1: --override 2: --extraconfigdir ../config/ilp32-dev Change-Id: I1441c038f27bde3db254b003140ab73ad2969672
2018-11-26Don't ignore "null" values in variable expansionsMaxim Kuvyrkov
Replace ${var:-default} with ${var-default}. I learned something new about shell scripting today. From bash manual: === When not performing substring expansion, using the form described below (e.g., ‘:-’), Bash tests for a parameter that is unset or null. Omitting the colon results in a test only for a parameter that is unset. Put another way, if the colon is included, the operator tests for both parameter’s existence and that its value is not null; if the colon is omitted, the operator tests only for existence. === The immediate problem I need to fix is handling of host_aarchXX_excludecheck and host_x86_64_excludecheck parameters in tcwg-buildfarm.sh. With ":-" syntax the empty ("null") values are replaced by defaults, causing GCC testsuite to be ignored on aarchXX hosts when "--host_aarchXX_excludecheck ''" is given. There happens to be a single usage ":-" in ${rw:-rw} in start-container-qemu.sh, where ":-" is actually needed. Change-Id: Ibc8e070b698e1c76e2161eb65d40639b8cdec1f3
2018-06-28tcwg-buildfarm.sh: Fix session_name for start-container-docker.Maxim Kuvyrkov
Make sure session_name has only allowed characters. Change-Id: I12820281f758841170f3a9aef5d7ed20e33a214e
2018-06-28tcwg-buildfarm.sh: Pass explicit --session-name option to test containersMaxim Kuvyrkov
... to avoid container name clashes "$USER-<DATE>" on tester boards. Passing "$$" as first element ensures that container will start with a number and will be cleaned up properly. Change-Id: I1920c3466f1e4d505b3662b8317fa72725209e2c
2018-06-27tcwg-buildfarm.sh: Fix "host" (former builder_type) expansion.Christophe Lyon
Since we assume this script is executed inside a container, we pass all parameters on the command line, which complicates the expansion of host if used in log_name. This patch fixes that by using a sed trick to replace @@host@@ with the value of host computed when possible. Change-Id: Iba2f442d7614b9516be8e913f68d8eec0cfe1a37
2018-06-19tcwg-buildfarm.sh: Fix computation of qemu_cpu.Christophe Lyon
Definition of qemu_cpu should be executed for all targets, as we always pass the option to jenkins.sh. Change-Id: I434c86750997d9bed8ce328aba56573555167786
2018-06-19tcwg-buildfarm: Add dryrun option.Maxim Kuvyrkov
Change-Id: Ic44d43528f37d315f6d724797890d86e5318a452
2018-06-18tcwg-buildfarm.sh: Start qemu container with test_container_tagChristophe Lyon
For consistency with containers for other types of validation. Change-Id: I1bfae92ac1aa46048bf61ffb5cddfda231030d7c
2018-06-18tcwg-buildfarm.sh: Remove code to handle docker containers.Maxim Kuvyrkov
Assume we are called inside a container already, e.g., via docker-run.sh Change-Id: If609254a6c925bb4923adc18e35a5e6cb8257381
2018-06-12tcwg-buildfarm.sh: Fix dry-run mode.Christophe Lyon
Save a dummy empty artifact to keep Jenkins happy. Change-Id: If317deb92870a82f209410024e83353d423bd138
2018-06-07tcwg-buildfarm.sh: Add dryrun flagChristophe Lyon
If set, perform the normal setup, but do not actually run jenkins.sh and only print the corresponding command-line. If set, no artifacts are generated. Change-Id: I5e5f94e1f478e5ee797ba29927655102c8591469
2018-06-01*.sh: Switch to *-tcwg-tested docker images.Maxim Kuvyrkov
Change-Id: I0abd9f0c7ec0da98990459cf175eb4e076bdab8d
2018-05-30tcwg-buildfarm.sh: Fix typo in qemu-cpu option.Christophe Lyon
Change-Id: I427e0932f8c6fa63a88f27cad0f24e2eb187f752
2018-05-29tcwg-buildfarm.sh: Support ABE --qemu_cpu option.Christophe Lyon
Define qemu_cpu and pass it to jenkins.sh, even when testing uses hardware instead of qemu: in such cases, qemu is not used and this parameter is ignored/useless. Define it to make the cpu type we use when testing on hardware: - cortex-a57 for armv8* (eg TX1 in aarch32 mode) - cortex-a15 for arm* (eg TK1) - cortex-a57 for aarch64* (eg TX1 in aarch64 mode) Change-Id: I51345ddd84835d5383f541fa29b47d6a2f8f35be
2018-05-28tcwg-buildfarm.sh: Use test_container_tag Jenkins parameterChristophe Lyon
to select the distro version to use in the test container. Change-Id: I0f751dfa4bd73c8fcc7d486412bf465d61bd3f56
2018-05-03tcwg-buildfarm.sh: Move code from .yamlMaxim Kuvyrkov
... verbatim. Change-Id: Id7e8129b5c8aa851c3ab02c72c9d2bece0c066d3