Skip to content

Commit

Permalink
Added the option to specify file to append test output
Browse files Browse the repository at this point in the history
  • Loading branch information
zpzim committed Jul 23, 2019
1 parent 9f44602 commit b6d1856
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Expand Up @@ -141,7 +141,7 @@ jobs:
- cmake -D CMAKE_CXX_COMPILER=clang++ ..
- make -j4
- cd ../test
- ./run_tests.sh ../build/SCAMP "--no_gpu=true --num_cpu_workers=2"
- ./run_tests.sh ../build/SCAMP /dev/null "--no_gpu=true --num_cpu_workers=2"

- stage: "Integration Tests"
name: "Distributed Integration tests"
Expand All @@ -168,7 +168,7 @@ jobs:
- ./kubernetes/SCAMPclient &
- sleep 10
- cd ../test
- ./run_tests.sh ../build/kubernetes/SCAMP_distributed
- ./run_tests.sh ../build/kubernetes/SCAMP_distributed /dev/null

notifications:
email:
Expand Down
15 changes: 8 additions & 7 deletions test/run_tests.sh
Expand Up @@ -2,7 +2,8 @@


EXECUTABLE=$1
extra_opts=$2
OUTFILE=$2
extra_opts=$3

ROOT_DIR_INPUT=SampleInput
ROOT_DIR_OUTPUT=SampleOutput
Expand All @@ -29,7 +30,7 @@ do
if [ $tile_sz -lt $(($count * 2)) ]; then
cmd="$EXECUTABLE --window=$j --max_tile_size=$tile_sz $extra_opts --input_a_file_name=$INPUT_FILE"
echo "Running Test: $cmd"
$cmd
$cmd >> $OUTFILE
X=`diff --suppress-common-lines --speed-large-files -y $COMPARE_MPI mp_columns_out_index | grep '^' | wc -l`
echo "$X matrix profile index differences"
if [ $X -gt $(($count / 100)) ] ; then
Expand Down Expand Up @@ -59,7 +60,7 @@ do
if [ $tile_sz -lt $(($count * 2)) ]; then
cmd="$EXECUTABLE --aligned --window=$j --max_tile_size=$tile_sz $extra_opts --input_a_file_name=$INPUT_FILE --input_b_file_name=$INPUT_FILE"
echo "Running Test: $cmd"
$cmd > /dev/null
$cmd >> $OUTFILE
X=`diff --suppress-common-lines --speed-large-files -y $COMPARE_MPI mp_columns_out_index | grep '^' | wc -l`
echo "$X matrix profile index differences"
if [ $X -gt $(($count / 100)) ] ; then
Expand Down Expand Up @@ -92,7 +93,7 @@ do
if [ $tile_sz -lt $(($count * 2)) ]; then
cmd="$EXECUTABLE --max_tile_size=$tile_sz --input_b_file_name=$INPUT_FILE_B $extra_opts --window=$k --input_a_file_name=$INPUT_FILE_A"
echo "Running Test: $cmd"
$cmd > /dev/null
$cmd >> $OUTFILE
X=`diff --suppress-common-lines --speed-large-files -y $COMPARE_MPI mp_columns_out_index | grep '^' | wc -l`
echo "$X matrix profile index differences"
if [ $X -gt $(($count / 100)) ] ; then
Expand All @@ -118,7 +119,7 @@ do
if [ $tile_sz -lt $(($count * 2)) ]; then
cmd="$EXECUTABLE --max_tile_size=$tile_sz --input_b_file_name=$INPUT_FILE_A $extra_opts --window=$k --input_a_file_name=$INPUT_FILE_B"
echo "Running Test: $cmd"
$cmd > /dev/null
$cmd >> $OUTFILE
X=`diff --suppress-common-lines --speed-large-files -y $COMPARE_MPI mp_columns_out_index | grep '^' | wc -l`
echo "$X matrix profile index differences"
if [ $X -gt $(($count / 100)) ] ; then
Expand Down Expand Up @@ -146,7 +147,7 @@ do
if [ $tile_sz -lt $(($count * 2)) ]; then
cmd="$EXECUTABLE --max_tile_size=$tile_sz --input_b_file_name=$INPUT_FILE_A --keep_rows=true --global_row=9000000000 --global_col=100000 $extra_opts --window=$k --input_a_file_name=$INPUT_FILE_B"
echo "Running Test: $cmd"
$cmd > /dev/null
$cmd >> $OUTFILE
echo "Checking AB result"
X=`diff --suppress-common-lines --speed-large-files -y $COMPARE_MPI mp_columns_out_index | grep '^' | wc -l`
echo "$X matrix profile index differences"
Expand Down Expand Up @@ -174,7 +175,7 @@ do

cmd="$EXECUTABLE --max_tile_size=$tile_sz --input_b_file_name=$INPUT_FILE_B --keep_rows=true --global_row=9000000000 --global_col=100000 $extra_opts --window=$k --input_a_file_name=$INPUT_FILE_A"
echo "Running Test: $cmd"
$cmd > /dev/null
$cmd >> $OUTFILE
echo "Checking AB result"
X=`diff --suppress-common-lines --speed-large-files -y $COMPARE_MPIB mp_columns_out_index | grep '^' | wc -l`
echo "$X matrix profile index differences"
Expand Down

0 comments on commit b6d1856

Please sign in to comment.