mirror of
https://github.com/Unitech/pm2.git
synced 2025-12-08 20:35:53 +00:00
33 lines
471 B
Bash
33 lines
471 B
Bash
#!/usr/bin/env bash
|
|
|
|
SRC=$(cd $(dirname "$0"); pwd)
|
|
source "${SRC}/include.sh"
|
|
cd $file_path
|
|
|
|
echo -e "\033[1mRunning Interaction tests:\033[0m"
|
|
|
|
$pm2 interact stop
|
|
|
|
$pm2 interact
|
|
|
|
$pm2 interact XXX2 XXX3 homeloc
|
|
|
|
$pm2 updatePM2
|
|
|
|
$pm2 interact stop
|
|
|
|
$pm2 interact
|
|
|
|
$pm2 interact info
|
|
|
|
$pm2 interact info | grep "XXX2"
|
|
spec "Should have XXX2 has public key"
|
|
|
|
$pm2 interact info | grep "XXX3"
|
|
spec "Should have XXX3 has public key"
|
|
|
|
$pm2 list
|
|
|
|
$pm2 interact stop
|
|
$pm2 kill
|