aboutsummaryrefslogtreecommitdiff
path: root/scripts
AgeCommit message (Collapse)Author
2023-04-12ci: add libconfig install directory to pkg-config pathTuomas Taipale
Add CentOS `libconfig` install directory to `PKG_CONFIG_PATH`. Signed-off-by: Tuomas Taipale <tuomas.taipale@nokia.com> Reviewed-by: Janne Peltonen <janne.peltonen@nokia.com>
2023-03-29ci: add dpdk install directory to pkg-config path for arm64Matias Elo
Add CentOS and Rocky Linux default DPDK install directory to PKG_CONFIG_PATH for native arm64 builds. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
2023-03-27ci: mount huge pages before odp buildMatias Elo
Mounting huge pages fails randomly in GitHub Actions if VM disk is close to full. Maximize probability that mounting succeeds by mounting huge pages before ODP build. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
2023-03-27ci: add dpdk install directory to pkg-config pathMatias Elo
Add CentOS and Rocky Linux default DPDK install directory to PKG_CONFIG_PATH. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
2023-03-27ci: use common build script for risc-v build testMatias Elo
DPDK is now available also for RISC-V, so common build script can be used. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
2022-11-09github_ci: add static build tests to arm64 ci pipelineMatias Elo
Add missing static build tests to arm64 GitHub CI pipeline. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Tuomas Taipale <tuomas.taipale@nokia.com>
2022-10-19ci: do installcheck in build jobsJere Leppänen
Now that we have a build-and-run test in installcheck, use it in CI build scripts, instead of implementing a similar test in each individual script. Signed-off-by: Jere Leppänen <jere.leppanen@nokia.com> Reviewed-by: Tuomas Taipale <tuomas.taipale@nokia.com> Reviewed-by: Matias Elo <matias.elo@nokia.com>
2022-10-07github_ci: change default test image to ubuntu 20.04Matias Elo
Upgrade default test image from Ubuntu 18.04 to 20.04. i386 cross- compilation stays on Ubuntu 18.04 as 20.04 dropped support for i386. Default GCC version changes to 9 and Clang to 10. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
2022-08-25ci: add static buildsPetri Savolainen
Added CI jobs that build everything with static linking (--disable-shared), with and without LTO. OpenSSL and PCAP is disabled on Ubuntu 22 build, since those generated internal linking errors. Signed-off-by: Petri Savolainen <petri.savolainen@nokia.com> Reviewed-by: Tuomas Taipale <tuomas.taipale@nokia.com>
2022-03-18ci: fix native arm64 buildMatias Elo
Don't override standard tools and paths when building ODP natively on arm64. Run_OS(ubuntu_18.04) test was passing an empty CC variable as it doesn't use matrix for compilers. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Tuomas Taipale <tuomas.taipale@nokia.com> Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
2022-03-02checkpatch: ignore camel case warnings from PRIuPTRMatias Elo
Disable warnings from PRIuPTR usage. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Jere Leppänen <jere.leppanen@nokia.com> Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
2022-02-04ci: run odp_sysinfo example after native buildsMatias Elo
Run odp_sysinfo application after native ODP builds in the CI. This application can provide more useful information in the CI log (e.g. CPU model) compared to the previously used odp_hello application. When cross compiling, the odp_sysinfo application is only built. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
2022-02-03github_ci: add tests for armv8 cryptoMalvika Gupta
Add cross-compilation and native tests for ARMv8 crypto. Signed-off-by: Matias Elo <matias.elo@nokia.com> Signed-off-by: Malvika Gupta <Malvika.Gupta@arm.com> Reviewed-by: Janne Peltonen <janne.peltonen@nokia.com>
2022-01-26ci: update codecov uploader versionMatias Elo
Upgrade to Codecov uploader V2 as V1 is being discontinued. The new uploader doesn't convert *.gcno files into *.gcov files automatically anymore, so this has to be done now manually in the coverage.sh script. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Tuomas Taipale <tuomas.taipale@nokia.com>
2021-09-17checkpatch: add ODP specific typos to spelling.txtPetri Savolainen
Added ODP specific section at the end of the spelling file. A pretty common typo is to use ODP_CACHE_ALIGNED instead of ODP_ALIGNED_CACHE. When this typo is done with a nameless struct type, compiler does not catch it (but this does). Signed-off-by: Petri Savolainen <petri.savolainen@nokia.com> Reviewed-by: Matias Elo <matias.elo@nokia.com>
2021-09-17checkpatch: update spelling.txt filePetri Savolainen
Updated spelling file content from Linux kernel version 5.14.3. https://elixir.bootlin.com/linux/v5.14.3/source/scripts/spelling.txt Signed-off-by: Petri Savolainen <petri.savolainen@nokia.com> Reviewed-by: Matias Elo <matias.elo@nokia.com>
2021-06-21ci: add additional aarch64 pkg-config directoryMatias Elo
DPDK aarch64 pkg-config file is installed to /usr/local/lib/aarch64-linux-gnu/pkgconfig. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
2021-05-31ci: fix misspelled CFLAGS in coverage.shJere Leppänen
Fix misspelled CFLAGS in coverage.sh. Signed-off-by: Jere Leppänen <jere.leppanen@nokia.com> Reviewed-by: Matias Elo <matias.elo@nokia.com>
2021-05-31ci: skip pktio_test_pktin_event_sched test with scalable schedulerPetri Savolainen
Couple of issues (deadlock, crash and race condition) were found during addition of pktin event queue test. Scalable scheduler seems to need several fixes to overcome all those. Don't run this test with scalable scheduler before the issues have been fixed. Signed-off-by: Petri Savolainen <petri.savolainen@nokia.com> Reviewed-by: Matias Elo <matias.elo@nokia.com>
2021-05-11shippable: remove serviceMatias Elo
Shippable service has been discontinued. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Jere Leppänen <jere.leppanen@nokia.com>
2021-05-06github_ci: enable native arm64 ci jobsDean Arnold
To enable the arm64 CI, ci-pipeline-arm64.yaml file has been added with approximately 40+ jobs. Some of the CI scripts were also modified to add an ARCH environment variable for allowing native arm64 builds for the jobs. Jobs have been restricted to only run when the repo is owned by OpenDataPlane. This is to prevent the CI triggering on forks of the project where Graviton2 self-hosted runners are not available. Signed-off-by: Dean Arnold <dean.arnold@arm.com> Signed-off-by: Malvika Gupta <Malvika.Gupta@arm.com> Reviewed-by: Matias Elo <matias.elo@nokia.com>
2021-03-31scripts: coverity: fix directory nameJuraj Linkeš
Coverity expects that the directory where it's storing the results of the build is named "cov-int". Rename the directory to address this. Signed-off-by: Juraj Linkeš <juraj.linkes@pantheon.tech> Reviewed-by: Matias Elo <matias.elo@nokia.com>
2021-03-29github_ci: add Coverity job and scriptJuraj Linkeš
Add an Ubuntu20.04 Coverity job scheduled daily. The build is without DPDK as we don't need that for static analysis. Signed-off-by: Juraj Linkeš <juraj.linkes@pantheon.tech> Reviewed-by: Matias Elo <matias.elo@nokia.com>
2021-03-18ci: use multiple jobs for distcheckJere Leppänen
Use $(nproc) jobs to run distcheck in CI. Signed-off-by: Jere Leppänen <jere.leppanen@nokia.com> Reviewed-by: Matias Elo <matias.elo@nokia.com>
2021-03-02checkpatch: update spelling filePetri Savolainen
Update spelling.txt to the latest version from https://github.com/torvalds/linux repo (commit 30cdbd53921ff8c39c7c2e7a6318d964a0ae154c). Signed-off-by: Petri Savolainen <petri.savolainen@nokia.com> Reviewed-by: Matias Elo <matias.elo@nokia.com>
2021-03-02checkpatch: update to latest versionPetri Savolainen
Update checkpatch.pl to the latest version from https://github.com/torvalds/linux repo (commit 5b8f82e1a17695c9e5fec5842b234967782d7e5b). ODP needs to have two modifications in the file. Those has been marked with comments including ODP as a keyword. Signed-off-by: Petri Savolainen <petri.savolainen@nokia.com> Reviewed-by: Matias Elo <matias.elo@nokia.com>
2021-02-26build: check names of global symbols in static librariesJere Leppänen
Add tests to check that global symbols in static libodp-linux and libodphelper conform to certain prefix patterns. Fixes: https://github.com/OpenDataPlane/odp/issues/805 Signed-off-by: Jere Leppänen <jere.leppanen@nokia.com> Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
2020-12-04ci: add build script for riscv64 architectureMatias Elo
Add build script for 64-bit RISC-V architecture. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Jere Leppänen <jere.leppanen@nokia.com>
2020-11-26ci: decrease coverage test durationMatias Elo
Decrease coverage test duration from 35min to 20min by running only validation tests for scalable and sp schedulers. A full 'make check' is run for these schedulers in a separate CI job. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
2020-11-26github_ci: use codecov-action to upload coverage test resultsMatias Elo
Upload coverage test results using codecov/codecov-action. Using shared Codecov token is no longer required since the results are automatically uploaded under repository's GitHub username. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
2020-11-24ci: add make clean step to build scriptMatias Elo
Add 'make clean' step to fix CI builds where the same source directory is used multiple times with varying configuration options. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
2020-11-04scripts: spelling: update to the latest versionMatias Elo
Update Linux spelling file to the latest version (v5.10-rc2). Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
2020-06-11checkpatch: ignore LONG_LINE_STRING warningsMatias Elo
Allow string lines longer than max line length. Remove now unnecessary modifications to the checkpatch file. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
2020-06-10checkpatch: update to the latest versionMatias Elo
Update checkpatch script to the latest version (571d54ed9). Major changes: - Max line length has been increased to 100 - New warning about missing commit description - New warning about preferring 'fallthrough;' over fallthrough comment Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
2020-05-06codecov: enable performance testsMatias Elo
Improve testing coverage. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
2020-02-26ci: use correct paths for pkg-config when cross compilingMatias Elo
Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
2020-02-26travis: change default ubuntu container version to 18.04Matias Elo
Separate DPDK v18.11 test has been removed. DPDK v18.11 is used now by default in Ubuntu 18.04 x86 builds. DPDK v17.11 is still used in Ubuntu 16.04 builds. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
2019-11-26travis: add packet and packet IO align testPetri Savolainen
Test new packet/buffer/pktin alignment configuration file options. Uses pktio_run.sh to run packets through various pktio types. Signed-off-by: Petri Savolainen <petri.savolainen@nokia.com> Reviewed-by: Matias Elo <matias.elo@nokia.com>
2019-05-09travis: add out of tree build testPetri Savolainen
Test ODP build also out of tree. Signed-off-by: Petri Savolainen <petri.savolainen@nokia.com> Reviewed-by: Stanislaw Kardach <skardach@marvell.com>
2019-04-18linux-gen: shm: increase amount of pre-reserved single va memoryMatias Elo
Due to changes in pool implementation (linux-gen: pool: use pointer ring to store buffer headers) additional single va memory is required for process mode operation. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Carl Wallen <carl.wallen@nokia.com> Reported-by: Carl Wallen <carl.wallen@nokia.com>
2019-03-18ci: remove deleted configure option test-perf-procMatias Elo
Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
2018-11-28travis: check.sh request huge pages at early startMaxim Uvarov
Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org> Reviewed-by: Bill Fischofer <bill.fischofer@linaro.org>
2018-11-21shippable: switch to using official Shippable imageDmitry Eremin-Solenikov
Signed-off-by: Dmitry Eremin-Solenikov <dmitry.ereminsolenikov@linaro.org> Reviewed-by: Bill Fischofer <bill.fischofer@linaro.org> Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
2018-11-16travis: test inline timer implementationMatias Elo
Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Bill Fischofer <bill.fischofer@linaro.org> Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
2018-10-25remove scripts/build-pktio-dpdkMaxim Uvarov
Script was introduced to quick build odp with dpdk pktio support for dev or testing propose. Now it's more easy to run docker container with same parameters as CI does. Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org> Signed-off-by: Dmitry Eremin-Solenikov <dmitry.ereminsolenikov@linaro.org> Reviewed-by: Bill Fischofer <bill.fischofer@linaro.org> Reviewed-and-tested-by: Matias Elo <matias.elo@nokia.com>
2018-10-22travis: split distcheck testPetri Savolainen
Distcheck test takes over 20 minutes. Split it into two test cases, so that those can run in parallel. Signed-off-by: Petri Savolainen <petri.savolainen@linaro.org> Reviewed-by: Dmitry Eremin-Solenikov <dmitry.ereminsolenikov@linaro.org> Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
2018-10-22travis: build ODP on multiple threadsPetri Savolainen
Build ODP on multiple threads with 'make -j $(nproc)'. Signed-off-by: Petri Savolainen <petri.savolainen@linaro.org> Reviewed-by: Dmitry Eremin-Solenikov <dmitry.ereminsolenikov@linaro.org> Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
2018-10-16ci: remove iquery testsPetri Savolainen
Remove iquery scheduler from CI test scripts. Signed-off-by: Petri Savolainen <petri.savolainen@linaro.org> Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
2018-10-08travis: export CI for first distcheckMaxim Uvarov
scripts runs 2 distchecks but only for second one CI was exported. Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
2018-09-03travis: let after_failure task print logsMaxim Uvarov
current print logs are not executed due to set -e, let after_failure task print logs if return code is not zero. Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org> Reviewed-by: Dmitry Eremin-Solenikov <dmitry.ereminsolenikov@linaro.org>