-
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
42: Tests for 22 r=Urhengulas a=Urhengulas Also partially depends on #40 and fixes #26, by implementing tests for #22. Co-authored-by: Johann Hemmann <johann.hemmann@code.berlin>
- Loading branch information
Showing
12 changed files
with
151 additions
and
8 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,6 +19,7 @@ tempfile = "3.2" | |
|
||
[dev-dependencies] | ||
assert_cmd = "1.0" | ||
rstest = "0.10" | ||
|
||
[workspace] | ||
members = [".", "xtest"] |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
MEMORY | ||
{ | ||
FLASH : ORIGIN = 0x00000000, LENGTH = 256K | ||
RAM : ORIGIN = 0x20000000, LENGTH = 64K | ||
} | ||
|
||
INCLUDE empty.x |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
fn main() -> anyhow::Result<()> { | ||
// include following if hal is excluded (aka. default features are disabled) | ||
#[cfg(not(feature = "lm3s6965"))] | ||
{ | ||
use std::{env, fs::File, io::Write, path::PathBuf}; | ||
|
||
let out = PathBuf::from(env::var_os("OUT_DIR").expect("`OUT_DIR` is not set")); | ||
|
||
File::create(out.join("memory.x"))?.write_all(include_bytes!(".memory.x"))?; | ||
File::create(out.join("empty.x"))?.write_all(include_bytes!(".empty.x"))?; | ||
|
||
println!("cargo:rustc-link-search={}", out.display()); | ||
println!("cargo:rerun-if-changed=.memory.x"); | ||
println!("cargo:rerun-if-changed=.empty.x"); | ||
println!("cargo:rerun-if-changed=build.rs"); | ||
} | ||
|
||
Ok(()) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters