Skip to content
This repository was archived by the owner on Feb 12, 2024. It is now read-only.
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: ipfs/js-ipfs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 5d5d3600f0eb60f041d6619a83bf344162038f6b
Choose a base ref
..
head repository: ipfs/js-ipfs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: c264f74c7fbfee5954df94b8ddcf624df7d27d68
Choose a head ref
Showing with 0 additions and 46 deletions.
  1. +0 −46 test/sharness/t0010-basic-commands.sh
46 changes: 0 additions & 46 deletions test/sharness/t0010-basic-commands.sh
Original file line number Diff line number Diff line change
@@ -26,50 +26,4 @@ test_expect_success "ipfs version output looks good" '
test_fsh cat version.txt
'

test_expect_success "ipfs version --all has all required fields" '
ipfs version --all > version_all.txt &&
grep "go-ipfs version" version_all.txt &&
grep "Repo version" version_all.txt &&
grep "System version" version_all.txt &&
grep "Golang version" version_all.txt
'

test_expect_success "ipfs help succeeds" '
ipfs help >help.txt
'

test_expect_success "ipfs help output looks good" '
egrep -i "^Usage" help.txt >/dev/null &&
egrep "ipfs .* <command>" help.txt >/dev/null ||
test_fsh cat help.txt
'

test_expect_success "'ipfs commands' succeeds" '
ipfs commands >commands.txt
'

test_expect_success "'ipfs commands' output looks good" '
grep "ipfs add" commands.txt &&
grep "ipfs daemon" commands.txt &&
grep "ipfs update" commands.txt
'

test_expect_success "All commands accept --help" '
while read -r cmd
do
echo "running: $cmd --help"
$cmd --help </dev/null >/dev/null || return
done <commands.txt
'

test_expect_success "'ipfs commands --flags' succeeds" '
ipfs commands --flags >commands.txt
'

test_expect_success "'ipfs commands --flags' output looks good" '
grep "ipfs pin add --recursive / ipfs pin add -r" commands.txt &&
grep "ipfs id --format / ipfs id -f" commands.txt &&
grep "ipfs repo gc --quiet / ipfs repo gc -q" commands.txt
'

test_done