Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
plugin
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
link33
plugin
Commits
7c7e8a70
Commit
7c7e8a70
authored
Dec 30, 2019
by
linj
Committed by
vipwzw
Dec 30, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update token test shell
parent
6780aa90
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
+12
-12
testcase.sh
plugin/dapp/paracross/cmd/build/testcase.sh
+12
-12
No files found.
plugin/dapp/paracross/cmd/build/testcase.sh
View file @
7c7e8a70
...
@@ -252,13 +252,13 @@ function token_create() {
...
@@ -252,13 +252,13 @@ function token_create() {
echo
"
${
hash
}
"
echo
"
${
hash
}
"
query_tx
"
${
1
}
"
"
${
hash
}
"
query_tx
"
${
1
}
"
"
${
hash
}
"
${
1
}
token
get_
precreated
${
1
}
token precreated
owner
=
$(${
1
}
token
get_
precreated | jq
-r
".owner"
)
owner
=
$(${
1
}
token precreated | jq
-r
".owner"
)
if
[
"
${
owner
}
"
!=
"1KSBd17H7ZK8iT37aJztFB22XGwsPTdwE4"
]
;
then
if
[
"
${
owner
}
"
!=
"1KSBd17H7ZK8iT37aJztFB22XGwsPTdwE4"
]
;
then
echo
"wrong pre create owner"
echo
"wrong pre create owner"
exit
1
exit
1
fi
fi
total
=
$(${
1
}
token
get_
precreated | jq
-r
".total"
)
total
=
$(${
1
}
token precreated | jq
-r
".total"
)
if
[
"
${
total
}
"
!=
10000
]
;
then
if
[
"
${
total
}
"
!=
10000
]
;
then
echo
"wrong pre create total"
echo
"wrong pre create total"
exit
1
exit
1
...
@@ -269,13 +269,13 @@ function token_create() {
...
@@ -269,13 +269,13 @@ function token_create() {
echo
"
${
hash
}
"
echo
"
${
hash
}
"
query_tx
"
${
1
}
"
"
${
hash
}
"
query_tx
"
${
1
}
"
"
${
hash
}
"
${
1
}
token
get_finish_
created
${
1
}
token created
owner
=
$(${
1
}
token
get_finish_
created | jq
-r
".owner"
)
owner
=
$(${
1
}
token created | jq
-r
".owner"
)
if
[
"
${
owner
}
"
!=
"1KSBd17H7ZK8iT37aJztFB22XGwsPTdwE4"
]
;
then
if
[
"
${
owner
}
"
!=
"1KSBd17H7ZK8iT37aJztFB22XGwsPTdwE4"
]
;
then
echo
"wrong finish created owner"
echo
"wrong finish created owner"
exit
1
exit
1
fi
fi
total
=
$(${
1
}
token
get_finish_
created | jq
-r
".total"
)
total
=
$(${
1
}
token created | jq
-r
".total"
)
if
[
"
${
total
}
"
!=
10000
]
;
then
if
[
"
${
total
}
"
!=
10000
]
;
then
echo
"wrong finish created total"
echo
"wrong finish created total"
exit
1
exit
1
...
@@ -398,13 +398,13 @@ function token_create_on_mainChain() {
...
@@ -398,13 +398,13 @@ function token_create_on_mainChain() {
echo
"MAIN_CLI is:"
"
${
MAIN_CLI
}
"
echo
"MAIN_CLI is:"
"
${
MAIN_CLI
}
"
query_tx
"
${
MAIN_CLI
}
"
"
${
hash
}
"
query_tx
"
${
MAIN_CLI
}
"
"
${
hash
}
"
${
CLI
}
token
get_
precreated
${
CLI
}
token precreated
owner
=
$(${
CLI
}
token
get_
precreated | jq
-r
".owner"
)
owner
=
$(${
CLI
}
token precreated | jq
-r
".owner"
)
if
[
"
${
owner
}
"
!=
"12qyocayNF7Lv6C9qW4avxs2E7U41fKSfv"
]
;
then
if
[
"
${
owner
}
"
!=
"12qyocayNF7Lv6C9qW4avxs2E7U41fKSfv"
]
;
then
echo
"wrong pre create owner"
echo
"wrong pre create owner"
exit
1
exit
1
fi
fi
total
=
$(${
CLI
}
token
get_
precreated | jq
-r
".total"
)
total
=
$(${
CLI
}
token precreated | jq
-r
".total"
)
if
[
"
${
total
}
"
!=
10000
]
;
then
if
[
"
${
total
}
"
!=
10000
]
;
then
echo
"wrong pre create total"
echo
"wrong pre create total"
exit
1
exit
1
...
@@ -415,13 +415,13 @@ function token_create_on_mainChain() {
...
@@ -415,13 +415,13 @@ function token_create_on_mainChain() {
echo
"
${
hash
}
"
echo
"
${
hash
}
"
query_tx
"
${
MAIN_CLI
}
"
"
${
hash
}
"
query_tx
"
${
MAIN_CLI
}
"
"
${
hash
}
"
${
CLI
}
token
get_finish_
created
${
CLI
}
token created
owner
=
$(${
CLI
}
token
get_finish_
created | jq
-r
".owner"
)
owner
=
$(${
CLI
}
token created | jq
-r
".owner"
)
if
[
"
${
owner
}
"
!=
"12qyocayNF7Lv6C9qW4avxs2E7U41fKSfv"
]
;
then
if
[
"
${
owner
}
"
!=
"12qyocayNF7Lv6C9qW4avxs2E7U41fKSfv"
]
;
then
echo
"wrong finish created owner"
echo
"wrong finish created owner"
exit
1
exit
1
fi
fi
total
=
$(${
CLI
}
token
get_finish_
created | jq
-r
".total"
)
total
=
$(${
CLI
}
token created | jq
-r
".total"
)
if
[
"
${
total
}
"
!=
10000
]
;
then
if
[
"
${
total
}
"
!=
10000
]
;
then
echo
"wrong finish created total"
echo
"wrong finish created total"
exit
1
exit
1
...
...
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