Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
neoppod
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Levin Zimmermann
neoppod
Commits
d936b52d
Commit
d936b52d
authored
Jul 09, 2018
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
8c6e4b52
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
47 additions
and
43 deletions
+47
-43
go/neo/t/neotest
go/neo/t/neotest
+47
-43
No files found.
go/neo/t/neotest
View file @
d936b52d
...
...
@@ -1477,38 +1477,27 @@ Additional utility commands:
EOF
}
# commands and their flags:
#
# build: needs to rebuild NEO stuff
# net: needs init_net
# fs: needs init_fs
case
"
$1
"
in
# commands that require build
test-local
|
\
test-go
|
\
test-py
|
\
bench-local
|
\
bench-cluster
|
\
zbench-local
|
\
zbench-cluster
|
\
zbench-client
|
\
bench-cpu
|
\
bench-disk
|
\
bench-net
)
;;
info
)
shift
cmd_info
"
$@
"
exit
0
;;
info-local
)
shift
cmd_info-local
"
$@
"
exit
0
;;
cpustat
)
shift
cmd_cpustat
"
$@
"
exit
0
;;
info
)
f
=(
)
;;
info-local
)
f
=(
net
)
;;
test
)
f
=(
)
;;
test-local
)
f
=(
build
)
;;
test-go
)
f
=(
build
)
;;
test-py
)
f
=(
)
;;
bench-local
)
f
=(
build net fs
)
;;
bench-cluster
)
f
=(
build net fs
)
;;
zbench-local
)
f
=(
build net fs
)
;;
zbench-cluster
)
f
=(
build net fs
)
;;
zbench-client
)
f
=(
build
)
;;
bench-cpu
)
f
=(
build
)
;;
bench-disk
)
f
=(
fs
)
;;
bench-net
)
f
=(
net
)
;;
cpustat
)
f
=(
)
;;
-h
)
usage
...
...
@@ -1520,20 +1509,35 @@ cpustat)
;;
esac
# make sure tzodb*, tcpu* and zgenprod are on PATH (because we could be invoked from another dir)
X
=
$(
cd
`
dirname
$0
`
&&
pwd
)
export
PATH
=
$X
:
$PATH
# rebuild go bits
# neo/py, wendelin.core, ... - must be pip install'ed - `neotest deploy` cares about that
go
install
-v
lab.nexedi.com/kirr/neo/go/...
go build
-o
$X
/tzodb_go
$X
/tzodb.go
#go build -race -o $X/tzodb_go $X/tzodb.go
go build
-o
$X
/tcpu_go
$X
/tcpu.go
for
flag
in
${
f
[*]
}
;
do
case
"
$flag
"
in
build
)
# make sure tzodb*, tcpu* and zgenprod are on PATH (because we could be invoked from another dir)
X
=
$(
cd
`
dirname
$0
`
&&
pwd
)
export
PATH
=
$X
:
$PATH
# setup network & fs environment
init_net
init_fs
# rebuild go bits
# neo/py, wendelin.core, ... - must be pip install'ed - `neotest deploy` cares about that
go
install
-v
lab.nexedi.com/kirr/neo/go/...
go build
-o
$X
/tzodb_go
$X
/tzodb.go
go build
-o
$X
/tcpu_go
$X
/tcpu.go
;;
net
)
# setup network environment
init_net
;;
fs
)
# setup fs environment
init_fs
;;
*
)
die
"internal-error: command
$1
: invalid flag:
$flag
"
esac
done
# run the command
cmd
=
"
$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