2022-04-20 13:24:24 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
2023-11-01 03:32:09 +00:00
|
|
|
# Nimbus
|
2024-02-04 15:45:54 +00:00
|
|
|
# Copyright (c) 2021-2024 Status Research & Development GmbH
|
2023-11-01 03:32:09 +00:00
|
|
|
# Licensed under either of
|
|
|
|
# * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or
|
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0)
|
|
|
|
# * MIT license ([LICENSE-MIT](LICENSE-MIT) or
|
|
|
|
# http://opensource.org/licenses/MIT)
|
|
|
|
# at your option. This file may not be copied, modified, or distributed except
|
|
|
|
# according to those terms.
|
|
|
|
|
2022-04-20 13:24:24 +00:00
|
|
|
set -e
|
|
|
|
SIM_DIR="hive_integration/nodocker"
|
|
|
|
USE_SYSTEM_NIM=1
|
|
|
|
|
|
|
|
ENV_SCRIPT="vendor/nimbus-build-system/scripts/env.sh"
|
|
|
|
|
2024-09-04 09:54:54 +00:00
|
|
|
# we only use memory db in simulators
|
2024-02-04 14:28:20 +00:00
|
|
|
NIM_FLAGS="c -d:release"
|
2022-04-20 13:24:24 +00:00
|
|
|
|
|
|
|
echo "## ${1}" > simulators.md
|
2024-09-04 09:54:54 +00:00
|
|
|
|
|
|
|
# more suites: engine, graphql, rpc
|
|
|
|
suites=(consensus pyspec engine)
|
|
|
|
for suite in "${suites[@]}"
|
|
|
|
do
|
|
|
|
${ENV_SCRIPT} nim ${NIM_FLAGS} ${SIM_DIR}/${suite}/${suite}_sim
|
|
|
|
${SIM_DIR}/${suite}/${suite}_sim
|
|
|
|
cat ${suite}.md >> simulators.md
|
|
|
|
done
|