summaryrefslogtreecommitdiff
path: root/support
AgeCommit message (Collapse)Author
2019-06-24support/testing/infra/emulator: increase memory size used by QemuThomas Petazzoni
By default, Qemu emulates a system with 128 MB of RAM. This is not sufficient for some test cases we have, such as TestPerlDBDmysql, where the initramfs is quite large. Therefore, this commit extends the RAM size emulated by Qemu to 256 MB. Fixes: https://gitlab.com/buildroot.org/buildroot/-/jobs/237108668 Thanks to Arnout for the analysis of the issue. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com> Acked-by: Francois Perrad <francois.perrad@gadz.org> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com> (cherry picked from commit 345c29a4b7321952b916c1b4eb88a03e136919be) Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2019-06-24support/download/git: fix formatting of error messageJohn Keeping
'.' should be at the end of the sentence, not the beginning of a new line. Signed-off-by: John Keeping <john@metanate.com> Cc: Yann E. MORIN <yann.morin.1998@free.fr> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com> (cherry picked from commit 8dd1a41630fff72638b7942c926c2f50095ab0d6) Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2019-06-02Update for 2019.05Peter Korsgaard
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2019-05-27support/gnuconfig/config.sub: add C-SKY supportGuo Ren
Modify config.sub so that it knows about the C-SKY architecture. Without this, all autotools projects fail to build on C-SKY. Signed-off-by: Guo Ren <ren_guo@c-sky.com> [Thomas: improved commit log] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2019-05-20support/scripts/check-bin-arch: ignore /usr/lib/grubAlex Xu
/lib/grub is already ignored, so add /usr/lib/grub to support BR2_ROOTFS_MERGED_USR. Signed-off-by: Alex Xu <alex_y_xu@yahoo.ca> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2019-05-18support/testing/tests: drop Python 2.x test in test_ipythonThomas Petazzoni
Since commit 6ebaef3818d6e3dc821616a33391eb6d594a053e ("package/python-ipython: bump to version 7.4.0"), ipython is no longer available for Python 2.x, as it requires Python 3.x. However, the corresponding test case that was testing iPython under Python 2.x was not removed at the same time, causing a failure of TestIPythonPy2 test. Let's drop the test that is no longer relevant. Fixes: https://gitlab.com/buildroot.org/buildroot/-/jobs/210208754 Cc: Fabrice Fontaine <fontaine.fabrice@gmail.com> Cc: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2019-05-10support/dependencies: Add hint for ArchLinux when host needs IA32 libsVadim Kochan
Add hint about which package needs to be installed to provide IA32 libs support for the host when it is needed. Signed-off-by: Vadim Kochan <vadim4j@gmail.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2019-05-07support/scripts: use show-info to extract dependency graphYann E. MORIN
Currently, we extract the dependency graph from the aptly named but ad-hoc show-dependency-graph rule. We now have a better solution to report package information, with show-info. Since show-dependency-graph never went into a release so far, and show-info does provide the same (and more), switch to using show-info. Thanks to Adam for suggesting the coding style to have a readable code that is not ugly but still pleases flake8. Thanks to Arnout for suggesting the use of dict.get() to further simplify the code. Note: we do not use the reverse_dependencies field because it only contains those packages that have a kconfig option, so we'd miss most host packages. Reported-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com> Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com> Cc: Thomas De Schampheleire <patrickdepinguin@gmail.com> Cc: Adam Duskett <aduskett@gmail.com> Cc: Arnout Vandecappelle <arnout@mind.be> Cc: Ricardo Martincoski <ricardo.martincoski@gmail.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2019-04-17support/config-fragments/autobuild: test the Andes nds32 architectureNylon Chen
Signed-off-by: Che-Wei Chuang <cnoize@andestech.com> Signed-off-by: Greentime Hu <greentime@andestech.com> Signed-off-by: Nylon Chen <nylon7@andestech.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2019-04-15infra/utils: add helper to generate comma-separated listsYann E. MORIN
Add a helper macro that, from a space-separated list of items, returns a comma-separated list of the quoted items. This will be useful when we need to generate lists in JSON, later... Code suggested by Thomas P. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Cc: Thomas De Schampheleire <patrickdepinguin@gmail.com> Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com> Cc: Arnout Vandecappelle <arnout@mind.be> Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
2019-04-13support/scripts/brpkutil.py: wrap at 80 columnsYann E. MORIN
Previously, the flake8 script didn't help us to detect when Python scripts were incorrectly wrapped. Now, however, it does report such errors. Fix one such an error now. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Cc: Ricardo Martincoski <ricardo.martincoski@gmail.com> Cc: Arnout Vandecappelle <arnout@mind.be> [Arnout: give commit message a more positive tone] Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
2019-04-11support/testing: add test for xserver/Mesa OpenGL/glxinfoRomain Naour
This test allow to check if the xserver with GLX is working properly. This is a basic test but it allow to trigger the current bug reported by [1]. To test if the glxinfo test is working, you can change "-display :0" by "-display :1" in the glxinfo command line. [1] https://bugs.buildroot.org/show_bug.cgi?id=11591 Signed-off-by: Romain Naour <romain.naour@gmail.com> Cc: "Yann E. MORIN" <yann.morin.1998@free.fr> Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com> Signed-off-by: Romain Naour <romain.naour@smile.fr> Signed-off-by: Youssef Harmouch <youssef.harmouch@smile.fr> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2019-04-10support/dependencies/dependencies.sh: simplify an error messageMarkus Mayer
There is no need to break the "\n" sequence using "%sn". We can just escape it. Note: the escaping backslash needs to be escaped too, because the shell will process the string before printf gets to see it. Signed-off-by: Markus Mayer <mmayer@broadcom.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2019-03-31support/testing/tests/package/test_perl_*: regenerationFrancois Perrad
Signed-off-by: Francois Perrad <francois.perrad@gadz.org> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2019-03-31support/testing/tests/package/test_lua*: regenerationFrancois Perrad
Signed-off-by: Francois Perrad <francois.perrad@gadz.org> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2019-03-28support/testing: add lua-http testFrancois Perrad
Signed-off-by: Francois Perrad <francois.perrad@gadz.org> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2019-03-28support/testing: add rings testFrancois Perrad
Signed-off-by: Francois Perrad <francois.perrad@gadz.org> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2019-03-28support/testing: add luasocket testFrancois Perrad
Signed-off-by: Francois Perrad <francois.perrad@gadz.org> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2019-03-28support/testing: add luasec testFrancois Perrad
Signed-off-by: Francois Perrad <francois.perrad@gadz.org> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2019-03-28support/testing: add luaossl testFrancois Perrad
Signed-off-by: Francois Perrad <francois.perrad@gadz.org> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2019-03-28support/testing: add luafilesystem testFrancois Perrad
Signed-off-by: Francois Perrad <francois.perrad@gadz.org> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2019-03-28support/testing: add luaexpat testFrancois Perrad
Signed-off-by: Francois Perrad <francois.perrad@gadz.org> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2019-03-28support/testing: add lua-utf8 testFrancois Perrad
Signed-off-by: Francois Perrad <francois.perrad@gadz.org> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2019-03-28support/testing: add lua-curl testFrancois Perrad
Signed-off-by: Francois Perrad <francois.perrad@gadz.org> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2019-03-28support/testing: add lsqlite3 testFrancois Perrad
Signed-off-by: Francois Perrad <francois.perrad@gadz.org> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2019-03-28support/testing: add lpeg testFrancois Perrad
Signed-off-by: Francois Perrad <francois.perrad@gadz.org> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2019-03-25support/graph-depends: use the new make-based dependency treeYann E. MORIN
Now that we can get the whole dependency tree from make, use it to speed up things considerably. So far, we had three functions to get the dependencies information: get_depends(), get_rdepends(), and, somehow unrelated, get_version(). Because of the way %-show-{,r}depends works, getting the dependency tree was expensive, the three functions all took a set of packages for which to get the dependencies, in an attempt to limit the time it took to get that tree, but we still had to call these functions iteratively, until they returned no new dependency. This was pretty costly. Now, getting the tree is much, much less costly, and we can get the whole tree as cheaply as we previously got only the first-level dependencies. Furthermore, we can now also get the version information at the same time, and that also brings in whether the package is virtual or not, target or host. So, we drop all three helper functions, and replace them with a single one that returns all that information in one go: full dependency trees (direct and reverse), per-package type, and per-package version. Note: since commit 2d29fd96a (pkg-virtual: remove VERSION/SOURCE), virtual packages are no longer reported as having a 'virtual' version, so have since been displayed as regular packages in the graphs. Although noone complained, this patch incidentally restores the initial behaviour, and virtual packages are now correctly displayed as such again. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com> Cc: Thomas De Schampheleire <patrickdepinguin@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2019-03-25support/graph-depends: don't eliminate mandatory deps for reverse graphsYann E. MORIN
We we simplify the dependency graph, we try to remove so-called mandatory dependencies from each package, and for each mandatory that was thus removed, reattach it to the root-package of the graph. This was made so that mandatory dependencies (which are dependencies of all packages, or at least of a lot of packages) do not clutter the dependency graph, but that they are still shown in the graph, as dependencies of the root package. However, these mandatory dependencies are only _direct_ dependencies. As such, it does not make sense to reattach a mandatory dependency when doing a reverse graph. Worse, it can actually be incorrect. For example, 'skeleton' is a mandatory dependency, and as such is removed from all packages. But when doing a reverse graph, skeleton is now in the dependency chain of, e.g. skeleton-init-none; it should then not be removed. In short: the notion of mandatory dependencies does not make sense in the case of a reverse graph. Consequently, skip over the mandatory dependency removal when doing a reverse graph. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2019-03-17support/graph-depends: also cut on host-gzipYann E. MORIN
When host-gzip is needed, it is a mandatory dependency of all packages. As such, drawing the dependency lines toward host-gzip would uselessly clutter the graph. So, like for the skeleton, host-skeleton, and host-tar, we cut the dependency chains toward host-gzip. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2019-03-17support/graph-depends: also cut on host-tarYann E. MORIN
When host-tar is needed, it is a mandatory dependency of all packages. As such, drawing the dependency lines toward host-tar would uselessly clutter the graph. So, like for the skeleton and host-skeleton, we cut the dependency chains toward host-tar. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2019-03-17support/graph-depends: also cut on host-skeletonYann E. MORIN
host-skeleton is a dependency of almost all packages, except a very few. As such, it clutters the dependency graph uselessly. Do with it as we do for the skeleton: cut the dependency chains. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2019-03-17support/graph-depends: add option to exclude mandatory depsYann E. MORIN
Some times, multiple dependency graphs for a set of packages (mostly the application-level packages for the project) are included in reports (e.g. delivery notes). Repeating the mandatory dependencies on all those graphs is useless and clutters the important dependencies. When we had only two such mandatory dependencies (toolchain, skeleton), it was manageable to list them as manual exclusions: -x toolchain -x skeleton But we now have quite a few such dependencies, and it becomes a bit more cumbersome to manage, not counting the ones we may add in the future. Add an option to exclude all those mandatory dependencies, to generate neat graphs. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2019-03-17support/graph-depends: make sure mandatory deps are displayedThomas Petazzoni
The current graph-depends implementation filters out a number of "mandatory" dependencies that all packages have: dependency on "toolchain" and dependency on "skeleton". Despite this filtering, in full graph dependencies, "toolchain" and "skeleton" are still shown, because they are target packages, and therefore appear in the result of "make show-targets". Thanks to this, they will be visible as dependencies of the "ALL" node, which is the root of the dependency tree. However, as we are going to introduce host-skeleton as a "mandatory dependency" to be filtered out, this is no longer going to work. This commit adjusts the remove_extra_deps() function to ensure that when a mandatory dependency is removed, this dependency exists between the root of the dependency tree and the mandatory dependency. This issue was noticed by Yann E. Morin, and this commit provides a different implementation than what Yann proposed in https://patchwork.ozlabs.org/patch/910453/. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com> [yann.morin.1998@free.fr: - list mandatory deps before removing them - fix flake8 warnings ] Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2019-03-17support/testing/tests/package/test_openjdk: new testAdam Duskett
This test is a simple "Hello, World" integration test of the OpenJDK package. It compiles the Java app on the host, then runs it on an emulated AARCH64 target and verifies "Hello, World" is printed. Signed-off-by: Adam Duskett <Aduskett@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2019-03-15support/dependencies: add a check for python3Romain Naour
Since version 2.29, glibc requires python 3.4 or later to build the GNU C Library [1]. We add a new check to verify the version of python3 interpreter installed on the host. If no suitable python3 interpreter is found, define BR2_PYTHON3_HOST_DEPENDENCY to add host-python3 in package dependencies when needed. [1] https://www.sourceware.org/ml/libc-alpha/2019-01/msg00723.html Signed-off-by: Romain Naour <romain.naour@gmail.com> Tested-by: Adam Duskett <aduskett@gmail.com> Reviewed-by: Adam Duskett <aduskett@gmail.com> Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr> [Thomas: drop not so useful comment in the .mk file, as suggested by Yann E. Morin.] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2019-03-04Update for 2019.02Peter Korsgaard
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2019-03-04config-fragments: drop old crosstool-ng toolchainsPeter Korsgaard
These toolchains are very old and cause a number of autobuilder failures that doesn't happen with more recent toolchains: Fixes (glibc 2.18 does not provide O_TMPFILE): http://autobuild.buildroot.net/results/c49e8361a1d4406eefd8fc1b35c8e5b061aa403b Fixes (x86 toolchain built without libquadmath): http://autobuild.buildroot.net/results/2d9724f169ccd60c7feb1cb549f1e2e1e9219ac3/ Use Codesourcery ARM toolchain (GCC 4.8.3) to provide a test with a old GCC version. Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2019-03-01Revert "testing/tests/download: test git special ref"Ricardo Martincoski
This reverts commit 81771cfcdc40e5909a4ec663e7c88b3a32068c05. The download of sha1 of a special ref currently works or not depending on the git client version in use. With git version 2.11.0 (present in the docker image) it does not work. With git version 2.17.1 it works. For the sake of reproducibility, remove this part of the TestGitRefs test case until some code gets added to the download infra to handle sha1 of a special ref for any git client version. Fixes: https://gitlab.com/buildroot.org/buildroot/-/jobs/158295269 Signed-off-by: Ricardo Martincoski <ricardo.martincoski@gmail.com> Cc: Arnout Vandecappelle <arnout@mind.be> Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com> Cc: Yann E. MORIN <yann.morin.1998@free.fr> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2019-03-01support/dependencies: require at least CMake 3.8Fabrice Fontaine
gerbera package in version 1.3 unfortunately now requires CMake >= 3.8 for C++17 macros: https://github.com/gerbera/gerbera/commit/b5fd39f30fb10385ec228b71377685206a609c3a So we need to bump our requirement from 3.1 to 3.8. If the host doesn't have a CMake >= 3.8, Buildroot will build its own host-cmake package. Also drop patch that relax cmake requirement on json-for-modern-cpp Fixes: - http://autobuild.buildroot.org/results/6405647b47b132ff5d0d211b92d407322d52d507 Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2019-02-14support/config-fragments/autobuild: use external toolchains in RISC-V configsThomas Petazzoni
This commit replaces the two RISC-V configurations used for the autobuilders to use pre-built external toolchains rather than internal toolchains. This saves quite a bit of build time in the autobuilders, and also allows people to reproduce build issues in a much more efficient way, since rebuilding the toolchain is not needed. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com> Cc: Mark Corbin <mark.corbin@embecosm.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2019-02-14support/config-fragments/autobuild: update all pre-built Buildroot toolchainsThomas Petazzoni
All toolchains have been rebuilt with Buildroot 2019.02-rc1. Changes: - Toolchains that were using no-longer maintained kernel headers versions have been changed to use a variety of newer kernel headers versions (4.4, 4.9 or 4.14). - Since gcc 7.x is now the default in Buildroot, most toolchains that simply use the default gcc version use 7.x instead of 6.x. - br-arm-cortex-a9-glibc uses gcc 8.x, binutils 2.31 and kernel headers 4.20 Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2019-02-12support/testing: build a glibc toolchain for docker / docker-compose testsPeter Korsgaard
runc (which is a reverse dependency of docker-engine) is about to gain a !uclibc dependency, so move to a glibc toolchain instead. There are currently no prebuilt x86_64 / core2 / glibc toolchains available, so instead use the internal toolchain backend to build one. While we are at it, drop the infra.basetest.BASIC_TOOLCHAIN_CONFIG reference, as that ARM toolchain configuration doesn't make any sense for this x86-64 based test. add docker / docker-compose tests Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2019-02-07support/scripts/pkg-stats: fix flake8 errorsArnout Vandecappelle (Essensium/Mind)
Fixes the following flake8 warnings: support/scripts/pkg-stats:34:2: W605 invalid escape sequence '\$' support/scripts/pkg-stats:34:4: W605 invalid escape sequence '\(' support/scripts/pkg-stats:34:11: W605 invalid escape sequence '\$' support/scripts/pkg-stats:34:13: W605 invalid escape sequence '\(' support/scripts/pkg-stats:34:32: W605 invalid escape sequence '\)' support/scripts/pkg-stats:34:34: W605 invalid escape sequence '\)' support/scripts/pkg-stats:35:2: W605 invalid escape sequence '\s' support/scripts/pkg-stats:35:14: W605 invalid escape sequence '\S' support/scripts/pkg-stats:35:17: W605 invalid escape sequence '\s' support/scripts/pkg-stats:42:1: E302 expected 2 blank lines, found 1 support/scripts/pkg-stats:587:133: E501 line too long (157 > 132 characters) Note that the "invalid escape sequence" errors work because Python leaves the \ in place if it doesn't recognise the escape sequence. But it's better practice to use a raw string for regular expressions. Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
2019-02-06skeleton-custom: use a script to check merged usr structureCarlos Santos
Introduce support/scripts/check-merged-usr.sh, a script that check if a given path complies to the merged /usr requirements: / /bin -> usr/bin /lib -> usr/lib /sbin -> usr/sbin /usr/bin/ /usr/lib/ /usr/sbin/ Use this script in skeleton-custom.mk instead of a bunch of variables filled by $(shell ...) macros. The same script will be used to check rootfs overlays, in a forthcoming change. Signed-off-by: Carlos Santos <casantos@datacom.ind.br> Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
2019-02-06support/scripts/pkg-stats: add latest upstream version informationThomas Petazzoni
This commit adds fetching the latest upstream version of each package from release-monitoring.org. The fetching process first tries to use the package mappings of the "Buildroot" distribution [1]. This mapping mechanism allows to tell release-monitoring.org what is the name of a package in a given distribution/build-system. For example, the package xutil_util-macros in Buildroot is named xorg-util-macros on release-monitoring.org. This mapping can be seen in the section "Mappings" of https://release-monitoring.org/project/15037/. If there is no mapping, then it does a regular search, and within the search results, looks for a package whose name matches the Buildroot name. Even though fetching from release-monitoring.org is a bit slow, using multiprocessing.Pool has proven to not be reliable, with some requests ending up with an exception. So we keep a serialized approach, but with a single HTTPSConnectionPool() for all queries. Long term, we hope to be able to use a database dump of release-monitoring.org instead. From an output point of view, the latest version column: - Is green when the version in Buildroot matches the latest upstream version - Is orange when the latest upstream version is unknown because the package was not found on release-monitoring.org - Is red when the version in Buildroot doesn't match the latest upstream version. Note that we are not doing anything smart here: we are just testing if the strings are equal or not. - The cell contains the link to the project on release-monitoring.org if found. - The cell indicates if the match was done using a distro mapping, or through a regular search. [1] https://release-monitoring.org/distro/Buildroot/ Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com> Tested-by: Matthew Weber <matthew.weber@rockwellcollins.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2019-02-06.gitlab-ci.yml: use "extends" keywordRicardo Martincoski
Replace all YAML anchors with the new "extends" keyword because it is more readable and more flexible (it works across configuration files combined with the new "include" keyword). Readability is more meaningful in .gitlab-ci.yml.in. In the part of .gitlab-ci.yml that is auto-generated by 'make .gitlab-ci.yml' keep the keyword in the same line of the job name. So instead of this: zynqmp_zcu106_defconfig: extends: .defconfig tests.boot.test_atf.TestATFAllwinner: extends: .runtime_test Use this: zynqmp_zcu106_defconfig: { extends: .defconfig } tests.boot.test_atf.TestATFAllwinner: { extends: .runtime_test } Do this to to keep .gitlab-ci.yml easier to be post-processed by a script. Signed-off-by: Ricardo Martincoski <ricardo.martincoski@gmail.com> Cc: Arnout Vandecappelle <arnout@mind.be> Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com> Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
2019-02-06testing/tests/download: test git special refRicardo Martincoski
Add a special ref to the static repo and check on the git refs test case the download of a git package: - with the sha1 of a special ref as version; Signed-off-by: Ricardo Martincoski <ricardo.martincoski@datacom.ind.br> Cc: Arnout Vandecappelle <arnout@mind.be> [Arnout: change to use the sha1 of a special ref instead of the name] Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
2019-02-06testing/tests/download: test git tagRicardo Martincoski
Add a tag to the static repo and check on the git refs test case the download of a git package: - with the name of a tag as version; - with the sha1 of a tag itself as version; - with the partial sha1 of a tag itself as version; - with the sha1 of a commit pointed by a tag as version; - with the partial sha1 of a commit pointed by a tag as version; - with the sha1 of a commit reachable only by a tag as version; - with the partial sha1 of a commit reachable only by a tag as version. Signed-off-by: Ricardo Martincoski <ricardo.martincoski@datacom.ind.br> Cc: Arnout Vandecappelle <arnout@mind.be> Tested-by: Matthew Weber <matthew.weber@rockwellcollins.com> Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
2019-02-06testing/download: GIT use BRConfigTestMatt Weber
Enables the test to use the new non-emulator base class which takes significantly less test time. Cc: Ricardo Martincoski <ricardo.martincoski@datacom.ind.br> Signed-off-by: Matthew Weber <matthew.weber@rockwellcollins.com> Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
2019-02-06testing/infra: Add BRConfigTest as superclass of BRTestRicardo Martincoski
The git tests don't need to do a full build, they only need to do a configure and download and/or legal-info. More tests of that type will be added in the future. Therefore, we want to have a test base class that doesn't automatically do a full build in the setUp(). Add this new class as a superclass of the existing BRTest class, so we don't need to update existing tests. Only the code in run-tests that iterates over all subclasses of BRTest has to be adapted to use BRConfigTest instead. Signed-off-by: Ricardo Martincoski <ricardo.martincoski@datacom.ind.br> Cc: Arnout Vandecappelle <arnout@mind.be> Signed-off-by: Matthew Weber <matthew.weber@rockwellcollins.com> Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>