Still fixing ci (#683)
* fix * fix * more * cargo fixed?? * fixed?? * clp * fix
This commit is contained in:
parent
fd9d126124
commit
405a1919b8
@ -319,7 +319,7 @@ fn fuzz(
|
||||
ExitKind::Ok
|
||||
};
|
||||
|
||||
let hooks = QemuHooks::new(
|
||||
let mut hooks = QemuHooks::new(
|
||||
&emu,
|
||||
tuple_list!(
|
||||
QemuEdgeCoverageChildHelper::default(),
|
||||
@ -328,7 +328,7 @@ fn fuzz(
|
||||
);
|
||||
|
||||
let executor = QemuForkExecutor::new(
|
||||
hooks,
|
||||
&mut hooks,
|
||||
&mut harness,
|
||||
tuple_list!(edges_observer, time_observer),
|
||||
&mut fuzzer,
|
||||
|
@ -253,29 +253,25 @@ pub fn build() {
|
||||
println!("cargo:rustc-env=LD_LIBRARY_PATH={}", target_dir.display());
|
||||
} */
|
||||
|
||||
drop(
|
||||
assert!(Command::new("make")
|
||||
.current_dir(&out_dir_path)
|
||||
.env("CC", &cross_cc)
|
||||
.env("OUT_DIR", &target_dir)
|
||||
.arg("-C")
|
||||
.arg(&qasan_dir)
|
||||
.arg("clean")
|
||||
.status()
|
||||
.expect("make failed")
|
||||
.success())
|
||||
);
|
||||
drop(
|
||||
assert!(Command::new("make")
|
||||
.current_dir(&out_dir_path)
|
||||
.env("CC", &cross_cc)
|
||||
.env("OUT_DIR", &target_dir)
|
||||
.arg("-C")
|
||||
.arg(&qasan_dir)
|
||||
.status()
|
||||
.expect("make failed")
|
||||
.success())
|
||||
);
|
||||
assert!(Command::new("make")
|
||||
.current_dir(&out_dir_path)
|
||||
.env("CC", &cross_cc)
|
||||
.env("OUT_DIR", &target_dir)
|
||||
.arg("-C")
|
||||
.arg(&qasan_dir)
|
||||
.arg("clean")
|
||||
.status()
|
||||
.expect("make failed")
|
||||
.success());
|
||||
assert!(Command::new("make")
|
||||
.current_dir(&out_dir_path)
|
||||
.env("CC", &cross_cc)
|
||||
.env("OUT_DIR", &target_dir)
|
||||
.arg("-C")
|
||||
.arg(&qasan_dir)
|
||||
.status()
|
||||
.expect("make failed")
|
||||
.success());
|
||||
|
||||
cc::Build::new()
|
||||
.warnings(false)
|
||||
|
@ -704,6 +704,7 @@ impl Emulator {
|
||||
}
|
||||
}
|
||||
|
||||
#[allow(clippy::type_complexity)]
|
||||
pub fn add_gdb_cmd(&self, callback: Box<dyn FnMut(&Self, &str) -> bool>) {
|
||||
unsafe {
|
||||
GDB_COMMANDS.push(core::mem::transmute(callback));
|
||||
|
@ -11,6 +11,7 @@
|
||||
#![allow(clippy::too_many_arguments)]
|
||||
// Till they fix this buggy lint in clippy
|
||||
#![allow(clippy::borrow_as_ptr)]
|
||||
#![allow(clippy::borrow_deref_ref)]
|
||||
// Allow only ATM, it will be evetually removed
|
||||
#![allow(clippy::missing_safety_doc)]
|
||||
|
||||
|
@ -5,7 +5,7 @@ cd "$SCRIPT_DIR/.." || exit 1
|
||||
|
||||
# TODO: This should be rewritten in rust, a Makefile, or some platform-independent language
|
||||
|
||||
fuzzers=$(find ./fuzzers/* -maxdepth 0 -type d)
|
||||
fuzzers=$(find ./fuzzers -maxdepth 1 -type d)
|
||||
backtrace_fuzzers=$(find ./fuzzers/backtrace_baby_fuzzers -maxdepth 1 -type d)
|
||||
|
||||
libafl=$(pwd)
|
||||
@ -34,7 +34,7 @@ do
|
||||
if [ "$1" != "--no-fmt" ]; then
|
||||
|
||||
echo "[*] Checking fmt for $fuzzer"
|
||||
cargo fmt --check || exit 1
|
||||
cargo fmt --all -- --check || exit 1
|
||||
echo "[*] Running clippy for $fuzzer"
|
||||
cargo clippy || exit 1
|
||||
else
|
||||
|
Loading…
x
Reference in New Issue
Block a user