From 2cc8d204cb4bea6029a994ed13890bcaa266c2f4 Mon Sep 17 00:00:00 2001 From: fosslinux Date: Wed, 5 Feb 2020 19:55:38 +1100 Subject: [PATCH] Fix travis "testsuite" introduced in 4340e3c55b38af280823d8d9c5364919c47c61a8 --- .travis/test.answer | 21 +++++++-------------- .travis/test.expect | 5 ----- .travis/test.gophermap | 7 +++++++ .travis/test.sh | 9 +++++++++ 4 files changed, 23 insertions(+), 19 deletions(-) delete mode 100755 .travis/test.expect create mode 100644 .travis/test.gophermap diff --git a/.travis/test.answer b/.travis/test.answer index f002bea..1aeb337 100644 --- a/.travis/test.answer +++ b/.travis/test.answer @@ -1,15 +1,8 @@ -iWelcome to Gophernicus! TITLE null.host 1 -i _______ __ __ null.host 1 -i| __|.-----.-----.| |--.-----.----.-----.|__|.----.--.--.----- null.host 1 -i| | || _ | _ || | -__| _| || || __| | |__ -- null.host 1 -i|_______||_____| __||__|__|_____|__| |__|__||__||____|_____|_____ null.host 1 -i |__| null.host 1 -iIf you can see this, it means that the installation of Gophernicus null.host 1 -ion this system was successful. You may now add content to this null.host 1 -idirectory and replace this page. null.host 1 -i null.host 1 -iGeneric information: null.host 1 -i null.host 1 -iServer configuration: null.host 1 -i null.host 1 +iA null.host 1 +iLine null.host 1 +iRight null.host 1 +iHere null.host 1 +iFor null.host 1 +iTests null.host 1 +0file file localhost 70 . diff --git a/.travis/test.expect b/.travis/test.expect deleted file mode 100755 index b784299..0000000 --- a/.travis/test.expect +++ /dev/null @@ -1,5 +0,0 @@ -#!/usr/bin/expect -spawn "/usr/bin/gophernicus" -sleep 0.05 -expect "" -send "\n" diff --git a/.travis/test.gophermap b/.travis/test.gophermap new file mode 100644 index 0000000..9523c50 --- /dev/null +++ b/.travis/test.gophermap @@ -0,0 +1,7 @@ +A +Line +Right +Here +For +Tests +0file file localhost 70 diff --git a/.travis/test.sh b/.travis/test.sh index a89aad0..3e2ce74 100755 --- a/.travis/test.sh +++ b/.travis/test.sh @@ -1,5 +1,14 @@ #!/bin/bash +if uname | grep -q 'Darwin' ; then + # I do not have hardware to make this work on and am uninterested in + # making another testsuite for travis Macs at this time + exit 0 +fi + +sudo cp .travis/test.gophermap /var/gopher/gophermap +sudo chmod 644 /var/gopher/gophermap + echo -e "\n" | gophernicus -nf -nu -nv -nx -nf -nd > test.output if ! cmp .travis/test.answer test.output ; then exit 1