Publish Chimera GFX source
phase0-ci / build-and-audit (push) Failing after 1m41s

This commit is contained in:
Chimera GFX release export
2026-09-03 02:53:36 +02:00
commit fee37cd9b5
824 changed files with 100072 additions and 0 deletions
+27
View File
@@ -0,0 +1,27 @@
/* SPDX-License-Identifier: GPL-3.0-or-later */
#include "firmware_gate.h"
#include <stdio.h>
static int failures;
#define CHECK(expression) \
do { \
if (!(expression)) { \
(void)fprintf(stderr, "%s:%d: check failed: %s\n", __FILE__, \
__LINE__, #expression); \
failures += 1; \
} \
} while (0)
int main(void) {
CHECK(chimera_gfx_firmware_gate_allows("NONE", "NONE") == 0);
CHECK(chimera_gfx_firmware_gate_allows("NONE", "13.40") == 0);
CHECK(chimera_gfx_firmware_gate_allows("13.40", "13.40") == 1);
CHECK(chimera_gfx_firmware_gate_allows("13.40", "13.4") == 0);
CHECK(chimera_gfx_firmware_gate_allows("", "") == 0);
CHECK(chimera_gfx_firmware_gate_allows("13.40", "") == 0);
CHECK(chimera_gfx_firmware_gate_allows(NULL, "13.40") == 0);
CHECK(chimera_gfx_firmware_gate_allows("13.40", NULL) == 0);
return failures == 0 ? 0 : 1;
}