25 lines
439 B
Bash
25 lines
439 B
Bash
#!/bin/bash
|
|
|
|
source "$(dirname "${BASH_SOURCE[0]}")/../../test/helpers.sh"
|
|
|
|
function run_buffyboard_async() {
|
|
local log=$1
|
|
local conf=$2
|
|
|
|
./_build/buffyboard -v -C "$conf" > "$log" 2>&1 &
|
|
pid=$!
|
|
sleep 3
|
|
|
|
kill -9 $pid
|
|
wait $pid > /dev/null 2>&1
|
|
}
|
|
|
|
function run_buffyboard_sync() {
|
|
local log=$1
|
|
shift
|
|
local conf=$2
|
|
shift
|
|
local args=$@
|
|
|
|
./_build/buffyboard -v -C "$conf" $@ > "$log" 2>&1
|
|
}
|