Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<maven.compiler.source>${java.version}</maven.compiler.source>
<maven.compiler.target>${java.version}</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<spring-boot.version>4.1.0</spring-boot.version>
<spring-boot.version>4.1.1</spring-boot.version>
<version-generate-skip>false</version-generate-skip>
</properties>
<licenses>
Expand Down
5 changes: 3 additions & 2 deletions src/test/java/am/ik/rontolisp/e2e/AsdfLibraryE2eSupport.java
Original file line number Diff line number Diff line change
Expand Up @@ -220,12 +220,13 @@ protected Class<?> findClass(String n) throws ClassNotFoundException {
// from the project root): a file round-trip after a library load is part of what
// these tests pin (the close methods).
private String runWasm(byte[] wasmBytes, boolean component) throws Exception {
String path = "/tmp/" + artifactName() + (component ? "-component.wasm" : "-p1.wasm");
String runDir = "/tmp/" + artifactName() + (component ? "-component-" : "-p1-") + System.nanoTime();
String path = runDir + "/module.wasm";
GenericContainer<?> wasmtime = WasmtimeSupport.container();
wasmtime.copyFileToContainer(Transferable.of(wasmBytes), path);
String flags = component ? "run -W gc=y -W exceptions=y" : "--wasm gc --wasm exceptions=y";
ExecResult result = wasmtime.execInContainer("bash", "-c",
"mkdir -p /tmp/target && cd /tmp && wasmtime " + flags + " --dir . " + path);
"mkdir -p " + runDir + "/target && cd " + runDir + " && wasmtime " + flags + " --dir . " + path);
assertThat(result.getExitCode()).as("exit code (component=%s): stderr: %s", component, result.getStderr())
.isZero();
return result.getStdout().trim();
Expand Down
Loading