source: icGREP/icgrep-devel/QA/lz4d/run_all @ 5423

Last change on this file since 5423 was 5423, checked in by cameron, 2 years ago

lz4d cmake entry and test case

  • Property svn:executable set to *
File size: 621 bytes
Line 
1#!/bin/bash
2#
3# Robert D. Cameron
4#
5# Usage: ./run_all test_program
6# Example ./run_all ../u8u16
7#
8test_dir=`echo "$0" | sed "s/[^\/]*$//"`
9
10test_program=$1
11input_directory=TestFiles
12output_directory=TestOutput
13
14
15[ -x "$output_directory.bak" ] && rm -rf $output_directory.bak
16[ -x "$output_directory" ] && mv $output_directory $output_directory.bak
17
18mkdir $output_directory
19
20for f in $input_directory/*
21do
22   tfile=`echo $f | sed "s/$input_directory\///"`
23   fbase=`echo $tfile | sed "s/.lz4//"`
24   $test_program $input_directory/$tfile $output_directory/$fbase
25done
26
27diff -q --exclude='.svn' ExpectedOutput TestOutput
28
Note: See TracBrowser for help on using the repository browser.