Code Review
/
stor4nfv.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
history
|
raw
|
HEAD
Merge "Add script files of test and spdk-ansible for SPDK"
[stor4nfv.git]
/
src
/
ceph
/
qa
/
workunits
/
rename
/
rem_pri.sh
1
#!/bin/sh -ex
2
3
dotest() {
4
srci=$1
5
srcdn=$2
6
dest=$3
7
n=$4
8
9
touch ./$srci/srci$n
10
ln ./$srci/srci$n ./$srcdn/srcdn$n
11
touch ./$dest/dest$n
12
13
mv ./$srcdn/srcdn$n ./$dest/dest$n
14
}
15
16
# srci=srcdn=destdn
17
dotest 'a' 'a' 'a' 1
18
19
# srcdn=destdn
20
dotest 'b' 'a' 'a' 2
21
22
# srci=destdn
23
dotest 'a' 'b' 'a' 3
24
25
# srci=srcdn
26
dotest 'a' 'a' 'b' 4
27
28
# all different
29
dotest 'a' 'b' 'c' 5