Commit Graph

115 Commits

Author SHA1 Message Date
Wang Mingyu
46266e59ff googletest: upgrade 1.12.1 -> 1.13.0
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-03-23 21:46:12 -07:00
Khem Raj
05f0920798 cmocka: Check for previous declaration of uintptr_t
Fix build with musl/aarch64

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-03-22 09:12:40 -07:00
Randy MacLeod
c9136de654 cmocka: update from 1.1.5+ to 1.1.7
Switch the SRC_URI branch from master to stable-1.1

The 1.1.5 version was actually a bit ahead of that tag but
the ChangeLog comment for the two releases are:

Thu Feb 23 2023 Andreas Schneider <asn@cryptomilk.org>
    * cmocka version 1.1.7
    * Update ignore list for source tarball generation

Fri Feb 16 2023 Andreas Schneider <asn@cryptomilk.org>
    * cmocka version 1.1.6
    * Added new assert macros to compare 2 double given an epsilon
    * Added meson build system
    * Added header with version to TAP13 output
    * Fixed issues with MSVC
    * Fixed TAP output for skipped tests
    * Fixed issue with fail_msg
    * CMake generated configs for find_package(cmocka)
    * Documentation improvements

CMake still seems to be the default build tool based on Install.md
so use that rather than the shiny Meson system.

One test, test_cmockery, was added so now there are 23 passing ptests.

Signed-off-by: Randy MacLeod <Randy.MacLeod@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-03-22 09:12:40 -07:00
Wang Mingyu
5f2c3b32dd cukinia: upgrade 0.6.0 -> 0.6.1
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-03-04 10:41:27 -08:00
Wang Mingyu
d13bea0481 bats: upgrade 1.8.2 -> 1.9.0
Added:
=======
-add installation instructions for Debian, Fedora, Gentoo, and OpenSUSE (#659)
-add --line-reference-format to switch file/line references in stack traces (#665)
 comma_line (default): file.bats, line 1
 colon: file.bats:1
 uri: file:///path/to/file.bats:1
 custom: define your own formatter in bats_format_file_line_reference_custom
-add bats:focus tag to run only focused tests (#679)
-add bats-support, bats-assert, bats-file and bats-detik to Dockerfile (#674)

Documentation:
==============
-add --help text and man page content for --filter-tags (#679)
-improved clarity of section about output in free code (#671)
-fixed typos (#673)
-clarify use cases of run (#366)

Fixed:
=======
-explicitly check for GNU parallel (#691)
-wait for report-formatter to finish before ending bats' execution,
 to fix empty files with --report-fomatter junit under Docker (#692)

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-03-04 10:41:27 -08:00
Jan Luebbe
55740758c3 linux-serial-test: add recipe
This is a collection of tests for serial ports and their drivers.

Signed-off-by: Jan Luebbe <jlu@pengutronix.de>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-02-15 08:23:49 -08:00
Khem Raj
6a9ed97fe1 fwts: Upgrade to 22.11.00
Forward port 0003-Remove-Werror-from-build.patch
Add a patch to fix parallel build race condition

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-12-03 08:11:30 -08:00
Peter Marko
8c0402f7c4 cpputest: add possibility to build extensions
Signed-off-by: Peter Marko <peter.marko@siemens.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-10-28 10:05:38 -07:00
Peter Marko
8210e5904c cpputest: remove dev package dependency
The main package is empty so it was not possible to install
  dev package to sdk as it depends on main package.

Signed-off-by: Peter Marko <peter.marko@siemens.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-10-28 10:05:38 -07:00
Wang Mingyu
8dd9faa5c6 bats: upgrade 1.8.0 -> 1.8.2
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-10-24 09:56:33 -07:00
Ovidiu Panait
cfac82c560 syzkaller: add recipe and selftest for syzkaller fuzzing
Syzkaller is a coverage-guided fuzzer that is widely used to find bugs in
the Linux kernel:
https://github.com/google/syzkaller

Add the recipe and a selftest for running the fuzzer in a qemux86-64
kvm environment. The following steps can be used to start the test:
"""
cat >> conf/local.conf <<EOF
SYZ_WORKDIR="<path>"
SYZ_FUZZTIME="30"
SYZ_QEMU_VM_COUNT="2"
SYZ_QEMU_MEM="2048"
SYZ_QEMU_CPUS="2"
EOF

oe-selftest -r syzkaller
...
loading corpus...
serving http on http://127.0.0.1:49605
serving rpc on tcp://[::]:46475
booting test machines...
wait for the connection from test machine...
vm-0: crash: KCSAN: data-race in poll_schedule_timeout.constprop.NUM / pollwake
vm-1: crash: KCSAN: data-race in mutex_spin_on_owner
machine check:
syscalls                : 2227/4223
code coverage           : enabled
comparison tracing      : enabled
extra coverage          : enabled
delay kcov mmap         : mmap returned an invalid pointer
setuid sandbox          : enabled
namespace sandbox       : enabled
Android sandbox         : /sys/fs/selinux/policy does not exist
fault injection         : enabled
leak checking           : enabled
net packet injection    : enabled
net device setup        : enabled
concurrency sanitizer   : enabled
devlink PCI setup       : PCI device 0000:00:10.0 is not available
USB emulation           : enabled
hci packet injection    : enabled
wifi device emulation   : enabled
802.15.4 emulation      : enabled
corpus                  : 0 (deleted 0 broken)
seeds                   : 0/0
VMs 2, executed 1, cover 0, signal 0/0, crashes 2, repro 0
vm-1: crash: KCSAN: data-race in mutex_spin_on_owner
"""

This will fuzz the yocto kernel for 30 minutes using 2 qemu VMs, each VM
getting 2048MB of memory and 2 CPUs.

The path in SYZ_WORKDIR must be an absolute path that is persistent across
oe-selftest runs, so that fuzzing does not start all over again on each
invocation. Syzkaller will save the corpus database in that directory and will
use the database to keep track of the interfaces already fuzzed.

After the test is done, <workdir>/crashes directory will contain the report
files for all the bugs found.

Signed-off-by: Ovidiu Panait <ovidiu.panait@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-10-21 09:57:59 -07:00
wangmy
6f7de16466 bats: upgrade 1.7.0 -> 1.8.0
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-09-20 18:55:26 -07:00
Khem Raj
284f38a12b gnome-keyring,cunit,xfce4-panel: Do not inherit remove-libtool class here
Its in global namespace and already inherited

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-08-12 01:24:27 -07:00
wangmy
0720560740 bats: upgrade 1.6.1 -> 1.7.0
Changelog:https://github.com/bats-core/bats-core/releases/tag/v1.7.0

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-07-07 10:26:37 -04:00
wangmy
c68cead291 googletest: upgrade 1.12.0 -> 1.12.1
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-07-06 00:08:14 -04:00
wangmy
05cf0fdf46 googletest: upgrade 1.11.0 -> 1.12.0
Changelog:
==========
C++ Language Support
----------------------
    This will be the last release to support C++11. Future releases will require at least C++14.

Mocking
---------
    Support for move-only values to Return (5126f71)

Matchers
--------------
    New matchers
        WhenBase64Unescaped (652ec31)
    ResultOf() now has a 3-arg overload that takes a description string for better error messages (0e40217)

Build & Test
----------------
    CMake minimum increased to 3.5
    Bazel users that build GoogleTest using the Abseil library as a dependency now also require a dependency on RE2 (e33c2b2)
    Bazel users that build GoogleTest using the Abseil library now use the Abseil library to parse all command-line flags (25dcdc7)

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-07-02 11:37:02 -04:00
Wang Mingyu
6d9f82e5ab evtest: upgrade 1.34 -> 1.35
0001-Fix-build-on-32bit-arches-with-64bit-time_t.patch
refreshed for new version.

add_missing_limits_h_include.patch
removed since it's included in 1.35.

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-05-24 08:39:45 -07:00
Diego Sueiro
72fbb8379f bats: upgrade 1.6.0 -> 1.6.1
The 1.6.1 incorporates the
0001-Fix-status-in-teardown-overriding-exit-code.patch backport patch.

Changelog:
==========

Fixed:
------
prevent teardown, teardown_file, and teardown_suite from overriding bats'
exit code by setting $status (e.g. via calling run) (#581, #575)
CRITICAL: this can return exit code 0 despite failed tests, thus preventing
your CI from reporting test failures! The regression happened in version 1.6.0.

Documentation:
--------------
corrected invalid documentation of run -N (had =N instead) (#579)
CRITICAL: using the incorrect form can lead to silent errors. See issue #578
for more details and how to find out if your tests are affected.

Signed-off-by: Diego Sueiro <diego.sueiro@arm.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-05-16 09:09:47 -07:00
Richard Neill
408866fe80 bats: Add patch to fix false-negatives caused by teardown code
BATS v1.6.0 has a regression which can result in test case failures being
ignored when teardown code executes successfully. This patch applies the
accepted bug-fix until the next BATS release.

Also, fix a comment that wasn't updated during the BATS upgrade, to match the
correct release (v1.6.0) associated with the SRCREV.

Signed-off-by: Richard Neill <richard.neill@arm.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-05-09 13:03:09 -07:00
Willy Tu
cf80085c06 googletests: Update SRC_URI to 9e71237 to move closer to lastest version
Picked 9e71237221
as the latest Verified commit and move closer to the HEAD of
googletests. Googletests does not make releases that often and some good
to have features are missing.

Signed-off-by: Willy Tu <wltu@google.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-04-11 07:46:51 -07:00
Khem Raj
33841aec58 fwts: Do not use --as-needed on ppc64
This is not seen on non ppc64 hosts

Fixes
build/src/lib/src/.libs/libfwts.so: undefined reference to `fwts_acpica_sem_count_get'

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-03-14 09:44:26 -07:00
Khem Raj
268e844999 fwts: Upgrade to 22.01.00
Drop upstreamed poll.h patch
Refresh rest of patches

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-03-14 09:16:05 -07:00
Khem Raj
14c7d8a0d7 recipes: Update LICENSE variable to use SPDX license identifiers
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-03-04 17:41:45 -08:00
Wang Mingyu
af6d226340 cukinia: upgrade 0.5.1 -> 0.6.0
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-03-01 09:13:42 -08:00
Wang Mingyu
76d8e526ea bats: upgrade 1.5.0 -> 1.6.0
Changelog:
=========
Added:
-----
new flag --code-quote-style (and $BATS_CODE_QUOTE_STYLE) to customize
quotes around code blocks in error output (#506)
an example/regression test for running background tasks without blocking the
test run (#525, #535)
bats_load_library for loading libraries from the search path
$BATS_LIB_PATH (#548)

Fixed:
-----
improved error trace for some broken cases (#279)
removed leftover debug file /tmp/latch in selftest suite
(single use latch) (#516)
fix recurring errors on CTRL+C tests with NPM on Windows in selftest suite (#516)
fixed leaking of local variables from debug trap (#520)
don't mark FD3 output from teardown_file as <failure> in junit output (#532)
fix unbound variable error with Bash pre 4.4 (#550)

Documentation:
--------------
remove links to defunct freenode IRC channel (#515)
improved grammar (#534)
fixed link to TAP spec (#537)

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-03-01 09:13:42 -08:00
Khem Raj
b8bc91a2c0 cxxtest: Define PIP_INSTALL_DIST_PATH
Helps to find the wheel file

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-02-28 08:39:26 -08:00
Tim Orling
2a93580169 cmocka: use https protocol for fetching
Upstream gitlab instance is refusing git:// protocol.

Signed-off-by: Tim Orling <tim.orling@konsulko.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-01-18 09:01:51 -08:00
Ross Burton
e0a5065365 cxxtest: move to setuptools
setup.py has always supported setuptools, so change the inherit now that
distutils is deprecated.

Leave S as the top of the source tree, and set SETUPUTILS_SETUP_PATH
to find the setup.py.

Fix the hashbang in cxxtestgen, which was still pointing at python not
python3.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-01-18 09:01:51 -08:00
Ross Burton
8465e5e56a fwts: do out-of-tree builds
The bug preventing out-of-tree builds was fixed in 21.05.00.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-01-09 22:47:29 -08:00
wangmy
f16f628d1f bats: upgrade 1.4.1 -> 1.5.0
0001-install.sh-consider-multilib.patch
removed since it is included in 1.5.0

Changelog:
Issues for this release <https://github.com/bats-core/bats-core/pull/####>
=========
Added:
---------
 new command line flags (#488)
 --verbose-run: Make run print $output by default
 -x, --trace: Print test commands as they are executed (like set -x)`
 --show-output-of-passing-tests: Print output of passing tests
 --print-output-on-failure: Automatically print the value of $output on
 failed tests
 --gather-test-outputs-in <directory>: Gather the output of failing and
 passing tests as files in directory
 Experimental: add return code checks to run via !/-<N> (#367, #507)
 install.sh and uninstall.sh take an optional second parameter for the lib
 folder name to allow for multilib install, e.g. into lib64 (#452)
 add run flag --keep-empty-lines to retain empty lines in ${lines[@]} (#224,
 a894fbf)
 add run flag --separate-stderr which also fills $stderr and
 $stderr_lines (#47, 5c9b173d, #507)

Fixed:
---------
 don't glob run's $output when splitting into ${lines[@]}
 (#151, #152, #158, #156, #281, #289)
 remove empty line after test with pretty formatter on some terminals (#481)
 don't run setup_file/teardown_file on files without tests, e.g. due to
 filtering (#484)
 print final line without newline on Bash 3.2 for midtest (ERREXIT) failures
 too (#495, #145)
 abort with error on missing flock/shlock when running in parallel mode (#496)
 improved set -u test and fixed some unset variable accesses (#498, #501)
 shorten suite/file/test temporary folder paths to leave enough space even on
 restricted systems (#503)

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-01-07 11:29:09 -08:00
Peter Kjellerstedt
eab5e822a9 googletest: Switch branch from master to main
The master branch has been renamed to main in the github repo.

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-12-21 18:48:51 -08:00
Oleksandr Kravchuk
c57e4d5faa fb-test: fix SRC_URI
Original repo doesn't exist any more. Even though I couldn't find any
new official repo, this is the only one on github that contains used
commit hash.

Signed-off-by: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-12-06 09:56:50 -08:00
Richard Purdie
b402a3076f recipes: Update SRC_URI branch and protocols
This patch updates SRC_URIs using git to include branch=master if no branch is set
and also to use protocol=https for github urls as generated by the conversion script
in OE-Core.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-11-03 06:57:49 -07:00
Sakib Sajal
34ec975313 bats: source files from correct directory
Files are installed in ${baselib} directory when multilib is
enabled and not in the hardcoded lib directory making it fail
to source bats-core files.

Parameterize the libdir such that the files are sources correctly.

Signed-off-by: Sakib Sajal <sakib.sajal@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-09-24 08:12:35 -07:00
Andreas Müller
8deb9e96df catch2: upgrade 2.13.6 -> 2.13.7
Fixes
* Added missing <iterator> include in benchmarking. (#2231)
* Fixed noexcept build with benchmarking enabled (#2235)
* Fixed build for compilers with C++17 support but without C++17 library support (#2195)
* JUnit only uses 3 decimal places when reporting durations (#2221)
* !mayfail tagged tests are now marked as skipped in JUnit reporter output (#2116)

Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-08-19 09:58:56 -07:00
Martin Jansa
c61dc077bb Convert to new override syntax
This is the result of automated script (0.9.1) conversion:

oe-core/scripts/contrib/convert-overrides.py .

converting the metadata to use ":" as the override character instead of "_".

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2021-08-03 10:21:25 -07:00
Johannes Obermüller
f0b8ee3702 evtest: fix timestamps in output
Broken patch caused seconds to be printed twice instead of
seconds and microseconds.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-08-03 08:53:04 -07:00
Anastasios Kavoukis
06a93a04ef pm-qa: fix paths for shell scripts
A commit in the repo of pm-qa:

"adf9df9 Fix path to library files and change shebang line"

Changed the text that sed was using to replace relative to
absolute paths.

As a result sed was not effectively finding the text
"source ../include" to replace it, as the sed should be now
searching for ". ../include".

Similarly for "../Switches"

Signed-off-by: Anastasios Kavoukis <anastasios.kavoukis@arm.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-07-29 10:35:38 -07:00
wangmy
6c3213a0ad bats: upgrade 1.3.0 -> 1.4.1
Added:
Docker image architectures amd64, 386, arm64, arm/v7, arm/v6, ppc64le, s390x
https://github.com/bats-core/bats-core/pull/438

Fixed:
automatic push to Dockerhub
https://github.com/bats-core/bats-core/pull/438

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-07-29 10:35:38 -07:00
Ben Horgan
87a7098e0d cpputest: Add initial recipe. Version 4.0.
Signed-off-by: Ben Horgan <ben.horgan@arm.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-07-16 09:23:04 -07:00
Kai Kang
e2a4d4add4 bats: fix qa issue when multilib eanbled
Fix qa issue for bats when multilib is enabled:

| ERROR: bats-1.3.0-r0 do_package: QA Issue: bats: Files/directories
     were installed but not shipped in any package:
|  /usr/lib
|  /usr/lib/bats-core
|  /usr/lib/bats-core/formatter.bash
|  /usr/lib/bats-core/test_functions.bash

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-06-30 22:11:41 -07:00
zhengruoqin
0d1e7f2c54 fwts: upgrade 21.03.00 -> 21.06.00
Refresh the following patch:
0003-Remove-Werror-from-build.patch

Signed-off-by: Zheng Ruoqin <zhengrq.fnst@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-06-23 23:20:36 -07:00
zangrc
f343ea39c5 googletest: upgrade 1.10.0 -> 1.11.0
Signed-off-by: Zang Ruochen <zangrc.fnst@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-06-18 08:42:25 -07:00
Khem Raj
f701ffa95d googletest: Update to tip of trunk
Check the top level license for checksums, as it is now available and is
BSD-3-Clause

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-05-17 09:00:35 -07:00
Khem Raj
6fc5820538 catch2: Upgrade to 2.13.6
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-05-05 09:46:08 -07:00
Ross Burton
b7b0bcb4fe fwts: upgrade to 21.03.00
Rebase the musl patches.

Drop json-c dependency as this is no longer used.

Drop FILES_${PN}-dbg packaging as this happens magically now.

Drop -Wno-error CFLAGS as we patch out -Werror entirely.

Add dtc RDEPENDS as this is needed at runtime.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-04-15 09:28:43 -07:00
Kamil Dziezyk
df625750c6 bats: upgrade 1.1.0 -> 1.3.0
Add 'pretty' PACKAGECONFIG option with ncurses runtime dependency.
This option allows to display test results with '--formatter pretty|-p'
bats command line option.

Signed-off-by: Kamil Dziezyk <kamil.dziezyk@arm.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-04-15 09:28:43 -07:00
Patrick Williams
07114e58a4 catch2: upgrade to 2.13.4
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-02-21 23:37:54 -08:00
Adrian Herrera
502f6b66c4 cppunit: add support for native version
This is useful for native tools relying on CppUnit to test their
functionality.

Signed-off-by: Adrian Herrera <adrian.herrera@arm.com>
Change-Id: I9f6bfcbddf3a67696395eb1061352b9ca1cd7036
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-01-14 10:11:15 -08:00
Khem Raj
1b825a6e58 cmocka: Fix buils with LTO
Update to latest on master
Drop uintptr_t patch, its fixed upstream differently
Package up the new library libproc_uptime.so needed by examples
Add it to INSANE_SKIP for examples

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-11-09 13:41:02 -08:00