File: test.sh

package info (click to toggle)
ruby-spamcheck 1.10.1-2
  • links: PTS, VCS
  • area: contrib
  • in suites: forky, sid, trixie
  • size: 668 kB
  • sloc: python: 1,261; ruby: 484; makefile: 54; sh: 13
file content (22 lines) | stat: -rwxr-xr-x 310 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/bash

set -euo pipefail
IFS=$'\n\t'

kill_server() {
  kill $SPAMCHECK_PID
}

gem uninstall spamcheck
gem install ./spamcheck*.gem

python main.py --log-level debug &
SPAMCHECK_PID=$!

trap kill_server EXIT

# Wait for service to start
sleep 3
LOCAL_TESTING=TRUE ruby ./tests/integration/run.rb

exit 0