// Probe: does a bundle with OFFLOADED addons dlopen them from disk at runtime?
// Uses each addon for real work, so a load that silently no-ops cannot pass.
import fs from 'bare-fs' // native: bare-fs.bare
import crypto from 'hypercore-crypto' // native: sodium-native.bare
import b4a from 'b4a'
const st = fs.statSync('.')
console.log('bare-fs OK isDirectory=' + st.isDirectory())
const h = crypto.data(b4a.from('offload-probe'))
console.log('sodium-native OK digest=' + b4a.toString(h, 'hex').slice(0, 16))
console.log('PROBE PASS')