189 Commits

Author SHA1 Message Date
Yi Zhao
ef576a4701
cunit: inherit sourceforge-releases class
Inherit sourceforge-releases class to check the correct latest stable
verison.

Before the patch:
$ devtool latest-version cunit
INFO: Current version: 2.1-3
INFO: Latest version:

After the patch:
$ devtool latest-version cunit
INFO: Current version: 2.1-3
INFO: Latest version: 2.1-3

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-11-12 09:38:58 -08:00
Wang Mingyu
cb5fdd5e6e
bats: upgrade 1.12.0 -> 1.13.0
Added
========
- use the syntax parser directive to declare the Dockerfile syntax version
- Negative test filtering via --negative-filter - tests matching the filter are excluded
- fail-fast flag --abort to stop test suite execution on first failure

Fixed:
========
- unset output, stderr, lines, stderr_lines at the start of run to avoid crosstalk
- between successive invocations
- junit:
  XML escape fully removes ANSI sequences, e.g. color codes, cursor movements
  fix retried tests being listed multiple times
  fix crash when setup_suite fails
- remove deprecated windows runner
- renamed docker-compose.yml to compose.yaml
- bats_test_function: don't require --tags to be sorted
- fix BATS_TEST_TIMEOUT
- not stopping processes under run
- prolonging skipped tests

Documentation:
===============
- moved 3rd-party libraries list into wiki

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-11-11 10:19:40 -08:00
Vitor Soares
e982d3a96c
linux-serial-test: remove upstreamed patches and bump SRCREV
Remove patches that have been integrated upstream:
- Serial setup handling respecting user intent
- POSIX-compliant termios baud rate configuration
- Type safety and error handling improvements

$ git --no-pager log --oneline 1a81f3c7be08..e3461097252e
e3461097252e Merge pull request #61 from MaxKrummenacher/master
988deaad893b Merge pull request #69 from ivitro/fix/termios-use-cfset-speed
03aae5517cda Merge pull request #68 from ivitro/fix-serial-setup-handling
e124c19e97e9 Fix -Wstringop-overflow warning in process_write_data
363f569a531f Use cfsetispeed/cfsetospeed for baud configuration
9012c3366433 Fix serial setup handling to respect user intent
8a8aba302529 linux-serial-test.c: fix potential hang in while loop
8a5709984363 linux-serial-test.c: fix returned error code

Signed-off-by: Vitor Soares <vitor.soares@toradex.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-11-07 09:33:11 -08:00
Yi Zhao
40445a7e32
googletest: upgrade 1.16.0 -> 1.17.0
ChangeLog:
https://github.com/google/googletest/releases/tag/v1.17.0

Drop gtest-ciso646.patch as the issue has been fixed upstream.

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-11-04 16:52:47 -08:00
Vitor Soares
f514bc1e89 linux-serial-test: add patch to fix serial setup handling
Add patch that restores user intent in serial setup handling. Upstream
commit 77320571e63c ignores user input when RS485 was pre-configured,
breaking loopback and flow-control tests.

This patch ensures RS485 can be explicitly controlled while still
respecting pre-existing configurations when appropriate.

Signed-off-by: Vitor Soares <vitor.soares@toradex.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-10-31 11:38:34 -07:00
Emanuele Ghidoli
e1f667ee80
linux-serial-test: add patch to fix potential hang in while loop
After commit 392f0f0ea76d ("linux-serial-test: Bump SRCREV to allow CMake 4+ compatibility"),
an infinite while loop can occur even when the timeout has been reached.

This patch fixes that regression.

Signed-off-by: Emanuele Ghidoli <emanuele.ghidoli@toradex.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-10-17 08:32:03 -07:00
Emanuele Ghidoli
ae7092375a
linux-serial-test: add patch to fix returned error code
After commit 392f0f0ea76d ("linux-serial-test: Bump SRCREV to allow CMake 4+ compatibility"),
the behavior of linux-serial-test changed: it now returns 125 instead of 0
when the number of read characters differs from the written ones.

This patch fixes that regression.

Signed-off-by: Emanuele Ghidoli <emanuele.ghidoli@toradex.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-10-17 08:32:03 -07:00
Wang Mingyu
8a41ee7454
cukinia: upgrade 0.9.0 -> 0.9.1
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-10-14 09:00:19 -07:00
Khem Raj
0710a28b59
pm-qa: Do not let find command recurse into .pc folder
find, the way it is used will also list c files in
special directories like .pc, which is created by quilt
for managing patches and is the default PATCHTOOL

Ignore this directory during find operation.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Cc: Ryan Eatmon <reatmon@ti.com>
2025-10-10 19:24:38 -07:00
Khem Raj
d1b67ac99e
pm-qa: Do not hardcode PATCHTOOL
It seems to work fine with quilt as well.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-10-09 09:41:11 -07:00
Gyorgy Sarvari
8a7ebb2480
trompeloeil: upgrade 47 -> 49
Changelog:

v49: https://github.com/rollbear/trompeloeil/releases/tag/v49

Highlights:
- Added mocking macros that infers function arity from a trailing return
  type syntax signature.
- Added .RT_TIMES() to exceptations, which works like .TIMES()
  but where the limits are only known at runtime.
- Added several new composable matchers.
- When an expectation is constrained by several .WITH() clauses, a
  violation report will only include the first failed condition,
  short cirquiting the logic.

v48: https://github.com/rollbear/trompeloeil/releases/tag/v48

Highlights:
- Fixed memory leak when adding an action (.RETURN, .SIDE_EFFECT, etc)
  throws.
- Dropped older compilers from CI builds (gcc <= 6 and clang <= 7) since
  GitHub actions now require node-20, and no build environment is
  currently available that both supports node-20 and older compilers.
- Support for STDMETHOD functions for COM.
- Fixed issue with std::expected causing compilation error.
- Silenced gcc -Weffc++ warnings.

Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-09-23 11:11:47 -07:00
Gyorgy Sarvari
2478dd3d56
pm-qa: update git fetch protocol
Apparently the git repo in the SRC_URI stopped supporting git
protocol. Switch to https to be able to fetch the source successfully.

Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-09-19 12:21:59 -07:00
Wang Mingyu
3682b77d4d
evtest: upgrade 1.35 -> 1.36
0001-Fix-build-on-32bit-arches-with-64bit-time_t.patch
refreshed for 1.36

Changelog:
===============
- Add KEY_ROTATE_LOCK_TOGGLE, KEY_REFRESH_RATE_TOGGLE
- Add performance key
- Add ifdef
- Use bytes instead of bits for size of ioctl input
- CI: add workflow rules
- evtest 1.36
- Add SW_MACHINE_COVER
- add KEY_MACRO 1-30 and other keys

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-09-04 10:28:22 -07:00
Wang Mingyu
12dbe453be
cukinia: upgrade 0.8.0 -> 0.9.0
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-09-04 10:28:21 -07:00
Stefan Wiehler
70a9c5ca6e
syzkaller: Add nativesdk
Signed-off-by: Stefan Wiehler <me@sephalon.net>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-08-14 07:40:09 -07:00
Stefan Wiehler
163506182f
syzkaller: Upgrade to latest tip of trunk
- All patches have been upstreamed
- Add Go module dependencies to allow offline builds since upstream does
  not vendor them into the repo anymore
- In accordance to upstream, disable cgo as we are unable to compile
  with it on all supported architectures; in addition, remove
  -linkshared and -buildmode=pie as it requires external (cgo) linking
  (the latter only on ARM and x86). Binary size hardly matters here as
  syzkaller is unlikely to be shipped in a production environment.
- Add missing metadata and comply with style guide
- Mark musl as incompatible as it does not provide the Memory Protection
  Keys API; in addition, there seems to be no intention from upstream to
  support anything besides glibc

Signed-off-by: Stefan Wiehler <me@sephalon.net>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-08-14 07:40:08 -07:00
Gyorgy Sarvari
512cc1172e
cpputest: update to latest revision
The maintainers of cpputest haven't created a release for over
5 years, however the application is still under very active development.

The maintainers claim that every commit that goes through their CI
is stable just like a tagged release[1] - so update to the latest revision.

Also, update the cmake options, and remove the obsolete ones.
Drop the patches as well, as they are included in this revision.

[1]: https://github.com/cpputest/cpputest/issues/1651

Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-07-28 14:36:25 -07:00
Yoann Congal
bd6a43e5f1
catch2: enable native and nativesdk
Since commit de3c8d3ff2d0 ("cli11: Upgrade 2.3.2 -> 2.5.0 to allow CMake
4+ compatibility"), cli11 depends on catch2 and is native&nativesdk. So,
catch2 also need to be native&nativesdk.

Fixes these warnings from AB[0]:
WARNING: Nothing PROVIDES 'nativesdk-catch2' (but virtual:nativesdk:[...]/meta-openembedded/meta-oe/recipes-support/cli11/cli11_2.5.0.bb DEPENDS on or otherwise requires it). Close matches:
WARNING: Nothing PROVIDES 'catch2-native' (but virtual:native:[...]/meta-openembedded/meta-oe/recipes-support/cli11/cli11_2.5.0.bb DEPENDS on or otherwise requires it). Close matches:

[0]: https://autobuilder.yoctoproject.org/valkyrie/#/builders/82/builds/377/steps/12/logs/warnings

Cc: Alper Ak <alperyasinak1@gmail.com>
Signed-off-by: Yoann Congal <yoann.congal@smile.fr>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-07-25 17:12:11 -07:00
Serosh Deljam
ad6c02a469
cukinia: upgrade 0.7.0 -> 0.8.0
Signed-off-by: Serosh Deljam <serosh.deljam@savoirfairelinux.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-07-23 08:46:32 -07:00
Alper Ak
392f0f0ea7
linux-serial-test: Bump SRCREV to allow CMake 4+ compatibility
Fix:

| CMake Error at CMakeLists.txt:4 (cmake_minimum_required):
|   Compatibility with CMake < 3.5 has been removed from CMake.
|
|   Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax
|   to tell CMake that the project requires at least <min> but has been updated
|   to work with policies introduced by <max> or earlier.
|
|   Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway.
|
|
| -- Configuring incomplete, errors occurred!

Signed-off-by: Alper Ak <alperyasinak1@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-07-11 08:35:27 -07:00
Moritz Haase
4efbdb2d27
cpputest: Backport patches to support builds with CMake 4+
There hasn't been a new upstream release yet that ships the required changes.

Signed-off-by: Moritz Haase <Moritz.Haase@bmw.de>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-07-11 08:35:04 -07:00
Alexander Kanavin
fc78d37ff0
meta-openembedded/all: adapt to UNPACKDIR changes
Please see
https://git.yoctoproject.org/poky/commit/?id=4dd321f8b83afecd962393101b2a6861275b5265
for what changes are needed, and sed commands that can be used to make them en masse.

I've verified that bitbake -c patch world works with these, but did not run a world
build; the majority of recipes shouldn't need further fixups, but if there are
some that still fall out, they can be fixed in followups.

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-06-25 06:44:52 -07:00
Wang Mingyu
a4c152a35b
bats: upgrade 1.11.1 -> 1.12.0
Changelog:
===========
- bats::on_failure hook that gets called when a test or setup* function fails
- increase compatibility with Solaris
- fix noclobber breaking bats-gather-tests
- fix exiting with 0 despite bats:focus when all tests have been filtered out
- remove deprecated ubuntu 20.04 from CI config
- Fix hyperlink to external Bash resource
- Remove mentions to no longer existing find_library_load_path in
- lib/bats-core docstrings
- Add missing "status" word in --returned-status documentation

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-06-09 21:24:08 -07:00
Yi Zhao
4e54d20446
catch2: upgrade 3.8.0 -> 3.8.1
ChangeLog:
https://github.com/catchorg/Catch2/releases/tag/v3.8.1

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-04-15 12:52:18 -07:00
mark.yang
a0b88afd79
pm-qa: fix build with gcc-15.0.1
* fix following error:
  http://errors.yoctoproject.org/Errors/Details/850314
    utils/uevent_reader.c: In function 'main':
    utils/uevent_reader.c:33:24: error: passing argument 2 of 'signal' from incompatible pointer type [-Wincompatible-pointer-types]
    33 |         signal(SIGINT, exit_handler);
        |                        ^~~~~~~~~~~~
        |                        |
        |                        void (*)(void)
    In file included from utils/uevent_reader.c:4:
    TOPDIR/tmp/work/core2-64-oe-linux/pm-qa/0.5.2/recipe-sysroot/usr/include/signal.h:88:57: note: expected '__sighandler_t' {aka 'void (*)(int)'} but argument is of type 'void (*)(void)'
    88 | extern __sighandler_t signal (int __sig, __sighandler_t __handler)
        |                                          ~~~~~~~~~~~~~~~^~~~~~~~~
    utils/uevent_reader.c:15:6: note: 'exit_handler' declared here
    15 | void exit_handler()
        |      ^~~~~~~~~~~~
    TOPDIR/tmp/work/core2-64-oe-linux/pm-qa/0.5.2/recipe-sysroot/usr/include/signal.h:72:16: note: '__sighandler_t' declared here
    72 | typedef void (*__sighandler_t) (int);
        |                ^~~~~~~~~~~~~~
    make: *** [<builtin>: utils/uevent_reader] Error 1

  Set PATCHTOOL to git because this recipe compiles all .c files including those in .pc/ directory which causes build errors.
  .pc/0001-fix-build-with-gcc-15-Wincompatible-pointer-types-er.patch/utils/uevent_reader.c:15:6: note: 'exit_handler' declared here
   15 | void exit_handler()

Signed-off-by: mark.yang <mark.yang@lge.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-04-02 07:27:48 -07:00
Martin Jansa
98f9507a73
googletest: fix build with gcc-15
* some recipes which use googletest fail with:
  gtest/src/gtest_main.cc:32: recipe-sysroot/usr/include/c++/15.0.1/ciso646:46:4: error: #warning "<ciso646> is deprecated in C++17, use <version> to detect implementation-specific macros" [-Werror=cpp]
   46 | #  warning "<ciso646> is deprecated in C++17, use <version> to detect implementation-specific macros"
      |    ^~~~~~~

  backport a fix for this.

* see https://github.com/google/googletest/issues/4701

Signed-off-by: Martin Jansa <martin.jansa@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-03-21 11:07:34 -07:00
Richard Purdie
eac1f5b9c0
recipes: Fix variable assignment whitespace
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-03-20 08:46:56 -07:00
Yi Zhao
8941133760
catch2: upgrade 3.7.1 -> 3.8.0
ChangeLog:
https://github.com/catchorg/Catch2/releases/tag/v3.8.0

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-03-10 21:15:03 -07:00
Yi Zhao
375549bdbf
googletest: upgrade 1.15.2.bb -> 1.16.0
Release Notes
https://github.com/google/googletest/releases/tag/v1.16.0

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-02-24 08:18:50 -08:00
Ross Burton
780cf3fe1e
syzkaller: network in compile is not needed
There appears to be no more network access in the compile task, so we
can remove the flag.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-12-10 08:39:04 -08:00
Wang Mingyu
0518fadc5a
bats: upgrade 1.11.0 -> 1.11.1
Signed-off-by: Wang Mingyu <wangmy@cn.fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-12-03 09:44:31 -08:00
J. S.
d2f631c763
Drop unnecessary SRC_URI md5sum from the recipes in meta-oe.
Signed-off-by: Jason Schonberg <schonm@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-11-05 19:19:22 -08:00
Yi Zhao
1a6683bf47
catch2: upgrade 3.7.0 -> 3.7.1
ChangeLog:
https://github.com/catchorg/Catch2/releases/tag/v3.7.1

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-09-29 10:01:07 -07:00
Yi Zhao
521da60d7d
catch2: upgrade 3.6.0 -> 3.7.0
ChangeLog:
https://github.com/catchorg/Catch2/releases/tag/v3.7.0

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-09-16 23:01:22 -07:00
Wang Mingyu
64ecdaaa85
googletest: upgrade 1.14.0 -> 1.15.2
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-08-09 14:25:13 -07:00
Yoann Congal
29693e3b30
syzkaller: Add UPSTREAM_CHECK_COMMITS
Upstream repo does not tag so, use UPSTREAM_CHECK_COMMITS to detect
upstream updates.

Signed-off-by: Yoann Congal <yoann.congal@smile.fr>
Reviewed-by: Alexandre Truong <alexandre.truong@smile.fr>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-08-09 14:25:11 -07:00
Alexandre Truong
0700700284
linux-serial-test: include UPSTREAM_CHECK_COMMITS to fix UNKNOWN_BROKEN status
When performing devtool check-upgrade-status, UNKNOWN_BROKEN status appears.
On the upstream source repository, releases are not identified by tags. So,
UPSTREAM_CHECK_COMMITS is set to 1, to find the latest upstream update.

Signed-off-by: Alexandre Truong <alexandre.truong@smile.fr>
Reviewed-by: Yoann Congal <yoann.congal@smile.fr>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-08-09 14:25:10 -07:00
Alexandre Truong
16688b0f56
fb-test: include UPSTREAM_CHECK_COMMITS to fix UNKNOWN_BROKEN status
When performing devtool check-upgrade-status, UNKNOWN_BROKEN status appears.
On the upstream source repository, releases are not identified by tags. So,
UPSTREAM_CHECK_COMMITS is set to 1, to find the latest upstream update.

Signed-off-by: Alexandre Truong <alexandre.truong@smile.fr>
Reviewed-by: Yoann Congal <yoann.congal@smile.fr>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-08-09 14:25:08 -07:00
Yoann Congal
21e3280fad
testfloat: update UPSTREAM_CHECK_* variables to fix devtool upgrades
Update UPSTREAM_CHECK_* variables to fix UNKNOWN_BROKEN status with devtool
check-upgrade-status.

Signed-off-by: Yoann Congal <yoann.congal@smile.fr>
Reviewed-by: Alexandre Truong <alexandre.truong@smile.fr>
2024-07-24 08:56:50 -07:00
Alexandre Truong
033c74d2f1
cxxtest: include UPSTREAM_CHECK_URI to fix UNKNOWN_BROKEN status
Adding UPSTREAM_CHECK_URI fix UNKNOWN_BROKEN status from
running devtool check-upgrade-status.

The next version of the package can be found from upstream
sources.

Signed-off-by: Alexandre Truong <alexandre.truong@smile.fr>
Reviewed-by: Yoann Congal <yoann.congal@smile.fr>
2024-07-24 08:56:31 -07:00
Sven Fischer
f58552c014
trompeloeil: new recipe
A thread-safe header-only mocking framework for C++11/14

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-06-14 10:23:13 -07:00
Khem Raj
02f2a297ea
catch2: Upgrade to 3.x release series
It supports C++20 better and newer compilers e.g. clang19
works better with 3.x series.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-06-11 07:46:44 -07:00
Enguerrand de Ribaucourt
bfc372f8c4
cukinia: upgrade 0.6.2 -> 0.7.0
Changes:
    cukinia: Add user is member of groups function
    cukinia: correct _ver2int output format
    cukinia: filter junitxml output to only include valid xml 1.0 chars
    cukinia: Add network interface functions
    cukinia: correct log_suite file name
    cukinia: differentiate cukinia_gpio_* tests
    cukinia_i2c: check driver
    add when/unless
    cukinia: fix bashism in result comparison
    Change license to Apache-2.0 only

GPL-3.0-only license has been removed intentionally (see changelog).

Signed-off-by: Enguerrand de Ribaucourt <enguerrand.de-ribaucourt@savoirfairelinux.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-06-07 09:11:54 -07:00
Khem Raj
c33cfad1b0
recipes: Switch away from S = WORKDIR
Make it dependent on UNPACKDIR instead

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-05-23 08:44:44 -07:00
Khem Raj
ca6bb4de1f
syzkaller: Fix build with musl + gcc14
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-05-23 08:44:43 -07:00
alperak
fdfd510992
remove obsolete PIP_INSTALL_PACKAGE and PIP_INSTALL_DIST_PATH
All downloaded files and sstates for the recipes were cleaned, build was got from stratch and no errors were encoutered.

Signed-off-by: alperak <alperyasinak1@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-03-09 10:55:23 -08:00
Joe Slater
a30f1158d9
googletest: allow for shared libraries
Change the -dev RDEPENDS because -staticdev is not created
if shared libraries are built.

Signed-off-by: Joe Slater <joe.slater@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-03-08 10:07:27 -08:00
Mingli Yu
be06d51d61
googletest: Pass -fPIC to CFLAGS
Fail to build re2 which depends on googletest as below:
/build/tmp-glibc/work/core2-64-wrs-linux/re2/2024.03.01/recipe-sysroot-native/usr/bin/x86_64-wrs-linux/../../libexec/x86_64-wrs-linux/gcc/x86_64-wrs-linux/13.2.0/ld: /build/tmp-glibc/work/core2-64-wrs-linux/re2/2024.03.01/recipe-sysroot/usr/lib64/libgtest.a(gtest-all.cc.o): warning: relocation against `_ZTVN7testing8internal11MatcherBaseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEE' in read-only section `.text._ZN7testing8internal11MatcherBaseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEED0Ev[_ZN7testing8internal11MatcherBaseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEED5Ev]'
/build/tmp-glibc/work/core2-64-wrs-linux/re2/2024.03.01/recipe-sysroot-native/usr/bin/x86_64-wrs-linux/../../libexec/x86_64-wrs-linux/gcc/x86_64-wrs-linux/13.2.0/ld: /build/tmp-glibc/work/core2-64-wrs-linux/re2/2024.03.01/recipe-sysroot/usr/lib64/libgtest.a(gtest-all.cc.o): relocation R_X86_64_PC32 against symbol `_ZTVN7testing8internal17TestEventRepeaterE' can not be used when making a shared object; recompile with -fPIC
/build/tmp-glibc/work/core2-64-wrs-linux/re2/2024.03.01/recipe-sysroot-native/usr/bin/x86_64-wrs-linux/../../libexec/x86_64-wrs-linux/gcc/x86_64-wrs-linux/13.2.0/ld: final link failed: bad value
collect2: error: ld returned 1 exit status

So pass -fPIC to fix the above issue.

Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-03-08 10:07:25 -08:00
Wang Mingyu
6bf3bc30c5
bats: upgrade 1.10.0 -> 1.11.0
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-03-08 10:07:20 -08:00
Joe Slater
db58edbed8
googletest: allow for shared libraries
Add a PACKAGECONFIG option to produce shared libraries.
Allow staticdev to be empty if no static libraries
are built.

Signed-off-by: Joe Slater <joe.slater@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-03-04 17:10:56 -08:00