commit 2ba97f681968a9e42868cc7e7c531cf33af36063 from: Mark Jamsek date: Tue Nov 26 09:34:07 2024 UTC gotwebd: rename action_commit test to action_diff commit - 9b9d6a77d4925c1bac43a8a6b9ea12c207bfa6a2 commit + 2ba97f681968a9e42868cc7e7c531cf33af36063 blob - 681cedc2e3bbeb0d09075359cb45e7be7e8a45df (mode 644) blob + /dev/null --- regress/gotwebd/action_commit.html +++ /dev/null @@ -1,32 +0,0 @@ -Content-Security-Policy: default-src 'self'; script-src 'none'; object-src 'none'; -Content-Type: text/html - -Gotweb

Commit Diff


commit - /dev/null
-commit + ${COMMIT_ID}
-blob - /dev/null
-blob + ${BLOB_ALPHA} (mode 644)
---- /dev/null
-+++ alpha
-@@ -0,0 +1 @@
-+alpha
-blob - /dev/null
-blob + ${BLOB_BETA} (mode 644)
---- /dev/null
-+++ beta
-@@ -0,0 +1 @@
-+beta
-blob - /dev/null
-blob + ${BLOB_ZETA} (mode 644)
---- /dev/null
-+++ epsilon/zeta
-@@ -0,0 +1 @@
-+zeta
-blob - /dev/null
-blob + ${BLOB_DELTA} (mode 644)
---- /dev/null
-+++ gamma/delta
-@@ -0,0 +1 @@
-+delta
-
blob - /dev/null blob + 681cedc2e3bbeb0d09075359cb45e7be7e8a45df (mode 644) --- /dev/null +++ regress/gotwebd/action_diff.html @@ -0,0 +1,32 @@ +Content-Security-Policy: default-src 'self'; script-src 'none'; object-src 'none'; +Content-Type: text/html + +Gotweb

Commit Diff


commit - /dev/null
+commit + ${COMMIT_ID}
+blob - /dev/null
+blob + ${BLOB_ALPHA} (mode 644)
+--- /dev/null
++++ alpha
+@@ -0,0 +1 @@
++alpha
+blob - /dev/null
+blob + ${BLOB_BETA} (mode 644)
+--- /dev/null
++++ beta
+@@ -0,0 +1 @@
++beta
+blob - /dev/null
+blob + ${BLOB_ZETA} (mode 644)
+--- /dev/null
++++ epsilon/zeta
+@@ -0,0 +1 @@
++zeta
+blob - /dev/null
+blob + ${BLOB_DELTA} (mode 644)
+--- /dev/null
++++ gamma/delta
+@@ -0,0 +1 @@
++delta
+
blob - fdbff948c1319e3534e33a3f99dbae99781322d5 blob + 080047236e919fece5c548e434530b5fa29891fe --- regress/gotwebd/test_gotwebd.sh +++ regress/gotwebd/test_gotwebd.sh @@ -41,9 +41,9 @@ test_gotwebd_action_index() test_done "$testroot" "" "$ret" } -test_gotwebd_action_commit() +test_gotwebd_action_diff() { - local testroot=$(test_init gotwebd_action_commit 1) + local testroot=$(test_init gotwebd_action_diff 1) local repo="${GOTWEBD_TEST_CHROOT}/got/public/repo.git" local id=$(git_show_head $repo) local author_time=$(git_show_author_time $repo) @@ -58,7 +58,7 @@ test_gotwebd_action_commit() COMMITTER_EMAIL="flan_hacker@openbsd.org" \ COMMIT_YMDHMS=$(date -u -r $author_time +"%FT%TZ") \ COMMIT_DATE=$(date -u -r $author_time +"%a %b %e %X %Y") \ - interpolate action_commit.html > $testroot/content.expected + interpolate action_diff.html > $testroot/content.expected $GOTWEBD_TEST_FCGI -q "$qs" > $testroot/content @@ -161,7 +161,7 @@ test_gotwebd_action_patch() test_parseargs "$@" run_test test_gotwebd_action_index -run_test test_gotwebd_action_commit +run_test test_gotwebd_action_diff run_test test_gotwebd_action_blame run_test test_gotwebd_action_tree run_test test_gotwebd_action_patch