Working on getting build working
Foundation / checks (deploy) (push) Successful in 2m55s
Foundation / checks (ecs) (push) Successful in 1m47s
Foundation / checks (client) (push) Successful in 12m47s
Foundation / checks (network) (push) Successful in 9m48s
Foundation / checks (tsan) (push) Successful in 7m53s
Foundation / checks (checks) (push) Successful in 31m28s
Foundation / checks (postgres) (push) Successful in 38m52s
Foundation / server-image (push) Failing after 8s
Foundation / postgres-tools (push) Successful in 10s
Foundation / image (push) Successful in 2m18s
Foundation / checks (deploy) (push) Successful in 2m55s
Foundation / checks (ecs) (push) Successful in 1m47s
Foundation / checks (client) (push) Successful in 12m47s
Foundation / checks (network) (push) Successful in 9m48s
Foundation / checks (tsan) (push) Successful in 7m53s
Foundation / checks (checks) (push) Successful in 31m28s
Foundation / checks (postgres) (push) Successful in 38m52s
Foundation / server-image (push) Failing after 8s
Foundation / postgres-tools (push) Successful in 10s
Foundation / image (push) Successful in 2m18s
This commit is contained in:
@@ -46,12 +46,12 @@ RUN cmake -P tools/prepare-sdl3.cmake \
|
||||
&& cmake --build build/client-probe --target evo-client-state-tests evo-ui-probe evo-client-probe evo-client evo-client-lifecycle-tests evo-client-environment-tests evo-client-organism-tests evo-client-ui-model-tests evo-client-panel-tests evo-client-bindings-tests --parallel 2 \
|
||||
&& ctest --preset client-probe --no-tests=error \
|
||||
&& xvfb-run -a env SDL_VIDEO_DRIVER=x11 ./build/client-probe/evo-client-probe --renderer software \
|
||||
&& xvfb-run -a env SDL_VIDEO_DRIVER=x11 ./build/client-probe/evo-ui-probe --renderer software \
|
||||
&& for cycle in 1 2 3; do xvfb-run -a env SDL_VIDEO_DRIVER=x11 ./build/client-probe/evo-ui-probe --renderer software --cycles 1; done \
|
||||
&& xvfb-run -a env SDL_VIDEO_DRIVER=x11 ./build/client-probe/evo-client-lifecycle-tests \
|
||||
&& cmake --preset client-probe -DEVO_BUILD_CLIENT=ON -DEVO_SANITIZER=address -DEVO_ENABLE_TIDY=OFF \
|
||||
&& cmake --build build/client-probe --target evo-client-state-tests evo-ui-probe evo-client evo-client-lifecycle-tests evo-client-environment-tests evo-client-organism-tests evo-client-ui-model-tests evo-client-panel-tests evo-client-bindings-tests --parallel 2 \
|
||||
&& ctest --preset client-probe --no-tests=error \
|
||||
&& xvfb-run -a env SDL_VIDEO_DRIVER=x11 ./build/client-probe/evo-ui-probe --renderer software \
|
||||
&& for cycle in 1 2 3; do xvfb-run -a env SDL_VIDEO_DRIVER=x11 ./build/client-probe/evo-ui-probe --renderer software --cycles 1; done \
|
||||
&& xvfb-run -a env SDL_VIDEO_DRIVER=x11 ./build/client-probe/evo-client-lifecycle-tests
|
||||
|
||||
FROM ci-source AS ci-network
|
||||
|
||||
+19
-5
@@ -1,6 +1,7 @@
|
||||
// M9.8a toolkit qualification only: no simulation, network, or authority state.
|
||||
#include <SDL3/SDL.h>
|
||||
#include <SDL3/SDL_main.h>
|
||||
#include <charconv>
|
||||
#include <cstdio>
|
||||
#include <imgui.h>
|
||||
#include <imgui_impl_sdl3.h>
|
||||
@@ -8,6 +9,7 @@
|
||||
#include <memory>
|
||||
#include <stdexcept>
|
||||
#include <string_view>
|
||||
#include <system_error>
|
||||
|
||||
namespace {
|
||||
void require(bool ok, const char* message) {
|
||||
@@ -108,11 +110,23 @@ void run(const char* driver) {
|
||||
} // namespace
|
||||
int main(int argc, char** argv) try {
|
||||
const char* driver = nullptr;
|
||||
if (argc == 3 && std::string_view{argv[1]} == "--renderer")
|
||||
driver = argv[2];
|
||||
else if (argc != 1)
|
||||
return 2;
|
||||
for (int cycle = 0; cycle < 3; ++cycle)
|
||||
int cycles = 3;
|
||||
for (int index = 1; index < argc;) {
|
||||
const std::string_view option{argv[index++]};
|
||||
if (option == "--renderer" && index < argc) {
|
||||
driver = argv[index++];
|
||||
} else if (option == "--cycles" && index < argc) {
|
||||
const std::string_view value{argv[index++]};
|
||||
const auto [end, error] =
|
||||
std::from_chars(value.data(), value.data() + value.size(), cycles);
|
||||
if (error != std::errc{} || end != value.data() + value.size() || cycles < 1 ||
|
||||
cycles > 16)
|
||||
return 2;
|
||||
} else {
|
||||
return 2;
|
||||
}
|
||||
}
|
||||
for (int cycle = 0; cycle < cycles; ++cycle)
|
||||
run(driver);
|
||||
return 0;
|
||||
} catch (const std::exception& error) {
|
||||
|
||||
Reference in New Issue
Block a user