mirror of
https://github.com/geohot/qira
synced 2025-01-12 22:09:19 +03:00
28 lines
476 B
Bash
Executable File
28 lines
476 B
Bash
Executable File
#!/bin/bash -e
|
|
|
|
# test distribution
|
|
if [ "$1" == "distrib" ] ; then
|
|
echo "*** testing distrib"
|
|
./bdistrib.sh
|
|
cd distrib/qira
|
|
./install.sh
|
|
cd ../../
|
|
fi
|
|
|
|
source venv/bin/activate
|
|
nosetests -v -s
|
|
|
|
# integration test
|
|
./qira qira_tests/bin/loop &
|
|
QIRA_PID=$!
|
|
trap "kill $QIRA_PID" EXIT
|
|
echo "qira pid is $QIRA_PID"
|
|
sleep 2
|
|
|
|
# replace phantomjs test with this
|
|
#phantomjs qira_tests/load_page.js
|
|
curl http://localhost:3002/ | grep "<title>qira</title>"
|
|
|
|
echo "tests pass"
|
|
|