mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-11-29 09:15:27 +00:00
Restore language sync
- Bring back 5 commits a force push dropped from GitHub master (0aad88c30)
- Keep the thin Bukkit entry; port language sync into IrisRuntime
- Fetch guides through GitHubLanguageSource instead of the removed catalog
This commit is contained in:
commit
5769b0d4e8
53 files changed
+13688
-14119
No files matched your search
@@ -126,13 +126,14 @@ public final class GenerationProbeTest {
|
||||
|
||||
@Test
|
||||
public void readsThroughputAndDumpOptionsFromSystemProperties() {
|
||||
Path dumpFile = Path.of(System.getProperty("java.io.tmpdir"), "iris-dump.bin").toAbsolutePath();
|
||||
System.setProperty("iris.probe.threads", "16");
|
||||
System.setProperty("iris.probe.dumpFile", "/tmp/iris-dump.bin");
|
||||
System.setProperty("iris.probe.dumpFile", dumpFile.toString());
|
||||
System.setProperty("iris.probe.pregenProfile", "true");
|
||||
try {
|
||||
GenerationProbe.ProbeOptions options = GenerationProbe.ProbeOptions.fromSystemProperties();
|
||||
assertEquals(16, options.threads());
|
||||
assertEquals(Path.of("/tmp/iris-dump.bin"), options.dumpFile());
|
||||
assertEquals(dumpFile, options.dumpFile());
|
||||
assertTrue(options.pregenProfile());
|
||||
assertTrue(options.parallel());
|
||||
} finally {
|
||||
|
||||
@@ -96,7 +96,7 @@ public class HydrologyBlockProbeTest {
|
||||
@Test
|
||||
public void columnDataAndBedImagesExposeHeightChangesBeneathOneWaterSurface() throws Exception {
|
||||
File output = folder.newFolder("columns");
|
||||
HydrologyBlockProbe.Configuration configuration = new HydrologyBlockProbe.Configuration(new File("/synthetic-pack"), "overworld",
|
||||
HydrologyBlockProbe.Configuration configuration = new HydrologyBlockProbe.Configuration(new File(folder.getRoot(), "synthetic-pack"), "overworld",
|
||||
1337L, -1, -1, -1, -1, Set.of(), output, false);
|
||||
Map<Long, HydrologyBlockProbe.PlannedColumn> columns = new HashMap<>();
|
||||
for (int z = 0; z < 16; z++) {
|
||||
|
||||
@@ -2,6 +2,7 @@ package art.arcane.iris.probe;
|
||||
|
||||
import org.junit.Test;
|
||||
|
||||
import java.nio.file.Path;
|
||||
import java.util.Arrays;
|
||||
import java.util.BitSet;
|
||||
import java.util.Map;
|
||||
@@ -89,7 +90,9 @@ public final class Terrain3DProbeTest {
|
||||
|
||||
@Test
|
||||
public void rejectsUnboundedOrMalformedProbeInputs() {
|
||||
String[] inputs = {"/tmp/pack", "overworld", "1337", "-1", "1", "-1", "1", "highlands", "/tmp/output", "false", "true"};
|
||||
String temporary = System.getProperty("java.io.tmpdir");
|
||||
String[] inputs = {Path.of(temporary, "pack").toAbsolutePath().toString(), "overworld", "1337", "-1", "1", "-1", "1",
|
||||
"highlands", Path.of(temporary, "output").toAbsolutePath().toString(), "false", "true"};
|
||||
Terrain3DProbe.Configuration configuration = Terrain3DProbe.Configuration.parse(inputs);
|
||||
assertEquals(9, configuration.chunkCount());
|
||||
assertTrue(configuration.studio());
|
||||
|
||||
Reference in new issue
Block a user