From a517fba88a94c1d386f1ed3bd0e04b29a4e623f4 Mon Sep 17 00:00:00 2001 From: Eric Ratliff Date: Mon, 23 Feb 2026 12:55:28 -0600 Subject: [PATCH] WSL cargo test is now working --- build.rs | 5 +++++ tests/script_execution_test.rs | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/build.rs b/build.rs index 462449c..a011aad 100644 --- a/build.rs +++ b/build.rs @@ -23,6 +23,11 @@ fn has_tool(name: &str) -> bool { } fn main() { + println!("cargo::rustc-check-cfg=cfg(has_cmake)"); + println!("cargo::rustc-check-cfg=cfg(has_cpp_compiler)"); + println!("cargo::rustc-check-cfg=cfg(has_git)"); + println!("cargo::rustc-check-cfg=cfg(has_arduino_cli)"); + if has_tool("cmake") { println!("cargo:rustc-cfg=has_cmake"); } diff --git a/tests/script_execution_test.rs b/tests/script_execution_test.rs index 761d669..25f1df2 100644 --- a/tests/script_execution_test.rs +++ b/tests/script_execution_test.rs @@ -35,7 +35,7 @@ fn test_context(name: &str) -> TemplateContext { TemplateContext { project_name: name.to_string(), anvil_version: ANVIL_VERSION.to_string(), - board_name: "Arduino Uno (ATmega328P)".to_string(), + board_name: "uno".to_string(), // <-- was "Arduino Uno (ATmega328P)" fqbn: "arduino:avr:uno".to_string(), baud: 115200, }