2020-02-05 03:50:38 -05:00
|
|
|
#!/bin/bash
|
|
|
|
|
2020-02-05 03:55:38 -05:00
|
|
|
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
|
|
|
|
|
2020-02-05 03:50:38 -05:00
|
|
|
echo -e "\n" | gophernicus -nf -nu -nv -nx -nf -nd > test.output
|
|
|
|
if ! cmp .travis/test.answer test.output ; then
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
2021-01-02 20:39:23 -05:00
|
|
|
if ! gophernicus -v | grep -q 'Gophernicus/3.1.1 "Dungeon Edition"' ; then
|
2020-02-05 03:50:38 -05:00
|
|
|
exit 1
|
|
|
|
fi
|