mirror of
https://github.com/mimblewimble/grin.git
synced 2025-01-21 03:21:08 +03:00
comment out fuzz tests for now, remove wallet crate reference (#2635)
This commit is contained in:
parent
beaae28d70
commit
557e77b218
3 changed files with 13 additions and 11 deletions
|
@ -10,7 +10,6 @@ cargo-fuzz = true
|
||||||
[dependencies]
|
[dependencies]
|
||||||
grin_core = { path = ".."}
|
grin_core = { path = ".."}
|
||||||
grin_keychain = { path = "../../keychain"}
|
grin_keychain = { path = "../../keychain"}
|
||||||
grin_wallet = { path = "../../wallet"}
|
|
||||||
[dependencies.libfuzzer-sys]
|
[dependencies.libfuzzer-sys]
|
||||||
git = "https://github.com/rust-fuzz/libfuzzer-sys.git"
|
git = "https://github.com/rust-fuzz/libfuzzer-sys.git"
|
||||||
|
|
||||||
|
|
|
@ -3,10 +3,10 @@ extern crate grin_core;
|
||||||
#[macro_use]
|
#[macro_use]
|
||||||
extern crate libfuzzer_sys;
|
extern crate libfuzzer_sys;
|
||||||
|
|
||||||
use grin_core::core::block;
|
/*use grin_core::core::block;
|
||||||
use grin_core::ser;
|
use grin_core::ser;*/
|
||||||
|
|
||||||
fuzz_target!(|data: &[u8]| {
|
fuzz_target!(|_data: &[u8]| {
|
||||||
let mut d = data.clone();
|
/*let mut d = data.clone();
|
||||||
let _t: Result<block::CompactBlock, ser::Error> = ser::deserialize(&mut d);
|
let _t: Result<block::CompactBlock, ser::Error> = ser::deserialize(&mut d);*/
|
||||||
});
|
});
|
||||||
|
|
|
@ -1,8 +1,9 @@
|
||||||
extern crate grin_core;
|
extern crate grin_core;
|
||||||
extern crate grin_keychain;
|
extern crate grin_keychain;
|
||||||
extern crate grin_wallet;
|
|
||||||
|
|
||||||
use grin_core::core::target::Difficulty;
|
/* These are completely out of date. Commented out until someone attends to them */
|
||||||
|
|
||||||
|
/*use grin_core::core::target::Difficulty;
|
||||||
use grin_core::core::{Block, BlockHeader, CompactBlock, Transaction};
|
use grin_core::core::{Block, BlockHeader, CompactBlock, Transaction};
|
||||||
use grin_core::libtx::build::{input, output, transaction, with_fee};
|
use grin_core::libtx::build::{input, output, transaction, with_fee};
|
||||||
use grin_core::libtx::reward;
|
use grin_core::libtx::reward;
|
||||||
|
@ -10,14 +11,15 @@ use grin_core::ser;
|
||||||
use grin_keychain::keychain::ExtKeychain;
|
use grin_keychain::keychain::ExtKeychain;
|
||||||
use grin_keychain::Keychain;
|
use grin_keychain::Keychain;
|
||||||
use std::fs::{self, File};
|
use std::fs::{self, File};
|
||||||
use std::path::Path;
|
use std::path::Path;*/
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
generate("transaction_read", &tx()).unwrap();
|
/*generate("transaction_read", &tx()).unwrap();
|
||||||
generate("block_read", &block()).unwrap();
|
generate("block_read", &block()).unwrap();
|
||||||
generate("compact_block_read", &compact_block()).unwrap();
|
generate("compact_block_read", &compact_block()).unwrap();*/
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
fn generate<W: ser::Writeable>(target: &str, obj: W) -> Result<(), ser::Error> {
|
fn generate<W: ser::Writeable>(target: &str, obj: W) -> Result<(), ser::Error> {
|
||||||
let dir_path = Path::new("corpus").join(target);
|
let dir_path = Path::new("corpus").join(target);
|
||||||
if !dir_path.is_dir() {
|
if !dir_path.is_dir() {
|
||||||
|
@ -80,3 +82,4 @@ fn tx() -> Transaction {
|
||||||
)
|
)
|
||||||
.unwrap()
|
.unwrap()
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
Loading…
Reference in a new issue