-module(simple_nif_test). -export([run/0]). run() -> io:format("=== Simple NIF Test ===~n"), % Add the current directory to code path code:add_path("."), % Try to load and test the basic NIF try io:format("Loading mlx_nif...~n"), case catch mlx_nif:version() of {ok, Version} -> io:format("✓ NIF loaded successfully: ~p~n", [Version]); LoadError -> io:format("✗ NIF load failed: ~p~n", [LoadError]) end, io:format("Testing basic operations...~n"), case catch mlx_nif:test_basic() of {ok, Result} -> io:format("✓ Basic test passed: ~p~n", [Result]); TestError -> io:format("✗ Basic test failed: ~p~n", [TestError]) end catch Class:Reason:Stacktrace -> io:format("Test crashed: ~p:~p~n~p~n", [Class, Reason, Stacktrace]) end.