fix tests issues

This commit is contained in:
bQUARKz 2026-03-11 13:32:14 +00:00
parent c4f8ae5733
commit 0c8c15754d
Signed by: bquarkz
SSH Key Fingerprint: SHA256:Z7dgqoglWwoK6j6u4QC87OveEq74WOhFN+gitsxtkf8
3 changed files with 11 additions and 7 deletions

View File

@ -12,9 +12,12 @@ import static org.junit.jupiter.api.Assertions.assertTrue;
import static org.junit.jupiter.api.Assertions.fail; import static org.junit.jupiter.api.Assertions.fail;
class BackendClaimScopeSpecTest { class BackendClaimScopeSpecTest {
private static final String LOWERING_SPEC_RELATIVE_PATH = "docs/general/specs/20. IRBackend to IRVM Lowering Specification.md"; private static final String LOWERING_SPEC_RELATIVE_PATH =
private static final String MATRIX_RELATIVE_PATH = "docs/general/specs/22. Backend Spec-to-Test Conformance Matrix.md"; "docs/compiler/general/specs/20. IRBackend to IRVM Lowering Specification.md";
private static final String DECISION_RELATIVE_PATH = "docs/pbs/decisions/SPAWN-YIELD v1 Claim Rescope Decision.md"; private static final String MATRIX_RELATIVE_PATH =
"docs/compiler/general/specs/22. Backend Spec-to-Test Conformance Matrix.md";
private static final String DECISION_RELATIVE_PATH =
"docs/compiler/pbs/decisions/SPAWN-YIELD v1 Claim Rescope Decision.md";
@Test @Test
void loweringSpecMustDeclareSpawnYieldOutsideCoreV1ClaimScope() throws IOException { void loweringSpecMustDeclareSpawnYieldOutsideCoreV1ClaimScope() throws IOException {
@ -60,7 +63,7 @@ class BackendClaimScopeSpecTest {
private Path locateRepoRoot() { private Path locateRepoRoot() {
var cursor = Path.of(System.getProperty("user.dir")).toAbsolutePath().normalize(); var cursor = Path.of(System.getProperty("user.dir")).toAbsolutePath().normalize();
while (cursor != null) { while (cursor != null) {
final var hasDocs = Files.isDirectory(cursor.resolve("docs/general/specs")); final var hasDocs = Files.isDirectory(cursor.resolve("docs/compiler/general/specs"));
final var hasCompiler = Files.isDirectory(cursor.resolve("prometeu-compiler")); final var hasCompiler = Files.isDirectory(cursor.resolve("prometeu-compiler"));
if (hasDocs && hasCompiler) { if (hasDocs && hasCompiler) {
return cursor; return cursor;

View File

@ -15,7 +15,8 @@ import static org.junit.jupiter.api.Assertions.assertTrue;
import static org.junit.jupiter.api.Assertions.fail; import static org.junit.jupiter.api.Assertions.fail;
class BackendConformanceMatrixSpecTest { class BackendConformanceMatrixSpecTest {
private static final String MATRIX_RELATIVE_PATH = "docs/general/specs/22. Backend Spec-to-Test Conformance Matrix.md"; private static final String MATRIX_RELATIVE_PATH =
"docs/compiler/general/specs/22. Backend Spec-to-Test Conformance Matrix.md";
private static final String MATRIX_HARD_GATE_ENV = "PROMETEU_MATRIX_HARD_GATE"; private static final String MATRIX_HARD_GATE_ENV = "PROMETEU_MATRIX_HARD_GATE";
private static final String CHANGED_FILES_ENV = "PROMETEU_CHANGED_FILES"; private static final String CHANGED_FILES_ENV = "PROMETEU_CHANGED_FILES";
private static final List<String> HARD_GATE_PATH_PREFIXES = List.of( private static final List<String> HARD_GATE_PATH_PREFIXES = List.of(
@ -158,7 +159,7 @@ class BackendConformanceMatrixSpecTest {
private Path locateRepoRoot() { private Path locateRepoRoot() {
var cursor = Path.of(System.getProperty("user.dir")).toAbsolutePath().normalize(); var cursor = Path.of(System.getProperty("user.dir")).toAbsolutePath().normalize();
while (cursor != null) { while (cursor != null) {
final var hasDocs = Files.isDirectory(cursor.resolve("docs/general/specs")); final var hasDocs = Files.isDirectory(cursor.resolve("docs/compiler/general/specs"));
final var hasCompiler = Files.isDirectory(cursor.resolve("prometeu-compiler")); final var hasCompiler = Files.isDirectory(cursor.resolve("prometeu-compiler"));
if (hasDocs && hasCompiler) { if (hasDocs && hasCompiler) {
return cursor; return cursor;

View File

@ -62,7 +62,7 @@ class NoModuleKeyRegressionSpecTest {
private Path locateRepoRoot() { private Path locateRepoRoot() {
var cursor = Path.of(System.getProperty("user.dir")).toAbsolutePath().normalize(); var cursor = Path.of(System.getProperty("user.dir")).toAbsolutePath().normalize();
while (cursor != null) { while (cursor != null) {
final var hasDocs = Files.isDirectory(cursor.resolve("docs/general/specs")); final var hasDocs = Files.isDirectory(cursor.resolve("docs/compiler/general/specs"));
final var hasCompiler = Files.isDirectory(cursor.resolve("prometeu-compiler")); final var hasCompiler = Files.isDirectory(cursor.resolve("prometeu-compiler"));
if (hasDocs && hasCompiler) { if (hasDocs && hasCompiler) {
return cursor; return cursor;