Skip to content

Commit

Permalink
Add debug native symbols generation test
Browse files Browse the repository at this point in the history
  • Loading branch information
pablo gonzalez granados committed Apr 30, 2021
1 parent 2c53ef5 commit 6ee4c56
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,7 @@ vertx.webclient.timeout-sec=2
vertx.webclient.retries=3

# Jaeger
quarkus.opentelemetry.tracer.exporter.jaeger.endpoint=http://localhost:14250/api/traces
quarkus.opentelemetry.tracer.exporter.jaeger.endpoint=http://localhost:14250/api/traces

# debug symbols enabled
quarkus.native.debug.enabled=true
Original file line number Diff line number Diff line change
@@ -1,7 +1,23 @@
package io.quarkus.qe.vertx.webclient;

import static org.junit.Assert.assertTrue;

import java.io.File;
import java.net.MalformedURLException;
import java.nio.file.Paths;

import org.junit.jupiter.api.Test;

import io.quarkus.test.junit.NativeImageTest;

@NativeImageTest
public class ChuckNorrisResourceIT extends ChuckNorrisResourceTest {

private static final String DEBUG_SYMBOLS_FILE_NAME = "300-quarkus-vertx-webclient-1.0.0-SNAPSHOT-runner.debug";

@Test
public void checkNativeDebugSymbols() throws MalformedURLException {
File debugFile = Paths.get("target", DEBUG_SYMBOLS_FILE_NAME).toFile();
assertTrue("Missing debug symbols file: " + DEBUG_SYMBOLS_FILE_NAME, debugFile.exists());
}
}

0 comments on commit 6ee4c56

Please sign in to comment.