mirror of
https://github.com/Noratrieb/cargo-minimize.git
synced 2026-01-14 16:35:01 +01:00
comments
This commit is contained in:
parent
f84cfd935b
commit
bad820a08b
1 changed files with 3 additions and 0 deletions
|
|
@ -14,6 +14,7 @@ use std::{
|
||||||
use tempfile::TempDir;
|
use tempfile::TempDir;
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
#[cfg_attr(not(unix), ignore = "FIXME: Make this not cursed.")]
|
||||||
fn full_tests() -> Result<()> {
|
fn full_tests() -> Result<()> {
|
||||||
let path = Path::new(file!())
|
let path = Path::new(file!())
|
||||||
.canonicalize()?
|
.canonicalize()?
|
||||||
|
|
@ -68,6 +69,7 @@ fn setup_scripts(start_roots: &[String], proj_dir: &Path) -> Result<()> {
|
||||||
OUT=$(rg -o "~MINIMIZE-ROOT [\w\-]*" full-tests/ --no-filename --sort path src)
|
OUT=$(rg -o "~MINIMIZE-ROOT [\w\-]*" full-tests/ --no-filename --sort path src)
|
||||||
|
|
||||||
python3 -c "
|
python3 -c "
|
||||||
|
# Get the data from bash by just substituting it in. It works!
|
||||||
out = '$OUT'
|
out = '$OUT'
|
||||||
|
|
||||||
lines = out.split('\n')
|
lines = out.split('\n')
|
||||||
|
|
@ -78,6 +80,7 @@ for line in lines:
|
||||||
name = line.removeprefix('~MINIMIZE-ROOT').strip()
|
name = line.removeprefix('~MINIMIZE-ROOT').strip()
|
||||||
found.add(name)
|
found.add(name)
|
||||||
|
|
||||||
|
# Pass in the data _from Rust directly_. Beautiful.
|
||||||
expected_roots = {{{expected_roots}}}
|
expected_roots = {{{expected_roots}}}
|
||||||
|
|
||||||
for root in expected_roots:
|
for root in expected_roots:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue