diff options
author | Lars Wirzenius <liw@liw.fi> | 2021-12-30 14:09:04 +0200 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2022-01-04 17:49:08 +0200 |
commit | 42bd070d7b71c3f9360f88ee50291eb66e54ccd9 (patch) | |
tree | 82c238f8b0e8bf8330e3eb84c0b14c99d668e571 /build.rs | |
parent | 010480a957c52e14172049aea3e692447be8cdfe (diff) | |
download | obnam-benchmark-42bd070d7b71c3f9360f88ee50291eb66e54ccd9.tar.gz |
feat: actually run client and server
Also, switch Subplot step functions to Python: it was too hard to
debug failures in the Rust ones.
Sponsored-by: author
Diffstat (limited to 'build.rs')
-rw-r--r-- | build.rs | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/build.rs b/build.rs deleted file mode 100644 index 1d7729e..0000000 --- a/build.rs +++ /dev/null @@ -1,26 +0,0 @@ -use glob::glob; -use std::path::Path; - -fn main() { - if let Err(err) = real_main() { - eprintln!("ERROR: {}", err); - std::process::exit(1); - } -} - -fn real_main() -> anyhow::Result<()> { - println!("cargo:rerun-if-env-changed=DEB_BUILD_OPTIONS"); - let subplots = glob("[a-z]*.md").expect("failed to find subplots"); - let tests = Path::new("tests"); - for entry in subplots { - let entry = entry?; - let mut inc = tests.join(&entry); - inc.set_extension("rs"); - if !inc.exists() { - panic!("missing include file: {}", inc.display()); - } - println!("cargo:rerun-if-changed={}", inc.display()); - subplot_build::codegen(Path::new(&entry))?; - } - Ok(()) -} |