etl/.devcontainer
Roland Reichwein 866c8a315e
Extensions for testing (#1380)
* Extensions for testing

Generalize run-tests.sh

Test all C++ versions at once

Fix combination of big endian and -Wsign-conversion

Failed on s390x (as reference for big endian)

Add github workflow for s390x

Add armhf container files

Devcontainers for i386 and riscv

Add github workflows for armhf, i386 and riscv64

Add run-tests.sh for foreign architectures

Document testing in doc/testing.md

Adjustments from clang-format run

Fix .devcontainer/s390x/Dockerfile for linebreak syntax

Fix exit code of run-test.sh

Previously, "exit $?" was used, actually the return value of
FailedCompilation and FailedTest which are always 0.

Now just using 1.

In run-tests.sh at ctest, use -V for printing number of tests unconditionally

While ctest suppresses individual test list by default, it didn't even
print the number of tests anymore, as run_tests.sh does because
it suppresses it output completely.

Now, by default print number of tests, and in verbose mode, print test list
in addition.

* Support powerpc as foreign architecture

* Add SFINAE constraints to etl::begin/end and reverse iterator free functions

The unconstrained etl::begin(), etl::end(), etl::cbegin(), etl::cend(),
etl::rbegin(), etl::rend(), etl::crbegin(), and etl::crend() templates
in the no-STL code path were matching iterator types during ADL, causing
a hard error with GCC 15's std::ranges::begin. When std::ranges performed
ADL on an etl::*::iterator, it found etl::begin() as a candidate; since
the iterator type has a nested iterator typedef, the return type TContainer::iterator
was valid, but calling .begin() on the iterator failed.

Fix: add etl::void_t<decltype(...)> SFINAE guards to each template,
ensuring they only participate in overload resolution when TContainer
actually has the corresponding member function (.begin(), .end(), etc.).

* - Fix red unit tests on 32 bits big-endian platform.

* Document powerpc architecture for testing

* Use Dockerfiles in cross testing github workflows

Synchronizes environment setup for github workflows to what is
defined in the development Dockerfiles. So they don't need to
be maintained separately.

---------

Co-authored-by: John Wellbelove <john.wellbelove@etlcpp.com>
Co-authored-by: Sergei Shirokov <sergej.shirokov@gmail.com>
Co-authored-by: John Wellbelove <jwellbelove@users.noreply.github.com>
2026-04-15 10:47:52 +02:00
..
armhf Extensions for testing (#1380) 2026-04-15 10:47:52 +02:00
clang7 Update Dockerfile and Devcontainer. (#1360) 2026-03-31 12:20:31 +01:00
clang8 Update Dockerfile and Devcontainer. (#1360) 2026-03-31 12:20:31 +01:00
clang9 Update Dockerfile and Devcontainer. (#1360) 2026-03-31 12:20:31 +01:00
clang10 Update Dockerfile and Devcontainer. (#1360) 2026-03-31 12:20:31 +01:00
clang11 Update Dockerfile and Devcontainer. (#1360) 2026-03-31 12:20:31 +01:00
clang12 Update Dockerfile and Devcontainer. (#1360) 2026-03-31 12:20:31 +01:00
clang13 Update Dockerfile and Devcontainer. (#1360) 2026-03-31 12:20:31 +01:00
clang14 Update Dockerfile and Devcontainer. (#1360) 2026-03-31 12:20:31 +01:00
clang15 Update Dockerfile and Devcontainer. (#1360) 2026-03-31 12:20:31 +01:00
clang16 Update Dockerfile and Devcontainer. (#1360) 2026-03-31 12:20:31 +01:00
clang17 Update Dockerfile and Devcontainer. (#1360) 2026-03-31 12:20:31 +01:00
clang18 Update Dockerfile and Devcontainer. (#1360) 2026-03-31 12:20:31 +01:00
clang19 Update Dockerfile and Devcontainer. (#1360) 2026-03-31 12:20:31 +01:00
clang20 Update Dockerfile and Devcontainer. (#1360) 2026-03-31 12:20:31 +01:00
clang21 Update Dockerfile and Devcontainer. (#1360) 2026-03-31 12:20:31 +01:00
context Add Devcontainer configurations (#1093) 2025-05-22 09:44:18 +01:00
gcc09 Update Dockerfile and Devcontainer. (#1360) 2026-03-31 12:20:31 +01:00
gcc10 Update Dockerfile and Devcontainer. (#1360) 2026-03-31 12:20:31 +01:00
gcc11 Update Dockerfile and Devcontainer. (#1360) 2026-03-31 12:20:31 +01:00
gcc12 Update Dockerfile and Devcontainer. (#1360) 2026-03-31 12:20:31 +01:00
gcc13 Update Dockerfile and Devcontainer. (#1360) 2026-03-31 12:20:31 +01:00
gcc14 Update Dockerfile and Devcontainer. (#1360) 2026-03-31 12:20:31 +01:00
gcc15 Update Dockerfile and Devcontainer. (#1360) 2026-03-31 12:20:31 +01:00
i386 Extensions for testing (#1380) 2026-04-15 10:47:52 +02:00
powerpc Extensions for testing (#1380) 2026-04-15 10:47:52 +02:00
riscv64 Extensions for testing (#1380) 2026-04-15 10:47:52 +02:00
s390x Extensions for testing (#1380) 2026-04-15 10:47:52 +02:00
devcontainer.json Update Dockerfile and Devcontainer. (#1360) 2026-03-31 12:20:31 +01:00
Dockerfile Update Dockerfile and Devcontainer. (#1360) 2026-03-31 12:20:31 +01:00
run-tests.sh Extensions for testing (#1380) 2026-04-15 10:47:52 +02:00