fix(compiler): isolate PBS conformance tests from common pipeline
This commit is contained in:
+1
-1
@@ -79,5 +79,5 @@ Frontend negatives cover invalid Button arguments, mixed int/long variables, lit
|
||||
- [Normative PBS input and existing-value contract](../../../docs/compiler/pbs/specs/input-and-existing-type-runtime-alignment.md)
|
||||
- [Shared runtime catalog contract](../../../docs/compiler/general/specs/runtime-catalog-support.md)
|
||||
- [Typed registry and PBX contract](../../../docs/compiler/general/specs/typed-registry-and-pbx-v0.md)
|
||||
- [PBS source-to-PBX qualification](../../../prometeu-compiler/prometeu-build-pipeline/src/test/java/p/studio/compiler/backend/irvm/PbsRuntimeAlignmentTest.java)
|
||||
- [PBS source-to-PBX qualification](../../../prometeu-architecture-tests/src/test/java/p/studio/compiler/backend/irvm/PbsRuntimeAlignmentTest.java)
|
||||
- [Actual-runtime harness instructions](../../../tools/pbx-conformance/README.md)
|
||||
|
||||
@@ -25,3 +25,9 @@ dependencies {
|
||||
tasks.named<JacocoReport>("jacocoTestReport") {
|
||||
enabled = false
|
||||
}
|
||||
|
||||
// Keep PBS conformance fixtures beside the common pipeline fixtures for the runtime harness.
|
||||
tasks.named<Test>("test") {
|
||||
systemProperty("pbs.registryConformanceDirectory",
|
||||
project(":prometeu-compiler:prometeu-build-pipeline").layout.buildDirectory.dir("registry-conformance").get().asFile.absolutePath)
|
||||
}
|
||||
|
||||
+1
-1
@@ -29,7 +29,7 @@ class PbsRuntimeAlignmentTest {
|
||||
var program=new LowerToIRVMService().lower(backend);
|
||||
var module=new BytecodeEmitter().emit(program.coherentEmissionPlan());
|
||||
new BytecodePreloadVerifierService().verify(module);
|
||||
var directory=Path.of("build/registry-conformance");Files.createDirectories(directory);
|
||||
var directory=Path.of(System.getProperty("pbs.registryConformanceDirectory"));Files.createDirectories(directory);
|
||||
Files.write(directory.resolve("pbs-"+name+".pbx"),module.serialize());
|
||||
return module;
|
||||
}
|
||||
@@ -3,7 +3,6 @@ plugins {
|
||||
}
|
||||
|
||||
dependencies {
|
||||
testImplementation(project(":prometeu-compiler:frontends:prometeu-frontend-pbs"))
|
||||
api(project(":prometeu-infra"))
|
||||
implementation(project(":prometeu-compiler:prometeu-deps"))
|
||||
implementation(project(":prometeu-compiler:prometeu-compiler-core"))
|
||||
|
||||
@@ -6,7 +6,8 @@ it does not implement a Java approximation of runtime admission.
|
||||
From the Studio root:
|
||||
|
||||
```sh
|
||||
./gradlew :prometeu-compiler:prometeu-build-pipeline:test --tests '*LinkedRegistryTest' --tests '*PbxRegistryConformanceTest' --tests '*TypedCommonPipelineTest' --tests '*RuntimeCatalogPipelineTest' --tests '*PbsRuntimeAlignmentTest'
|
||||
./gradlew :prometeu-compiler:prometeu-build-pipeline:test --tests '*LinkedRegistryTest' --tests '*PbxRegistryConformanceTest' --tests '*TypedCommonPipelineTest' --tests '*RuntimeCatalogPipelineTest'
|
||||
./gradlew :prometeu-architecture-tests:test --tests '*PbsRuntimeAlignmentTest'
|
||||
python3 tools/pbx-conformance/run.py --runtime ../runtime
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user