emu 467 B

1234567891011121314151617181920
  1. #!/bin/sh
  2. # linux script to compile&run arduinoWebSockets in a mock environment
  3. if [ -z "$ESP8266ARDUINO" ]; then
  4. echo "please set ESP8266ARDUINO env-var to where esp8266/arduino sits"
  5. exit 1
  6. fi
  7. set -e
  8. where=$(pwd)
  9. cd $ESP8266ARDUINO/tests/host/
  10. make -j FORCE32=0 \
  11. ULIBDIRS=../../libraries/Hash/:~/dev/proj/arduino/libraries/arduinoWebSockets \
  12. ${where}/WebSocketServerHooked
  13. valgrind ./bin/WebSocketServerHooked/WebSocketServerHooked -b "$@"