add test framework and a basic test

This commit is contained in:
Johann150 2021-02-19 19:31:59 +01:00
parent be2d6f9f00
commit f6ba98aa24
No known key found for this signature in database
GPG key ID: 9EE6577A2A06F8F1
15 changed files with 359 additions and 0 deletions

12
tests/data/content/.meta Normal file
View file

@ -0,0 +1,12 @@
# test setting a mime type
index.gmi: text/gemini
# test globs and setting parameters
*.de.gmi: ;lang=de
# test double star globs
**/*.nl.gmi: ;lang=nl
# test setting multiple parameters
test.gmi: ;lang=en ;charset=us-ascii
# test setting data for nonexistent files
gone.txt: 52 This file is no longer available.
# test setting data for files in other directories
example.com/index.gmi: ;lang=en-US

View file

@ -0,0 +1,2 @@
This is example.com.
=> gemini://example.org

View file

@ -0,0 +1,2 @@
This is example.org.
=> gemini://example.com/

View file

@ -0,0 +1 @@
This is a test index file.

View file

View file

@ -0,0 +1,2 @@
This is a test in the root
Suppe

View file

@ -0,0 +1,2 @@
# test distributed configurations
index.gmi: 51 No index file for you.

View file

View file

View file