|
a/run_tests |
|
b/run_tests |
1 |
#!/usr/bin/env bash
|
1 |
#!/bin/bash
|
2 |
|
2 |
|
3 |
# Executes nosetest for each forge application in sequence.
|
3 |
MODULES="\
|
4 |
# Additional parameters passed to this script (such as --failed) will be passed to nosetest.
|
4 |
pyforge \
|
|
|
5 |
ForgeDiscussion \
|
|
|
6 |
ForgeGit \
|
|
|
7 |
ForgeHg \
|
|
|
8 |
ForgeMail \
|
|
|
9 |
ForgeSVN \
|
|
|
10 |
ForgeTracker \
|
|
|
11 |
ForgeWiki"
|
5 |
|
12 |
|
6 |
# Remove existing .test-data directories; start each test run with clean data
|
13 |
for module in $MODULES; do
|
7 |
find . -name '.test-data' -type d | xargs rm -r
|
14 |
(
|
|
|
15 |
echo "====================="
|
|
|
16 |
echo "Running tests in module $module"
|
|
|
17 |
cd $module
|
|
|
18 |
rm -r .test-data
|
|
|
19 |
nosetests $* || exit
|
|
|
20 |
) || exit
|
|
|
21 |
done
|
8 |
|
22 |
|
9 |
for APP in pyforge *Forge*
|
|
|
10 |
do
|
|
|
11 |
echo Testing $APP
|
|
|
12 |
pushd $APP > /dev/null
|
|
|
13 |
nosetests $@
|
|
|
14 |
popd > /dev/null
|
|
|
15 |
done
|
|
|