File: smoke-test

package info (click to toggle)
ruby-foreman 0.90.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 584 kB
  • sloc: ruby: 2,020; sh: 88; makefile: 8
file content (27 lines) | stat: -rwxr-xr-x 282 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/sh

exec 2>&1
set -ex

cd $AUTOPKGTEST_TMP

mkdir app
cd app

cat > Procfile <<EOF
worker: sleep 1h
EOF

foreman version
foreman check
foreman export systemd etc/systemd/system
foreman start &
pid=$!

sleep 5s
pgrep -fa 'sleep 1h'

kill $pid

sleep 5s
! pgrep -fa 'sleep 1h'