Fail integration tests early

This commit is contained in:
Jakob Borg 2014-09-16 23:22:03 +02:00
parent d1ad778a64
commit cbf758ead9
4 changed files with 13 additions and 5 deletions

View File

@ -1,4 +1,6 @@
#!/bin/bash
set -euo pipefail
IFS=$'\n\t'
# Copyright (C) 2014 Jakob Borg and other contributors. All rights reserved.
# Use of this source code is governed by an MIT-style license that can be
@ -123,7 +125,7 @@ alterFiles() {
}
rm -rf h?/*.idx.gz h?/index
chmod -R u+w s? s??-?
chmod -R u+w s? s??-? || true
rm -rf s? s??-?
mkdir s1 s2 s3 s12-1 s12-2 s23-2 s23-3

View File

@ -1,4 +1,6 @@
#!/bin/bash
set -euo pipefail
IFS=$'\n\t'
# Copyright (C) 2014 Jakob Borg and other contributors. All rights reserved.
# Use of this source code is governed by an MIT-style license that can be
@ -29,7 +31,7 @@ setup() {
echo "Setting up dirs..."
mkdir -p s1
pushd s1 >/dev/null
rm -r */*[02468] 2>/dev/null
rm -r */*[02468] 2>/dev/null || true
rm -rf *2
for ((i = 0; i < 500; i++)) ; do
mkdir -p "$RANDOM/$RANDOM"
@ -75,7 +77,7 @@ testConvergence() {
fi
}
chmod -R +w s? s??-?
chmod -R +w s? s??-? || true
rm -rf s? s??-?
rm -rf f?/*.idx.gz f?/index

View File

@ -1,4 +1,6 @@
#!/bin/bash
set -euo pipefail
IFS=$'\n\t'
# Copyright (C) 2014 Jakob Borg and other contributors. All rights reserved.
# Use of this source code is governed by an MIT-style license that can be
@ -19,7 +21,7 @@ echo Building
go build http.go
echo Starting
chmod -R +w s1 s2
chmod -R +w s1 s2 || true
rm -rf s1 s2 h1/index h2/index
syncthing -home h1 > 1.out 2>&1 &
syncthing -home h2 > 2.out 2>&1 &

View File

@ -1,4 +1,6 @@
#!/bin/bash
set -euo pipefail
IFS=$'\n\t'
# Copyright (C) 2014 Jakob Borg and other contributors. All rights reserved.
# Use of this source code is governed by an MIT-style license that can be
@ -114,7 +116,7 @@ alterFiles() {
}
rm -rf h?/*.idx.gz h?/index
chmod -R +w s? s??-? s4d
chmod -R +w s? s??-? s4d || true
rm -rf s? s??-? s4d
echo "Setting up files..."