Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 8757161d8a
Fetching contributors…

Cannot retrieve contributors at this time

executable file 34 lines (27 sloc) 0.563 kb
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 28 29 30 31 32 33 34
#!/bin/bash

test_server_stdout=tests/server.stdout

function install_deps {
    pip install pytest bottle
}

function start_server {
    rm -f ${test_server_stdout}
    python tests/m3u8server.py >${test_server_stdout} 2>&1 &
}

function stop_server {
    ps ax | grep m3u8server.py | grep -v grep | cut -d ' ' -f 1 | xargs kill
echo "Test server stdout on ${test_server_stdout}"
}

function run {
    PYTHONPATH=. py.test -vs tests/
}

function main {
    install_deps
    start_server
    run
    stop_server
}

if [ -z "$1" ]; then
    main
else
    $@
fi
Something went wrong with that request. Please try again.