Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
dms3
go-dms3
Commits
8a338016
Commit
8a338016
authored
8 years ago
by
Jeromy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add test to be run to detect future regressions in pinsets
License: MIT Signed-off-by:
Jeromy
<
why@ipfs.io
>
parent
015d476c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
37 additions
and
0 deletions
+37
-0
test/sharness/x0601-pin-fail-test.sh
test/sharness/x0601-pin-fail-test.sh
+37
-0
No files found.
test/sharness/x0601-pin-fail-test.sh
0 → 100755
View file @
8a338016
#!/bin/sh
#
# Copyright (c) 2016 Jeromy Johnson
# MIT Licensed; see the LICENSE file in this repository.
#
test_description
=
"Test very large number of pins"
.
lib/test-lib.sh
test_init_ipfs
test_launch_ipfs_daemon
test_expect_success
"pre-test setup"
'
printf "" > pins &&
ipfs pin ls --type=recursive -q > rec_pins_before
'
for
i
in
`
seq
9000
`
do
test_expect_success
"ipfs add (and pin) a file"
'
echo $i | ipfs add -q >> pins
'
done
test_expect_success
"get pinset afterwards"
'
ipfs pin ls --type=recursive -q | sort > rec_pins_after &&
cat pins rec_pins_before | sort | uniq > exp_pins_after &&
test_cmp rec_pins_after exp_pins_after
'
test_kill_ipfs_daemon
test_done
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment