Skip to content
Merged

fix(qsv) #14029

Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 8 additions & 7 deletions projects/crates.io/qsv/package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ build:
CARGO_ARGS:
- --locked
# features listed on GitHub like joinp, py are not available
- --features feature_capable,apply,luau,clipboard,fetch,foreach,geocode,prompt,sled,to
- --features feature_capable,apply,luau,clipboard,fetch,foreach,geocode,prompt,to
- --path .
- --root {{prefix}}
darwin/x86-64:
Expand All @@ -47,12 +47,13 @@ test:
- test $(qsv count test.csv) -eq 5

# Test dedup command
- qsv dedup -q test.csv
- qsv dedup test.csv | tee test.dedup.csv
- test $(qsv dedup -q test.csv | qsv count) -eq 4

# Test diff command
- sed 's/4,5,6/4,5,7/' test.csv > test-diff.csv
- qsv diff test.csv test-diff.csv
# qsv count is unstable, so we could get different versions in different CI runs
- qsv diff test.csv test-diff.csv | qsv count | tee out
- test $(cat out) -eq 2 || test $(cat out) -eq 3
- sed 's/4,5,6/4,5,7/' test.dedup.csv | tee test-diff.dedup.csv
- qsv diff test.dedup.csv test-diff.dedup.csv
# qsv count is unstable, *iff* there's duplicate keys in column 1,
# because it runs in parallel. so, we need to use the deduped output.
- qsv diff test.dedup.csv test-diff.dedup.csv | qsv count | tee out
- test $(cat out) -eq 2
Loading