Test all file name cases, also lint man page

This commit is contained in:
Aaron Bieber 2020-02-09 09:24:08 -07:00
parent bfc313ab75
commit aac4ac6778
4 changed files with 13 additions and 1 deletions

View File

@ -8,4 +8,4 @@ sources:
tasks:
- test_ogvt: |
cd ogvt
go build && ./ogvt -file test/uptime.txt -sig test/uptime.txt.asc -pub test/adent.pub
./run_test.sh

12
run_test.sh Executable file
View File

@ -0,0 +1,12 @@
#!/bin/sh
set -e
mandoc -T lint ./ogvt.1
go build
echo "Testing detached armor: asc"
./ogvt -file test/uptime.txt -sig test/uptime.txt.asc -pub test/adent.pub
echo "Testing detached non-armor: gpg"
./ogvt -file test/uptime.txt -sig test/uptime.txt.gpg -pub test/adent.pub
echo "Testing detached non-armor: sig"
./ogvt -file test/uptime.txt -sig test/uptime.txt.sig -pub test/adent.pub

BIN
test/uptime.txt.gpg Normal file

Binary file not shown.

BIN
test/uptime.txt.sig Normal file

Binary file not shown.