Commit f278d611 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 12e184be
#!/bin/bash -e #!/bin/bash -e
# neotest: run tests and benchmarks against FileStorage, ZEO and various NEO/py and NEO/go clusters # neotest: run tests and benchmarks against FileStorage, ZEO and various NEO/py and NEO/go clusters
# Copyright (C) 2017-2020 Nexedi SA and Contributors. # Copyright (C) 2017-2021 Nexedi SA and Contributors.
# Kirill Smelkov <kirr@nexedi.com> # Kirill Smelkov <kirr@nexedi.com>
# #
# This program is free software: you can Use, Study, Modify and Redistribute # This program is free software: you can Use, Study, Modify and Redistribute
...@@ -141,7 +141,10 @@ $@ ...@@ -141,7 +141,10 @@ $@
# ---- go/py unit tests ---- # ---- go/py unit tests ----
cmd_test-go() { cmd_test-go() {
go test -count=1 lab.nexedi.com/kirr/neo/go/... # -count=1 disables tests caching (
cd $NEOt
go test -count=1 lab.nexedi.com/kirr/neo/go/... # -count=1 disables tests caching
)
} }
cmd_test-py() { cmd_test-py() {
...@@ -1503,18 +1506,22 @@ cpustat) f=( );; ...@@ -1503,18 +1506,22 @@ cpustat) f=( );;
esac esac
NEOt=$(cd `dirname $0` && pwd)
for flag in ${f[*]}; do for flag in ${f[*]}; do
case "$flag" in case "$flag" in
build) build)
# make sure tzodb*, tcpu* and zgenprod are on PATH (because we could be invoked from another dir) # make sure tzodb*, tcpu* and zgenprod are on PATH (because we could be invoked from another dir)
X=$(cd `dirname $0` && pwd) export PATH=$NEOt:$PATH
export PATH=$X:$PATH
# rebuild go bits # rebuild go bits
# neo/py, wendelin.core, ... - must be pip install'ed - `neotest deploy` cares about that # 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 cd $NEOt
go build -o $X/tcpu_go $X/tcpu.go go install -v lab.nexedi.com/kirr/neo/go/...
go build -o tzodb_go tzodb.go
go build -o tcpu_go tcpu.go
)
;; ;;
net) net)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment