feat: Add CI/CD workflows for testing and publishing SAL crates
Some checks failed
Test Publishing Setup / Test Publishing Setup (pull_request) Has been cancelled
Some checks failed
Test Publishing Setup / Test Publishing Setup (pull_request) Has been cancelled
- Add a workflow for testing the publishing setup - Add a workflow for publishing SAL crates to crates.io - Improve crate metadata and version management - Add optional dependencies for modularity - Improve documentation for publishing and usage
This commit is contained in:
@@ -165,9 +165,18 @@ fn test_mv() {
|
||||
|
||||
#[test]
|
||||
fn test_which() {
|
||||
// Test with a command that should exist on most systems
|
||||
let result = fs::which("ls");
|
||||
assert!(!result.is_empty());
|
||||
// Test with a command that should exist on all systems
|
||||
#[cfg(target_os = "windows")]
|
||||
let existing_cmd = "cmd";
|
||||
#[cfg(not(target_os = "windows"))]
|
||||
let existing_cmd = "ls";
|
||||
|
||||
let result = fs::which(existing_cmd);
|
||||
assert!(
|
||||
!result.is_empty(),
|
||||
"Command '{}' should exist",
|
||||
existing_cmd
|
||||
);
|
||||
|
||||
// Test with a command that shouldn't exist
|
||||
let result = fs::which("nonexistentcommand12345");
|
||||
|
Reference in New Issue
Block a user