mirror of
https://github.com/geohot/qira
synced 2025-02-06 01:24:12 +03:00
26 lines
357 B
Bash
Executable File
26 lines
357 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
|
|
|
|
# integration test
|
|
qira qira_tests/bin/loop &
|
|
QIRA_PID=$!
|
|
echo "qira pid is $QIRA_PID"
|
|
sleep 2
|
|
|
|
# phantomjs
|
|
phantomjs qira_tests/load_page.js
|
|
|
|
kill $QIRA_PID
|
|
|