You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
491 B

#!/bin/bash
# Author: Iain Douglas <centos@1n6.org.uk>
# Tests for sdiff
# Basic Tests
t_Log "Running $0 - sdiff tests"
sdiff -v &>/dev/null
t_CheckExitStatus $?
FILES=./tests/p_diffutils/files
# sdiff will take it's commands from a <file
echo "Testing sdiff interactive command"
sdiff -o /var/tmp/sdiff.out "$FILES"/lao "$FILES"/tzu <$FILES/sdiff_input >/dev/null && Exitfail
diff "$FILES"/sdiff_output /var/tmp/sdiff.out
t_CheckExitStatus $?
# Clean up
rm -f /var/tmp/sdiff.out