mirror of https://github.com/aya-rs/aya
lint: clippy integration test in the normal place
There's no reason to run this in a VM. Remove the now unused build-only xtask commands.reviewable/pr644/r1
parent
8d6b0f90bb
commit
526ab1ea33
@ -1,32 +0,0 @@
|
||||
use anyhow::Result;
|
||||
use clap::Parser;
|
||||
use std::process::Command;
|
||||
|
||||
use crate::{build_ebpf, utils::exec};
|
||||
|
||||
#[derive(Parser)]
|
||||
pub struct Options {
|
||||
/// Target triple for which the code is compiled
|
||||
#[clap(long)]
|
||||
pub musl_target: Option<String>,
|
||||
|
||||
#[clap(flatten)]
|
||||
pub ebpf_options: build_ebpf::BuildEbpfOptions,
|
||||
}
|
||||
|
||||
pub fn build_test(opts: Options) -> Result<()> {
|
||||
let Options {
|
||||
musl_target,
|
||||
ebpf_options,
|
||||
} = opts;
|
||||
|
||||
build_ebpf::build_ebpf(ebpf_options)?;
|
||||
|
||||
let mut cmd = Command::new("cargo");
|
||||
cmd.args(["build", "-p", "integration-test"]);
|
||||
|
||||
if let Some(target) = musl_target {
|
||||
cmd.args(["--target", &target]);
|
||||
}
|
||||
exec(&mut cmd)
|
||||
}
|
Loading…
Reference in New Issue