aboutsummaryrefslogtreecommitdiff
path: root/.run/src/bin
diff options
context:
space:
mode:
Diffstat (limited to '.run/src/bin')
-rw-r--r--.run/src/bin/ci.rs21
-rw-r--r--.run/src/bin/install-mling.ps12
-rwxr-xr-x[-rw-r--r--].run/src/bin/install-mling.sh2
3 files changed, 17 insertions, 8 deletions
diff --git a/.run/src/bin/ci.rs b/.run/src/bin/ci.rs
index d8941d4..39d55eb 100644
--- a/.run/src/bin/ci.rs
+++ b/.run/src/bin/ci.rs
@@ -8,11 +8,7 @@ use tools::{
};
fn get_ignore_dirs() -> Vec<String> {
- vec![
- ".temp".to_string(),
- "mling/res".to_string(),
- "mling\\res".to_string(),
- ]
+ vec![".temp".to_string()]
}
fn print_help() {
@@ -123,6 +119,9 @@ fn ci(test_docs: bool, test_codes: bool, run_all: bool) -> Result<(), i32> {
println_cargo_style!("Phase: Test all crates");
test_all()?;
+
+ println_cargo_style!("Phase: Test arg picker");
+ test_arg_picker()?;
}
if run_all || test_docs {
@@ -282,11 +281,12 @@ fn test_all() -> Result<(), i32> {
// Workspace members: test with all documented features so that feature-gated
// tests (comp/repl/picker/structural_renderer/...) are actually executed.
+ // `arg-picker` is excluded here and tested separately via [`test_arg_picker`].
let features_arg = doc_features_arg();
tasks.push((
"Test: workspace".to_string(),
"workspace".to_string(),
- format!("cargo test --workspace{features_arg} --color always"),
+ format!("cargo test --workspace{features_arg} --exclude arg-picker --color always"),
));
for cargo_toml in cargo_tomls {
@@ -312,6 +312,15 @@ fn test_all() -> Result<(), i32> {
run_parallel("Testing", tasks)
}
+/// `arg-picker` is excluded from the workspace test command: when built with
+/// `mingling_support` (enabled via `mingling/picker`), its README doctests
+/// expand `arg!` to `::mingling::picker::PickerArg`, which is not available
+/// inside the arg-picker crate itself. Test it separately with its default
+/// features instead.
+fn test_arg_picker() -> Result<(), i32> {
+ run_cmd!("cargo test -p arg-picker --color always")
+}
+
fn deploy_api_docs() -> Result<(), i32> {
run_cmd!(
"cargo run --manifest-path .run/Cargo.toml --color always --bin deploy-api-docs -- --docsrs"
diff --git a/.run/src/bin/install-mling.ps1 b/.run/src/bin/install-mling.ps1
index bebe9ff..7fba62e 100644
--- a/.run/src/bin/install-mling.ps1
+++ b/.run/src/bin/install-mling.ps1
@@ -1,4 +1,4 @@
-cargo install --path mling
+cargo install --path mingling_cli
New-Item -ItemType Directory -Force -Path .temp/comp | Out-Null
# Copy all files containing _comp from the debug directory
diff --git a/.run/src/bin/install-mling.sh b/.run/src/bin/install-mling.sh
index 5f2ee7a..5b5e7b2 100644..100755
--- a/.run/src/bin/install-mling.sh
+++ b/.run/src/bin/install-mling.sh
@@ -1,6 +1,6 @@
#!/bin/bash
-cargo install --path mling
+cargo install --path mingling_cli
mkdir -p .temp/comp
cp .temp/target/release/*_comp.* .temp/comp/ 2>/dev/null || echo "No matching files found"