Add cargo directive to rebuild the auto-generated tests when files under org_mode_samples get updated.
This commit is contained in:
parent
b8a4876779
commit
ac0db64081
3
build.rs
3
build.rs
@ -16,6 +16,9 @@ fn main() {
|
||||
let destination = Path::new(&out_dir).join("tests.rs");
|
||||
let mut test_file = File::create(&destination).unwrap();
|
||||
|
||||
// Re-generate the tests if any org-mode files change
|
||||
println!("cargo:rerun-if-changed=org_mode_samples");
|
||||
|
||||
write_header(&mut test_file);
|
||||
|
||||
let test_files = WalkDir::new("org_mode_samples")
|
||||
|
@ -0,0 +1,3 @@
|
||||
# These are only allowed by configuring org-list-allow-alphabetical which the automated tests are not currently set up to do, so this will parse as a paragraph:
|
||||
a. foo
|
||||
b. bar
|
Loading…
Reference in New Issue
Block a user