Files
ternfs-XTXMarkets/tests.sh
T
Francesco Mazzoli 6addbdee6a First version of kernel module
Initial version really by Pawel, but many changes in between.

Big outstanding issues:

* span cache reclamation (unbounded memory otherwise...)
* bad block service detection and workarounds
* corrupted blocks detection and workaround

Co-authored-by: Paweł Dziepak <pawel.dziepak@xtxmarkets.com>
2023-05-18 15:29:41 +00:00

31 lines
780 B
Bash
Executable File

#!/usr/bin/env bash
set -eu -o pipefail
echo "$(tput bold)building requisites$(tput sgr0)"
./cpp/build.py alpine rs crc32c # build libs for go
(cd go/msgs && go generate ./...)
echo "$(tput bold)go tests$(tput sgr0)"
(cd go && go test ./...)
./cpp/tests.sh
(cd kmod && make bincode_tests && ./bincode_tests)
(cd go/eggstests && go build .)
echo "$(tput bold)integration tests$(tput sgr0)"
set -x
./go/eggstests/eggstests -repo-dir $(pwd)
set +x
echo "$(tput bold)integration tests, sanitized, packet drop$(tput sgr0)"
set -x
./go/eggstests/eggstests -repo-dir $(pwd) -build-type sanitized -outgoing-packet-drop 0.1 -short
set +x
echo "$(tput bold)integration tests, valgrind$(tput sgr0)"
set -x
./go/eggstests/eggstests -repo-dir $(pwd) -build-type valgrind -short
set +x