commit - 81842610d679c16c5a5d624b9d815e9c64a85a95c0984a5a29110f3a36f48ce8
commit + 621a005dceebd02b4caeba30a35461c097640e5aa92a059ed91176b11dc1dad8
blob - c55e1bdf6468fd122ec25d687b9f7c027fd44cacadeb7987600f32bcc5000d83
blob + 64df0d71a00afe3c2ab92f41a7b5d012623212986c52faa424525dc08cc3b7ca
--- regress/gotd/Makefile
+++ regress/gotd/Makefile
test_email_notification test_http_notification \
test_git_interop test_email_and_http_notification \
test_http_notification_hmac test_connection_limit \
- test_large_loose_objects
+ test_large_files
NOOBJ=Yes
CLEANFILES=gotd.conf gotd-secrets.conf
@chown ${GOTD_USER} "${GOTD_TEST_REPO}"
@su -m ${GOTD_USER} -c 'env $(GOTD_TEST_ENV) sh ./prepare_test_repo.sh 1'
-prepare_large_loose_objects: ensure_root prepare_test_repo
+prepare_large_files: ensure_root prepare_test_repo
@su -m ${GOTD_USER} -c 'env $(GOTD_TEST_ENV) \
- sh ./prepare_large_loose_objects.sh'
+ sh ./prepare_large_files.sh'
test_repo_read: prepare_test_repo start_gotd_ro
@-$(GOTD_TRAP); su ${GOTD_TEST_USER} -c \
'env $(GOTD_TEST_ENV) sh ./connection_limit.sh'
@$(GOTD_STOP_CMD) 2>/dev/null
-test_large_loose_objects: prepare_large_loose_objects start_gotd_ro
+test_large_files: prepare_large_files start_gotd_ro
@-$(GOTD_TRAP); su ${GOTD_TEST_USER} -c \
- 'env $(GOTD_TEST_ENV) sh ./large_loose_objects.sh'
+ 'env $(GOTD_TEST_ENV) sh ./large_files.sh'
@$(GOTD_STOP_CMD) 2>/dev/null
.include <bsd.regress.mk>
blob - 3647f46de48201232b4d32302ab005f3c4d7f7dcf150a286fbefffd8a7844b97 (mode 644)
blob + /dev/null
--- regress/gotd/large_loose_objects.sh
+++ /dev/null
-#!/bin/sh
-#
-# Copyright (c) 2025 Stefan Sperling <stsp@openbsd.org>
-#
-# Permission to use, copy, modify, and distribute this software for any
-# purpose with or without fee is hereby granted, provided that the above
-# copyright notice and this permission notice appear in all copies.
-#
-# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
-# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
-# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
-# ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
-# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
-# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
-# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-
-. ../cmdline/common.sh
-. ./common.sh
-
-test_clone_basic() {
- local testroot=`test_init clone_basic 1`
-
- got clone -q ${GOTD_TEST_REPO_URL} $testroot/repo-clone
- ret=$?
- if [ $ret -ne 0 ]; then
- echo "got clone failed unexpectedly" >&2
- test_done "$testroot" "1"
- return 1
- fi
-
- # Verify that the clone operation worked fine.
- git_fsck "$testroot" "$testroot/repo-clone"
- ret=$?
- if [ $ret -ne 0 ]; then
- test_done "$testroot" "1"
- return 1
- fi
-
- got tree -R -r "$testroot/repo-clone" > $testroot/stdout
- cat > $testroot/stdout.expected <<EOF
-alpha
-beta
-epsilon/
-epsilon/zeta
-gamma/
-gamma/delta
-large_file1
-large_file2
-large_file3
-EOF
- cmp -s $testroot/stdout.expected $testroot/stdout
- ret=$?
- if [ $ret -ne 0 ]; then
- diff -u $testroot/stdout.expected $testroot/stdout
- test_done "$testroot" "$ret"
- return 1
- fi
-
- test_done "$testroot" "$ret"
-}
-
-test_parseargs "$@"
-run_test test_clone_basic
blob - /dev/null
blob + 3647f46de48201232b4d32302ab005f3c4d7f7dcf150a286fbefffd8a7844b97 (mode 644)
--- /dev/null
+++ regress/gotd/large_files.sh
+#!/bin/sh
+#
+# Copyright (c) 2025 Stefan Sperling <stsp@openbsd.org>
+#
+# Permission to use, copy, modify, and distribute this software for any
+# purpose with or without fee is hereby granted, provided that the above
+# copyright notice and this permission notice appear in all copies.
+#
+# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
+# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
+# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
+# ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
+# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
+# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+
+. ../cmdline/common.sh
+. ./common.sh
+
+test_clone_basic() {
+ local testroot=`test_init clone_basic 1`
+
+ got clone -q ${GOTD_TEST_REPO_URL} $testroot/repo-clone
+ ret=$?
+ if [ $ret -ne 0 ]; then
+ echo "got clone failed unexpectedly" >&2
+ test_done "$testroot" "1"
+ return 1
+ fi
+
+ # Verify that the clone operation worked fine.
+ git_fsck "$testroot" "$testroot/repo-clone"
+ ret=$?
+ if [ $ret -ne 0 ]; then
+ test_done "$testroot" "1"
+ return 1
+ fi
+
+ got tree -R -r "$testroot/repo-clone" > $testroot/stdout
+ cat > $testroot/stdout.expected <<EOF
+alpha
+beta
+epsilon/
+epsilon/zeta
+gamma/
+gamma/delta
+large_file1
+large_file2
+large_file3
+EOF
+ cmp -s $testroot/stdout.expected $testroot/stdout
+ ret=$?
+ if [ $ret -ne 0 ]; then
+ diff -u $testroot/stdout.expected $testroot/stdout
+ test_done "$testroot" "$ret"
+ return 1
+ fi
+
+ test_done "$testroot" "$ret"
+}
+
+test_parseargs "$@"
+run_test test_clone_basic
blob - 0197c4dfee3a3c31be20be6f913a8d410fe6dd3d449445b146f9b3878d679a06 (mode 755)
blob + /dev/null
--- regress/gotd/prepare_large_loose_objects.sh
+++ /dev/null
-#!/bin/sh
-#
-# Copyright (c) 2025 Stefan Sperling <stsp@openbsd.org>
-#
-# Permission to use, copy, modify, and distribute this software for any
-# purpose with or without fee is hereby granted, provided that the above
-# copyright notice and this permission notice appear in all copies.
-#
-# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
-# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
-# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
-# ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
-# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
-# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
-# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-
-test_tree=`mktemp -d "${GOTD_TEST_ROOT}/gotd-test-tree-XXXXXXXXXX"`
-trap "rm -r $test_tree" HUP INT QUIT PIPE TERM
-
-got checkout -q "${GOTD_TEST_REPO}" "$test_tree" > /dev/null
-
-dd if=/dev/random of="$test_tree/large_file1" count=32768 status=none
-(cd "$test_tree" && got add "$test_tree/large_file1" > /dev/null)
-for i in 2 3; do
- cp "$test_tree/large_file1" "$test_tree/large_file$i"
- dd if=/dev/random of="$test_tree/large_file$i" seek=32768 count=64 \
- status=none
- (cd "$test_tree" && got add "$test_tree/large_file$i" > /dev/null)
-done
-
-(cd "$test_tree" && got commit -m "add large objects" "$test_tree" > /dev/null)
-
-rm -r "$test_tree"
blob - /dev/null
blob + 715e78f29346eee2763abf6f18d086457f447e9ddf0ddc6177f2758f1171ff94 (mode 755)
--- /dev/null
+++ regress/gotd/prepare_large_files.sh
+#!/bin/sh
+#
+# Copyright (c) 2025 Stefan Sperling <stsp@openbsd.org>
+#
+# Permission to use, copy, modify, and distribute this software for any
+# purpose with or without fee is hereby granted, provided that the above
+# copyright notice and this permission notice appear in all copies.
+#
+# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
+# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
+# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
+# ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
+# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
+# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+
+test_tree=`mktemp -d "${GOTD_TEST_ROOT}/gotd-test-tree-XXXXXXXXXX"`
+trap "rm -r $test_tree" HUP INT QUIT PIPE TERM
+
+got checkout -q "${GOTD_TEST_REPO}" "$test_tree" > /dev/null
+
+dd if=/dev/random of="$test_tree/large_file1" count=32768 status=none
+(cd "$test_tree" && got add "$test_tree/large_file1" > /dev/null)
+for i in 2 3; do
+ cp "$test_tree/large_file1" "$test_tree/large_file$i"
+ dd if=/dev/random of="$test_tree/large_file$i" seek=32768 count=64 \
+ status=none
+ (cd "$test_tree" && got add "$test_tree/large_file$i" > /dev/null)
+done
+
+(cd "$test_tree" && got commit -m "add large files" "$test_tree" > /dev/null)
+
+rm -r "$test_tree"