From 16837a427b85b14e36c6cea4c48dc4e6822e3b9e Mon Sep 17 00:00:00 2001 From: Rich Geldreich Date: Sat, 24 Jan 2026 21:28:58 -0500 Subject: [PATCH] Add example output for backend loading tests Added example output for backend loading tests in README. --- python/README.md | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/python/README.md b/python/README.md index dae25b7..1b07677 100644 --- a/python/README.md +++ b/python/README.md @@ -59,3 +59,32 @@ Low-level tests (used while bringing up the codec): - python3 -m lowlevel_test_wasm.compress_test - python3 -m lowlevel_test_wasm.compress_test_float +Example output: + +``` +richg@ryzen9:/mnt/c/dev/bu_1_22_snapshot2/basis_universal-master/python$ python3 -m tests.test_backend_loading +========== BACKEND LOADING TEST ========== + +Testing native backend... +[Encoder] Using native backend + [OK] Native backend loaded +Hello from basisu_wasm_api.cpp version 200 + Native get_version() ? 200 + Native alloc() returned ptr = 685784256 + Native free() OK + [OK] Native basic operations working. + + +Testing WASM backend... +[WASM Encoder] Loaded: /mnt/c/dev/bu_1_22_snapshot2/basis_universal-master/python/basisu_py/wasm/basisu_module_st.wasm +[Encoder] Using WASM backend + [OK] WASM backend loaded +Hello from basisu_wasm_api.cpp version 200 + WASM get_version() ? 200 + WASM alloc() returned ptr = 26920160 + WASM free() OK + [OK] WASM basic operations working. + + +========== DONE ========== +```