1
0
mirror of https://github.com/nttgin/BGPalerter.git synced 2024-05-19 06:50:08 +00:00
Files
nttgin-BGPalerter/tests/proxy_tests/test_proxy.sh
Massimo Candela 91f0d03f2a proxy support (#234)
Introduced proxy support

Co-authored-by: Florian Domain <f.domain@criteo.com>
2020-05-26 14:50:16 +02:00

12 lines
303 B
Bash
Executable File

#!/bin/bash
# Install anyproxy
npm install -g anyproxy
# Run anyproxy in background and store its PID
nohup anyproxy --port 8001 &
ANYPROXY_PID=$!
# Run tests suite
./node_modules/.bin/mocha --exit tests/proxy_tests/*.js --require @babel/register
# Terminate anyproxy process
kill $ANYPROXY_PID
exit 0