Skip to content

Commit

Permalink
TEMP DEBUG TESTS IN CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Tuetuopay committed Feb 24, 2023
1 parent 91f47ed commit 80ffbcb
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test/integration-test/src/tests/smoke.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ fn xdp() {
let mut bpf = Bpf::load(bytes).unwrap();
let dispatcher: &mut Xdp = bpf.program_mut("pass").unwrap().try_into().unwrap();
dispatcher.load().unwrap();
// DEBUG
std::process::Command::new("ip")
.args(["-d", "link"])
.status()
.unwrap();
dispatcher.attach("lo", XdpFlags::default()).unwrap();
}

Expand All @@ -32,6 +37,11 @@ fn extension() {
let mut bpf = Bpf::load(main_bytes).unwrap();
let pass: &mut Xdp = bpf.program_mut("pass").unwrap().try_into().unwrap();
pass.load().unwrap();
// DEBUG
std::process::Command::new("ip")
.args(["-d", "link"])
.status()
.unwrap();
pass.attach("lo", XdpFlags::default()).unwrap();

let ext_bytes = include_bytes_aligned!("../../../../target/bpfel-unknown-none/debug/ext.bpf.o");
Expand Down

0 comments on commit 80ffbcb

Please sign in to comment.