-
Notifications
You must be signed in to change notification settings - Fork 471
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tools: block-generator applications. Part 1: create (#5450)
- Loading branch information
Showing
14 changed files
with
1,603 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
SCENARIO = scenarios/config.app.create.yml # test_config.yml | ||
SKIP = --skip-runner | ||
RESETDB = --reset-db | ||
REPORTS = ../../tmp/RUN_RUNNER_OUTPUTS | ||
DURATION = 30s | ||
|
||
debug-blockgen: | ||
python run_runner.py \ | ||
--conduit-binary ./conduit \ | ||
--scenario $(SCENARIO) \ | ||
--report-directory $(REPORTS) \ | ||
--keep-alive $(SKIP) \ | ||
--test-duration $(DURATION) \ | ||
$(RESETDB) | ||
|
||
clean-reports: | ||
rm -rf $(REPORTS) | ||
|
||
cleanup: clean-reports | ||
python run_runner.py --purge | ||
|
||
enter-pg: | ||
docker exec -it generator-test-container psql -U algorand -d generator_db | ||
|
||
run-runner: | ||
./block-generator runner --conduit-binary ./conduit \ | ||
--log-level trace \ | ||
--keep-data-dir \ | ||
--test-duration $(DURATION) \ | ||
--log-level trace \ | ||
--postgres-connection-string "host=localhost user=algorand password=algorand dbname=generator_db port=15432 sslmode=disable" \ | ||
--scenario $(SCENARIO) \ | ||
$(RESETDB) \ | ||
--report-directory $(REPORTS) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.