aboutsummaryrefslogtreecommitdiff
path: root/server/test/resources
diff options
context:
space:
mode:
authorJuan J. Martínez <jjm@usebox.net>2021-07-20 19:24:39 +0000
committerJuan J. Martinez <jjm@usebox.net>2021-07-22 19:49:53 +0100
commita13c87ea9b0fae2a38adead85cb97e6c5e31c6d8 (patch)
treee60a35310a2a9f120a5c3e769ea862e950d322f5 /server/test/resources
parentab4a5268bd2971a364bf026aede2cb50c885a03d (diff)
parentc760d7c9bd14d7e56ae1553a0b3c4a1258448686 (diff)
downloadspacebeans-a13c87ea9b0fae2a38adead85cb97e6c5e31c6d8.tar.gz
spacebeans-a13c87ea9b0fae2a38adead85cb97e6c5e31c6d8.zip
Merge branch 'cgi-suport-wip' into 'master'
CGI support See merge request reidrac/spacebeans!1
Diffstat (limited to 'server/test/resources')
-rwxr-xr-xserver/test/resources/dir/bad-cgi4
-rwxr-xr-xserver/test/resources/dir/bad-response3
-rwxr-xr-xserver/test/resources/dir/cgi4
-rwxr-xr-xserver/test/resources/dir/sub/cgi6
-rw-r--r--server/test/resources/dir/sub/empty0
5 files changed, 17 insertions, 0 deletions
diff --git a/server/test/resources/dir/bad-cgi b/server/test/resources/dir/bad-cgi
new file mode 100755
index 0000000..0ec31e2
--- /dev/null
+++ b/server/test/resources/dir/bad-cgi
@@ -0,0 +1,4 @@
+#!/bin/bash
+
+echo -e "20 text/gemini\r\n"
+exit 1
diff --git a/server/test/resources/dir/bad-response b/server/test/resources/dir/bad-response
new file mode 100755
index 0000000..c9bedb5
--- /dev/null
+++ b/server/test/resources/dir/bad-response
@@ -0,0 +1,3 @@
+#!/bin/bash
+
+echo "20 text/gemini"
diff --git a/server/test/resources/dir/cgi b/server/test/resources/dir/cgi
new file mode 100755
index 0000000..05a3e53
--- /dev/null
+++ b/server/test/resources/dir/cgi
@@ -0,0 +1,4 @@
+#!/bin/bash
+
+echo -e "20 text/gemini\r\n"
+env
diff --git a/server/test/resources/dir/sub/cgi b/server/test/resources/dir/sub/cgi
new file mode 100755
index 0000000..05ba716
--- /dev/null
+++ b/server/test/resources/dir/sub/cgi
@@ -0,0 +1,6 @@
+#!/bin/bash
+
+echo -e "20 text/gemini\r\n"
+echo "SHOULD NOT RUN"
+exit 1
+
diff --git a/server/test/resources/dir/sub/empty b/server/test/resources/dir/sub/empty
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/server/test/resources/dir/sub/empty