Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also 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/kubo
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 1602fef42309^
Choose a base ref
...
head repository: ipfs/kubo
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: bd35bbdd78b4
Choose a head ref
  • 2 commits
  • 1 file changed
  • 1 contributor

Commits on Oct 3, 2015

  1. t0044: fail when 'ipfs add' fails

    License: MIT
    Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
    chriscool committed Oct 3, 2015
    Copy the full SHA
    1602fef View commit details
  2. t0044: swap test_cmp arguments

    License: MIT
    Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
    chriscool committed Oct 3, 2015
    Copy the full SHA
    bd35bbd View commit details
Showing with 5 additions and 4 deletions.
  1. +5 −4 test/sharness/t0044-add-symlink.sh
9 changes: 5 additions & 4 deletions test/sharness/t0044-add-symlink.sh
Original file line number Diff line number Diff line change
@@ -18,12 +18,13 @@ test_expect_success "creating files succeeds" '

test_add_symlinks() {
test_expect_success "ipfs add files succeeds" '
ipfs add -q -r files | tail -n 1 > filehash_out
ipfs add -q -r files >filehash_all &&
tail -n 1 filehash_all >filehash_out
'

test_expect_success "output looks good" '
echo QmWdiHKoeSW8G1u7ATCgpx4yMoUhYaJBQGkyPLkS9goYZ8 > filehash_exp &&
test_cmp filehash_out filehash_exp
test_cmp filehash_exp filehash_out
'

test_expect_success "adding a symlink adds the link itself" '
@@ -32,7 +33,7 @@ test_add_symlinks() {

test_expect_success "output looks good" '
echo "QmdocmZeF7qwPT9Z8SiVhMSyKA2KKoA2J7jToW6z6WBmxR" > goodlink_exp &&
test_cmp goodlink_out goodlink_exp
test_cmp goodlink_exp goodlink_out
'

test_expect_success "adding a broken symlink works" '
@@ -41,7 +42,7 @@ test_add_symlinks() {

test_expect_success "output looks good" '
echo "QmWYN8SEXCgNT2PSjB6BnxAx6NJQtazWoBkTRH9GRfPFFQ" > badlink_exp &&
test_cmp badlink_out badlink_exp
test_cmp badlink_exp badlink_out
'
}