diff options
context:
space:
mode:
authorBryce Kwon <bryce@brycekwon.com>
committerBryce Kwon <bryce@brycekwon.com>
commit
parent
tree
download
Test the hardening pass
Diffstat (limited to 'tests/setup.sh')
-rwxr-xr-xtests/setup.sh18
1 file changed, 7 insertions, 11 deletions
diff --git a/tests/setup.sh b/tests/setup.sh
index f84b1b6..a1f2d15 100755
--- a/tests/setup.sh
+++ b/tests/setup.sh
@@ -49,11 +49,10 @@ TEST_RESULTS_DIR="$TEST_OUTPUT_DIRECTORY/results"
TEST_RESULTS_BASE="$TEST_RESULTS_DIR/$TEST_NAME$TEST_STRESS_JOB_SFX"
TEST_RESULTS_SAN_DIR="$TEST_RESULTS_BASE.$TEST_RESULTS_SAN_DIR_SFX"
-# The library has moved into the trash directory by now, so paths outside
-# it are anchored to TEST_OUTPUT_DIRECTORY.
-
-# The tests run cgit by name, so the binary just built has to come ahead of any
-# copy already installed. Under Valgrind the wrappers take that place instead.
+# The library has moved into the trash directory by now, so paths outside it
+# are anchored to TEST_OUTPUT_DIRECTORY. The tests run cgit by name, so the
+# binary just built has to come ahead of any copy already installed. Under
+# Valgrind the wrappers take that place instead.
if test -n "$cgit_valgrind"
then
GIT_VALGRIND="$TEST_DIRECTORY/valgrind"
@@ -107,8 +106,7 @@ mkrepo() {
)
}
-setup_repos()
-{
+setup_repos() {
rm -rf cache
mkdir -p cache
mkrepo repos/foo 5 >/dev/null
@@ -171,13 +169,11 @@ EOF
fi
}
-cgit_query()
-{
+cgit_query() {
CGIT_CONFIG="$PWD/cgitrc" QUERY_STRING="$1" cgit
}
-cgit_url()
-{
+cgit_url() {
CGIT_CONFIG="$PWD/cgitrc" QUERY_STRING="url=$1" cgit
}