Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
boar/run_tests_nodedup.sh
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
executable file
22 lines (16 sloc)
856 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
export BOAR_CACHEDIR=`mktemp --tmpdir=/tmp/ -d "boar_tests_cache_XXXXX"` | |
export BOAR_SERVER_CLI="`pwd`/boar" | |
export PYTHON_BINARY=$(head -n1 $BOAR_SERVER_CLI|cut -d ' ' -f2) | |
test -e run_tests.sh || { echo "This command must be executed in the boar installation top dir"; exit 1; } | |
test ! -e cdedup.so || { echo "ERROR: dedup module must not be installed for these tests"; exit 1; } | |
# | |
# Test WITHOUT deduplication | |
# | |
for unittest in tests/test_*.py blobrepo/tests/test_*.py; do | |
echo "Excuting $unittest (cachedir $BOAR_CACHEDIR)" | |
BOAR_SKIP_DEDUP_TESTS=1 $PYTHON_BINARY $unittest || { echo "Unittest $unittest failed"; exit 1; } | |
done | |
rm -r $BOAR_CACHEDIR | |
echo "Executing local macro tests without deduplication" | |
BOAR_SKIP_DEDUP_TESTS=1 BOAR_TEST_REMOTE_REPO=0 macrotests/macrotest.sh || { echo "Macrotests (local) failed"; exit 1; } |