#!/bin/sh
#
# This is the sloppiest test suite in the history of software engineering. It
# has bad coverage, it's barely functional, filled with time-driven tests. It's
# mostly useful to test if the essential of the program are in place and
# working when porting to other environments.
#

set -e
# set -v

# Since we kinda need a minimum of terminal emulation for these to work, we
# skip them on Travis-CI.
if [ -n "$TRAVIS" ]; then
	echo "skipping functional tests on Travis"
	exit 0
fi

. ./bootstrap.sh

run_test test_initial_setup
run_test test_generate_default_count
run_test test_password_count_config
run_test test_password_count_cmdline
run_test test_profile_charset
run_test test_filter_standard_one_keyword
run_test test_filter_standard_two_keywords
run_test test_filter_regex_one_keyword
run_test test_filter_regex_two_keywords
run_test test_pager_timeout
run_test test_lock_retcode
run_test test_lock_output
run_test test_backup_file

print_summary

cleanup

#!/bin/sh
#
# This is the sloppiest test suite in the history of software engineering. It
# has bad coverage, it's barely functional, filled with time-driven tests. It's
# mostly useful to test if the essential of the program are in place and
# working when porting to other environments.
#

set -e
# set -v

# Since we kinda need a minimum of terminal emulation for these to work, we
# skip them on Travis-CI.
if [ -n "$TRAVIS" ]; then
	echo "skipping functional tests on Travis"
	exit 0
fi

. ./bootstrap.sh

run_test test_initial_setup
run_test test_help
run_test test_version
run_test test_generate_default_count
run_test test_password_count_config
run_test test_password_count_cmdline
run_test test_profile_charset
run_test test_filter_standard_one_keyword
run_test test_filter_standard_two_keywords
run_test test_filter_regex_one_keyword
run_test test_filter_regex_two_keywords
run_test test_pager_timeout
run_test test_lock_retcode
run_test test_lock_output
run_test test_backup_file

print_summary

cleanup

Add functional test for simple -h and -V.
Add functional test for simple -h and -V.
