summaryrefslogtreecommitdiff
path: root/cgit/tests/t0113-cla.sh
diff options
context:
space:
mode:
Diffstat (limited to 'cgit/tests/t0113-cla.sh')
-rw-r--r--cgit/tests/t0113-cla.sh25
1 files changed, 25 insertions, 0 deletions
diff --git a/cgit/tests/t0113-cla.sh b/cgit/tests/t0113-cla.sh
new file mode 100644
index 0000000000..085e65ea9c
--- /dev/null
+++ b/cgit/tests/t0113-cla.sh
@@ -0,0 +1,25 @@
+#!/bin/sh
+
+test_description='Check top-level CLA page'
+. ./setup.sh
+
+test_expect_success 'index has cla tab' '
+ cgit_url "" >tmp &&
+ grep "p=cla" tmp &&
+ grep "Contributor License Agreement" tmp
+'
+
+test_expect_success 'generate top-level cla page' '
+ cgit_query "p=cla" >tmp
+'
+
+test_expect_success 'find cla content' '
+ grep "site contributor license agreement" tmp
+'
+
+test_expect_success 'repo cla renders top-level cla page' '
+ cgit_url "foo/cla" >tmp &&
+ grep "site contributor license agreement" tmp
+'
+
+test_done