mirror of
https://github.com/italicsjenga/agb.git
synced 2025-01-24 16:16:34 +11:00
Update the template to have testing available
This commit is contained in:
parent
0111ec43bb
commit
208104d036
2 changed files with 7 additions and 0 deletions
|
@ -9,6 +9,9 @@ edition = "2018"
|
||||||
[dependencies]
|
[dependencies]
|
||||||
agb = "0.9.2"
|
agb = "0.9.2"
|
||||||
|
|
||||||
|
[dev-dependencies]
|
||||||
|
agb = { version = "0.9.2", features = ["testing"] }
|
||||||
|
|
||||||
[profile.release]
|
[profile.release]
|
||||||
panic = "abort"
|
panic = "abort"
|
||||||
lto = true
|
lto = true
|
|
@ -9,6 +9,10 @@
|
||||||
// using the #[agb::entry] proc macro. Failing to do so will cause failure in linking
|
// using the #[agb::entry] proc macro. Failing to do so will cause failure in linking
|
||||||
// which won't be a particularly clear error message.
|
// which won't be a particularly clear error message.
|
||||||
#![no_main]
|
#![no_main]
|
||||||
|
// This is required to allow writing tests
|
||||||
|
#![cfg_attr(test, feature(custom_test_frameworks))]
|
||||||
|
#![cfg_attr(test, reexport_test_harness_main = "test_main")]
|
||||||
|
#![cfg_attr(test, test_runner(agb::test_runner::test_runner))]
|
||||||
|
|
||||||
use agb::{display, syscall};
|
use agb::{display, syscall};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue