integration-test: expand full path for IntegrationTest

pull/572/head
Alessandro Decina 2 years ago
parent 93ac3e94bc
commit 3a8380df26

@ -10,7 +10,7 @@ pub fn integration_test(_attr: TokenStream, item: TokenStream) -> TokenStream {
let expanded = quote! { let expanded = quote! {
#item #item
inventory::submit!(IntegrationTest { inventory::submit!(crate::IntegrationTest {
name: concat!(module_path!(), "::", #name_str), name: concat!(module_path!(), "::", #name_str),
test_fn: #name, test_fn: #name,
}); });

@ -4,7 +4,7 @@ use tempfile::TempDir;
use aya::{maps::Array, programs::TracePoint, BpfLoader, Btf, Endianness}; use aya::{maps::Array, programs::TracePoint, BpfLoader, Btf, Endianness};
use super::{integration_test, IntegrationTest}; use super::integration_test;
// In the tests below we often use values like 0xAAAAAAAA or -0x7AAAAAAA. Those values have no // In the tests below we often use values like 0xAAAAAAAA or -0x7AAAAAAA. Those values have no
// special meaning, they just have "nice" bit patterns that can be helpful while debugging. // special meaning, they just have "nice" bit patterns that can be helpful while debugging.

@ -1,4 +1,4 @@
use super::{integration_test, IntegrationTest}; use super::integration_test;
use aya::include_bytes_aligned; use aya::include_bytes_aligned;
use object::{Object, ObjectSymbol}; use object::{Object, ObjectSymbol};

@ -13,7 +13,7 @@ use log::warn;
use crate::tests::kernel_version; use crate::tests::kernel_version;
use super::{integration_test, IntegrationTest}; use super::integration_test;
const MAX_RETRIES: u32 = 100; const MAX_RETRIES: u32 = 100;
const RETRY_DURATION_MS: u64 = 10; const RETRY_DURATION_MS: u64 = 10;

@ -4,7 +4,7 @@ use std::collections::HashMap;
use aya::include_bytes_aligned; use aya::include_bytes_aligned;
use aya_obj::{generated::bpf_insn, Object, ProgramSection}; use aya_obj::{generated::bpf_insn, Object, ProgramSection};
use super::{integration_test, IntegrationTest}; use super::integration_test;
#[integration_test] #[integration_test]
fn run_with_rbpf() { fn run_with_rbpf() {

@ -5,7 +5,7 @@ use aya::{
}; };
use log::info; use log::info;
use super::{integration_test, kernel_version, IntegrationTest}; use super::{integration_test, kernel_version};
#[integration_test] #[integration_test]
fn xdp() { fn xdp() {

Loading…
Cancel
Save