#!/bin/bash

set -e

# Test 1: Does the help output have at least 3 lines?
LC=$(goobox -h | wc -l)

CV=$(($LC > 3))

if [ "$CV" == 0 ]; then
    exit 1
fi

# Test 2: Is the help output printed even on the console?
goobox -h > /dev/null

if [ $? != 0 ]; then
    exit 1
fi

exit 0
