projects
/
cumulus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
ee98274
)
Update tests to allow alternate Python versions (for py3 testing).
author
Michael Vrable
<vrable@cs.hmc.edu>
Fri, 31 Jan 2014 15:40:24 +0000
(07:40 -0800)
committer
Michael Vrable
<vrable@cs.hmc.edu>
Sat, 1 Feb 2014 17:18:56 +0000
(09:18 -0800)
tests/run-test
patch
|
blob
|
history
diff --git
a/tests/run-test
b/tests/run-test
index
a1fd7c5
..
843585a
100755
(executable)
--- a/
tests/run-test
+++ b/
tests/run-test
@@
-34,6
+34,9
@@
TMP_DIR="$(readlink -f "$(mktemp -d cumulus-tests.XXXXXX)")"
# Command to use for running memory leak tests.
VALGRIND="valgrind --tool=memcheck --leak-check=full --log-file=$TMP_DIR/valgrind.log"
# Command to use for running memory leak tests.
VALGRIND="valgrind --tool=memcheck --leak-check=full --log-file=$TMP_DIR/valgrind.log"
+# Python interpreter to test with.
+PYTHON="${PYTHON:-python2}"
+
log_action() {
echo
echo "================================================================"
log_action() {
echo
echo "================================================================"
@@
-68,8
+71,6
@@
cp -a "$BIN_DIR/third_party" "$TREE"
log_action "Running second backup..."
sleep 5
log_action "Running second backup..."
sleep 5
-BACKUP_DIR="$TMP_DIR/backups"
-mkdir "$BACKUP_DIR"
$VALGRIND "$BIN_DIR"/cumulus --dest="$BACKUP_DIR" --localdb="$LOCALDB" \
--scheme=test -v "$TREE"
$VALGRIND "$BIN_DIR"/cumulus --dest="$BACKUP_DIR" --localdb="$LOCALDB" \
--scheme=test -v "$TREE"
@@
-82,5
+83,6
@@
for s in $snapshots; do
i=$((i + 1))
dest="$TMP_DIR/restore-$i"
mkdir -p "$dest"
i=$((i + 1))
dest="$TMP_DIR/restore-$i"
mkdir -p "$dest"
- "$BIN_DIR"/cumulus-util --store="$BACKUP_DIR" restore-snapshot $s "$dest"
+ "$PYTHON" "$BIN_DIR"/cumulus-util --store="$BACKUP_DIR" \
+ restore-snapshot $s "$dest"
done
done