Skip to content

Commit

Permalink
REMOVE ME
Browse files Browse the repository at this point in the history
Signed-off-by: Davide Bettio <[email protected]>
  • Loading branch information
bettio committed Oct 3, 2024
1 parent c270bf4 commit 70686fe
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/platforms/esp32/test/main/test_erl_sources/test_mount.erl
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,25 @@
-export([start/0]).

start() ->
erlang:display(bstart),
{ok, Ref} = mount_working_sdmmc(),
erlang:display(bumount_prev),
ok = umount_prev(Ref),
erlang:display(bumount_missing),
ok = mount_missing_fat_partition(),
ok = umount_prev(Ref).
erlang:display(bumount_prev),
ok = umount_prev(Ref),
erlang:display(done),
ok.

mount_working_sdmmc() ->
{ok, Ref} = esp:mount("sdmmc", "/test", fat, []),
erlang:display(file_test),
{ok, Fd} = atomvm:posix_open("/test/test.txt", [o_rdwr, o_creat], 8#644),
ok = atomvm:posix_close(Fd),
erlang:display(umount_test),
ok = esp:umount(Ref),
erlang:display(umount_done),
{ok, Ref}.

mount_missing_fat_partition() ->
Expand Down

0 comments on commit 70686fe

Please sign in to comment.