bstinson / centos / t_functional

Forked from centos/t_functional 4 years ago
Clone

Blame tests/p_diffutils/40-sdiff-tests

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