Agunua is a Python library for the development of Gemini clients, by Stephane Bortzmeyer - stephane+frama@bortzmeyer.org https://framagit.org/bortzmeyer
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

158 lines
3.6 KiB

# This file is for testing command-line clients only. For the tests of
# the library, see the directory tests/.
# Run these tests from test_exe_matrix (reference Web site is
# <https://framagit.org/feth/test_exe_matrix>) with 'test_exe_matrix
# cli-tests.yaml'. You can install the test framework with 'pip3
# install test_exe_matrix'.
---
config:
timeout: 10
tests:
- exe: './agunua-cli'
args:
- '--help'
retcode: 0
partstderr: 'Usage:'
- exe: './agunua-cli'
args:
- '--version'
retcode: 0
stderr: ''
- exe: './agunua-cli'
args:
- '--zzz'
retcode: 1
partstderr: 'not recognized'
- exe: './agunua-cli'
args:
- 'gemini://gemini.bortzmeyer.org/'
retcode: 0
partstdout: 'Stéphane Bortzmeyer''s Gemini server'
- exe: './agunua-cli'
args:
- '--verbose'
- '--secure'
- 'gemini://gemini.bortzmeyer.org/'
retcode: 0
partstdout: 'Stéphane Bortzmeyer''s Gemini server'
- exe: './agunua-cli'
args:
- '--display-links'
- 'gemini://gemini.bortzmeyer.org/'
retcode: 0
partstdout: 'gemini://gemeaux.bortzmeyer.org/'
- exe: './agunua-cli'
args:
- '--insecure'
- 'gemini.circumlunar.space'
retcode: 0
stderr: ''
# Currently (2021-04-16) has a certificate not signed by a known CA
- exe: './agunua-cli'
args:
- '--secure'
- 'gemini.circumlunar.space'
retcode: 1
partstderr: 'certificate'
# Now insecure by default (see issue #36)
- exe: './agunua-cli'
args:
- 'gemini.circumlunar.space'
retcode: 0
stderr: ''
# Currently (2021-04-16) has an expired certificate
- exe: './agunua-cli'
args:
- '--insecure'
- 'chaosadmins.de'
retcode: 1
partstderr: 'expired'
- exe: './agunua-cli'
args:
- '--insecure'
- '--accept-expired-certificate'
- 'chaosadmins.de'
retcode: 0
- exe: './agunua-cli'
args:
- 'gemini://193.70.85.11/'
retcode: 1
partsderr: 'Proxy request refused'
# purexo.mom
- exe: './agunua-cli'
args:
- 'gemini://89.47.164.70/'
retcode: 0
partstdout: 'Le Petit Monde de Purexo'
- exe: './agunua-cli'
args:
- 'gemini://[2a02:7b40:592f:a446::1]/'
retcode: 0
partstdout: 'Le Petit Monde de Purexo'
- exe: './agunua-cli'
args:
- 'gemini://[2001:41d0:302:2200::180]/'
retcode: 1
partsderr: 'Proxy request refused'
- exe: './agunua-cli'
args:
- 'gemini://gemini.doesnotexist.example/'
retcode: 1
partstderr: 'not known or invalid'
- exe: './geminitrack'
args:
- '--help'
retcode: 0
partstderr: 'Usage:'
- exe: './geminitrack'
args:
- '--zzz'
retcode: 1
partstderr: 'not recognized'
- exe: './geminitrack'
args:
- '--maximum-files'
- '2'
- 'gemini://gemini.bortzmeyer.org/'
retcode: 0
stdout: ''
partstderr: 'maximum number of'
# Many files
- exe: './geminitrack'
timeout: 75
args:
- '--maximum-time'
- '70'
- '--gempub'
- 'gemini://gemini.bortzmeyer.org/'
retcode: 0
stdout: ''
- exe: './geminitrack'
args:
- 'gemini://gemini.doesnotexist.example/'
retcode: 1
stdout: ''
partstderr: 'not known or invalid'