libwebsockets-test-server: command not found

Have You tried accessing the binary with the full path?

Maybe Your $PATH variable doesn't contain the default paths? echo $PATH should give something like:

[root@server ~]# echo $PATH
/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin

If it's empty, You may set the PATH variable with this command

export PATH="/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin"

On Debian possible default full paths are:

/usr/bin/libwebsockets-test-server - from package: libwebsockets-test-server

You may install the required package with command apt-get install {package}
Error in other languages:
libwebsockets-test-server: bevel nie gevind nie
libwebsockets-test-server: comandă negăsită
libwebsockets-test-server: comando não encontrado
libwebsockets-test-server: commande introuvable
libwebsockets-test-server: command not found
libwebsockets-test-server: käsku ei ole
libwebsockets-test-server: không tìm thấy lệnh
libwebsockets-test-server: komanda nerasta
libwebsockets-test-server: Kommando nicht gefunden.
libwebsockets-test-server: kommandot finns inte
libwebsockets-test-server: komut yok
libwebsockets-test-server: nie znaleziono polecenia
libwebsockets-test-server: níor aimsíodh an t-ordú
libwebsockets-test-server: no se encontró la orden
libwebsockets-test-server: no s'ha trobat l'ordre
libwebsockets-test-server: opdracht niet gevonden
libwebsockets-test-server: parancs nem található
libwebsockets-test-server: perintah tidak ditemukan
libwebsockets-test-server: príkaz nenájdený
libwebsockets-test-server: příkaz nenalezen
libwebsockets-test-server: команда не найдена
libwebsockets-test-server: командата не е открита
libwebsockets-test-server: 命令找不到
libwebsockets-test-server: コマンドが見つかりません