mirror of
https://github.com/Unitech/pm2.git
synced 2025-12-08 20:35:53 +00:00
21 lines
348 B
Bash
21 lines
348 B
Bash
#!/usr/bin/env bash
|
|
|
|
SRC=$(cd $(dirname "$0"); pwd)
|
|
source "${SRC}/include.sh"
|
|
|
|
echo -e "\033[1mRunning tests:\033[0m"
|
|
|
|
cd $file_path/stdin
|
|
|
|
$pm2 start stdin.js -o out-rel.log --merge-logs
|
|
>out-rel.log
|
|
|
|
# Send LINE\n to stdin application
|
|
$pm2 send 0 "LINE"
|
|
|
|
cat out-rel.log
|
|
grep "LINE" out-rel.log
|
|
spec "Should have reveived line"
|
|
|
|
$pm2 delete all
|