Skip to content

Commit 0eb5b25

Browse files
authored
Merge pull request #30 from atomvm/w26/pack-test-beams
Pack beams in test directory, for test profile
2 parents 5ee35e0 + c27cfba commit 0eb5b25

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/atomvm_packbeam_provider.erl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,8 +186,9 @@ do_packbeam(ProjectApps, Deps, ExternalAVMs, Prune, Force, StartModule, IsApplic
186186
get_files(App) ->
187187
OutDir = rebar_app_info:out_dir(App),
188188
EBinDir = rebar_app_info:ebin_dir(App),
189+
TestDir = filename:join([rebar_app_info:dir(App), "test"]),
189190
BootstrapEBinDir = filename:join(OutDir, "bootstrap_ebin"),
190-
BeamFiles = get_beam_files(EBinDir) ++ get_beam_files(BootstrapEBinDir),
191+
BeamFiles = get_beam_files(EBinDir) ++ get_beam_files(BootstrapEBinDir) ++ get_beam_files(TestDir),
191192
AppFile = get_app_file(EBinDir),
192193
PrivFiles = get_all_files(filename:join(OutDir, "priv")),
193194
Name = binary_to_list(rebar_app_info:name(App)),

0 commit comments

Comments
 (0)