From 5ddcc51fdee3460fa7aa7f79110d6e811389d080 Mon Sep 17 00:00:00 2001 From: iximeow Date: Fri, 8 Apr 2022 06:08:24 -0700 Subject: add makefile to test yaxpeax-arch with and without no-std --- Makefile | 12 ++++++++++++ tests/test.rs | 3 +++ 2 files changed, 15 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..2dbd6e6 --- /dev/null +++ b/Makefile @@ -0,0 +1,12 @@ +test: test-fast test-exhaustive + +test-fast: test-std test-no-std + +test-exhaustive: + cargo test --ignored + cargo test --no-default-features --ignored + +test-std: + cargo test +test-no-std: + cargo test --no-default-features diff --git a/tests/test.rs b/tests/test.rs index 67893db..7311616 100644 --- a/tests/test.rs +++ b/tests/test.rs @@ -8,6 +8,7 @@ mod armv8; use yaxpeax_arch::{Arch, Decoder, U8Reader}; #[test] +#[ignore] fn test_armv7_does_not_panic() { let armv7 = ::Decoder::default(); @@ -21,6 +22,7 @@ fn test_armv7_does_not_panic() { } } #[test] +#[ignore] fn test_armv7_thumb_does_not_panic() { let mut armv7_t = ::Decoder::default(); armv7_t.set_thumb_mode(true); @@ -35,6 +37,7 @@ fn test_armv7_thumb_does_not_panic() { } } #[test] +#[ignore] fn test_armv8_does_not_panic() { let armv8 = ::Decoder::default(); -- cgit v1.1