summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorLukas Fleischer <lfleischer@archlinux.org>2017-04-23 14:56:07 +0200
committerLukas Fleischer <lfleischer@archlinux.org>2017-04-24 17:41:35 +0200
commitbb623fc545f0e0187cc9b32386c383b732bcc9ae (patch)
treea07d2fe5ff5fcddf32cc1c85de4d04bc6807b6f9 /test
parenta9ac385cb90d0251253a2a3925f72a71af52f97b (diff)
downloadaur-bb623fc545f0e0187cc9b32386c383b732bcc9ae.tar.gz
aur-bb623fc545f0e0187cc9b32386c383b732bcc9ae.tar.xz
Make references to Git commits clickable
Automatically detect Git commit identifiers, shorten them, and make them link to the cgit interface. Implements FS#43290. Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
Diffstat (limited to 'test')
-rw-r--r--test/setup.sh1
-rwxr-xr-xtest/t2600-rendercomment.sh1
2 files changed, 2 insertions, 0 deletions
diff --git a/test/setup.sh b/test/setup.sh
index f29695a6..efa1ab86 100644
--- a/test/setup.sh
+++ b/test/setup.sh
@@ -29,6 +29,7 @@ aur_location = https://aur.archlinux.org
aur_request_ml = aur-requests@archlinux.org
enable-maintenance = 0
maintenance-exceptions = 127.0.0.1
+commit_uri = https://aur.archlinux.org/cgit/aur.git/log/?h=%s&id=%s
[notifications]
notify-cmd = $NOTIFY
diff --git a/test/t2600-rendercomment.sh b/test/t2600-rendercomment.sh
index 50a5adb9..6db9467d 100755
--- a/test/t2600-rendercomment.sh
+++ b/test/t2600-rendercomment.sh
@@ -6,6 +6,7 @@ test_description='rendercomment tests'
test_expect_success 'Test comment rendering.' '
cat <<-EOD | sqlite3 aur.db &&
+ INSERT INTO PackageBases (ID, Name, PackagerUID, SubmittedTS, ModifiedTS, FlaggerComment) VALUES (1, "foobar", 1, 0, 0, "");
INSERT INTO PackageComments (ID, PackageBaseID, Comments, RenderedComment) VALUES (1, 1, "Hello world!
This is a comment.", "");
EOD