From fc8a7e30dd27360514ea145d19bcc6a5820a6e3f Mon Sep 17 00:00:00 2001 From: Cyril Bur Date: Wed, 11 Nov 2015 15:40:01 +1100 Subject: external/tests: Add ability to strip version string from result Signed-off-by: Cyril Bur Signed-off-by: Stewart Smith --- external/test/test.sh | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'external/test') diff --git a/external/test/test.sh b/external/test/test.sh index 5040633..cfea786 100755 --- a/external/test/test.sh +++ b/external/test/test.sh @@ -36,6 +36,12 @@ pass_test() { /bin/true; } +strip_version_from_result() { + VERSION=$(./make_version.sh $1) + sed -i "s/${VERSION}/VERSION/" $STDERR_OUT + sed -i "s/${VERSION}/VERSION/" $STDOUT_OUT +} + diff_with_result() { # Explicitly diff a file with an arbitary result file if [ "$#" -eq 1 ] ; then -- cgit v1.1