Skip to content

Commit

Permalink
native_tests: native tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jumpsiegel committed Apr 24, 2024
1 parent d91bb63 commit 6c97237
Show file tree
Hide file tree
Showing 10 changed files with 3,687 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/test_ledgers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ jobs:
steps:
- uses: actions/checkout@v4
with:
lfs: true
submodules: recursive

- uses: ./.github/actions/deps
Expand Down
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,6 @@
path = solana
url = https://github.com/firedancer-io/solana.git
branch = v1.16-fd
[submodule "src/runtime-tests/1"]
path = src/runtime-tests/1
url = https://github.com/firedancer-io/firedancer-testbins
6 changes: 6 additions & 0 deletions src/flamenco/runtime/tests/Local.mk
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ $(call add-objs,fd_exec_instr_test,fd_flamenco)

$(call make-unit-test,test_exec_instr,test_exec_instr,fd_flamenco fd_funk fd_ballet fd_util,$(SECP256K1_LIBS))
$(call make-shared,libfd_exec_sol_compat.so,fd_exec_sol_compat,fd_flamenco fd_funk fd_ballet fd_util,$(SECP256K1_LIBS))

$(call make-unit-test,test_native_programs,test_native_programs fd_tests,fd_ballet fd_funk fd_util fd_sol_tests fd_flamenco,$(SECP256K1_LIBS))
$(call run-unit-test,test_native_programs)
endif

# TODO: add run-runtime-test-3 to the list of run-runtime-test after big merge is done
Expand All @@ -15,6 +18,9 @@ run-runtime-test: run-runtime-test-1 run-runtime-test-2
run-runtime-test-big: $(OBJDIR)/unit-test/test_native_programs $(OBJDIR)/unit-test/test_runtime $(OBJDIR)/bin/fd_frank_ledger
OBJDIR=$(OBJDIR) src/flamenco/runtime/tests/run_ledger_tests.sh -l bad-incremental2 -s snapshot-262497545-3sFmKsyF32p4V2HMKaM6s2ymCG64NVcjuxYmen1aKky2.tar.zst -i incremental-snapshot-262497545-262507921-Asuwpa3yuxsBZuVwsad41S3QHYejcdTdeNcqSHKbxvG1.tar.zst -p 250 -m 80000000 -e 255312010

run-runtime-native: $(OBJDIR)/unit-test/test_native_programs
OBJDIR=$(OBJDIR) src/flamenco/runtime/tests/run_native_tests.sh

run-runtime-test-1: $(OBJDIR)/unit-test/test_runtime $(OBJDIR)/bin/fd_frank_ledger
OBJDIR=$(OBJDIR) src/flamenco/runtime/tests/run_ledger_tests.sh -t 2 -X 1
OBJDIR=$(OBJDIR) src/flamenco/runtime/tests/run_ledger_tests.sh
Expand Down
Loading

0 comments on commit 6c97237

Please sign in to comment.