mirror of
https://github.com/italicsjenga/agb.git
synced 2025-01-09 08:31:33 +11:00
Update the template to have testing available
This commit is contained in:
parent
0111ec43bb
commit
208104d036
|
@ -9,6 +9,9 @@ edition = "2018"
|
|||
[dependencies]
|
||||
agb = "0.9.2"
|
||||
|
||||
[dev-dependencies]
|
||||
agb = { version = "0.9.2", features = ["testing"] }
|
||||
|
||||
[profile.release]
|
||||
panic = "abort"
|
||||
lto = true
|
|
@ -9,6 +9,10 @@
|
|||
// using the #[agb::entry] proc macro. Failing to do so will cause failure in linking
|
||||
// which won't be a particularly clear error message.
|
||||
#![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};
|
||||
|
||||
|
|
Loading…
Reference in a new issue