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
7fa28640
Commit
7fa28640
authored
Feb 19, 2016
by
Jeromy Johnson
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2373 from ipfs/remove-old-unused-tests
Remove old unused tests
parents
41a68592
ad71b15e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
80 deletions
+0
-80
test/sharness/x0045-add-cat-iptb.sh
test/sharness/x0045-add-cat-iptb.sh
+0
-40
test/sharness/xt0130-multinode.sh
test/sharness/xt0130-multinode.sh
+0
-40
No files found.
test/sharness/x0045-add-cat-iptb.sh
deleted
100755 → 0
View file @
41a68592
#!/bin/sh
#
# Copyright (c) 2015 Jeromy Johnson
# MIT Licensed; see the LICENSE file in this repository.
#
test_description
=
"test two nodes transferring a large file"
.
lib/test-lib.sh
export
IPTB_ROOT
=
"
`
pwd
`
/.iptb"
test_expect_success
"set up two nodes"
'
IPTB_PORT=$((RANDOM % 10000 + 22000)) &&
iptb -n=2 "-p=$IPTB_PORT" init &&
iptb -wait start
'
test_expect_success
"add a file on node1"
'
export IPFS_PATH="$IPTB_ROOT/0" &&
random 400000000 > filea &&
FILEA_HASH=$(ipfs add -q filea)
'
test_expect_success
"cat that file on node2"
'
export IPFS_PATH="$IPTB_ROOT/1" &&
ipfs cat $FILEA_HASH >fileb
'
test_expect_success
"verify files match"
'
multihash filea > expected1 &&
multihash fileb > actual1 &&
test_cmp expected1 actual1
'
test_expect_success
"shut down nodes"
'
iptb stop
'
test_done
test/sharness/xt0130-multinode.sh
deleted
100755 → 0
View file @
41a68592
#!/bin/sh
#
# Copyright (c) 2015 Jeromy Johnson
# MIT Licensed; see the LICENSE file in this repository.
#
test_description
=
"Test multiple ipfs nodes"
.
lib/test-lib.sh
export
IPTB_ROOT
=
"
`
pwd
`
/.iptb"
test_expect_success
"set up a few nodes"
'
IPTB_PORT=$((RANDOM % 10000 + 22000)) &&
iptb -n=3 "-p=$IPTB_PORT" init &&
iptb -wait start
'
test_expect_success
"add a file on node1"
'
export IPFS_PATH="$IPTB_ROOT/1" &&
random 1000000 > filea &&
FILEA_HASH=$(ipfs add -q filea)
'
test_expect_success
"cat that file on node2"
'
export IPFS_PATH="$IPTB_ROOT/2" &&
ipfs cat $FILEA_HASH >fileb
'
test_expect_success
"verify files match"
'
multihash filea > expected1 &&
multihash fileb > actual1 &&
test_cmp expected1 actual1
'
test_expect_success
"shut down nodes"
'
iptb stop
'
test_done
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