Skip to content

Commit

Permalink
Tests/EndToEndTests/UnitTests/run-boost-test-common: add and use
Browse files Browse the repository at this point in the history
  • Loading branch information
mahilleb-msft committed Sep 1, 2016
1 parent 148d871 commit 887a2b9
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 25 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ generate_build_info text eol=lf
run-test text eol=lf
run-test-common text eol=lf
run-timit-test-common text eol=lf
run-boost-test-common text eol=lf
make_binary_drop_linux text eol=lf

# Used from Unix / Cygwin 'md5sum -c', needs to have LF line endings:
Expand Down
7 changes: 2 additions & 5 deletions Tests/EndToEndTests/UnitTests/BrainScriptTests/run-test
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
#!/bin/bash

. $TEST_ROOT_DIR/run-test-common
. $TEST_DIR/../run-boost-test-common

if [ "$OS" == "Windows_NT" ]; then
TEST_BIN_DIR=$TEST_BIN_DIR/unittests
fi

$TEST_BIN_DIR/brainscripttests --report_level=detailed
boosttestrun brainscripttests
7 changes: 2 additions & 5 deletions Tests/EndToEndTests/UnitTests/EvalTests/run-test
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
#!/bin/bash

. $TEST_ROOT_DIR/run-test-common
. $TEST_DIR/../run-boost-test-common

if [ "$OS" == "Windows_NT" ]; then
TEST_BIN_DIR=$TEST_BIN_DIR/unittests
fi

$TEST_BIN_DIR/evaltests --report_level=detailed
boosttestrun evaltests
7 changes: 2 additions & 5 deletions Tests/EndToEndTests/UnitTests/MathTests/run-test
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
#!/bin/bash

. $TEST_ROOT_DIR/run-test-common
. $TEST_DIR/../run-boost-test-common

if [ "$OS" == "Windows_NT" ]; then
TEST_BIN_DIR=$TEST_BIN_DIR/unittests
fi

$TEST_BIN_DIR/mathtests --report_level=detailed
boosttestrun mathtests
7 changes: 2 additions & 5 deletions Tests/EndToEndTests/UnitTests/NetworkTests/run-test
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
#!/bin/bash

. $TEST_ROOT_DIR/run-test-common
. $TEST_DIR/../run-boost-test-common

if [ "$OS" == "Windows_NT" ]; then
TEST_BIN_DIR=$TEST_BIN_DIR/unittests
fi

$TEST_BIN_DIR/networktests --report_level=detailed
boosttestrun networktests
7 changes: 2 additions & 5 deletions Tests/EndToEndTests/UnitTests/ReaderTests/run-test
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
#!/bin/bash

. $TEST_ROOT_DIR/run-test-common
. $TEST_DIR/../run-boost-test-common

if [ "$OS" == "Windows_NT" ]; then
TEST_BIN_DIR=$TEST_BIN_DIR/unittests
fi

$TEST_BIN_DIR/readertests --report_level=detailed
boosttestrun readertests
10 changes: 10 additions & 0 deletions Tests/EndToEndTests/UnitTests/run-boost-test-common
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
boosttestrun()
{
name=$1
local testpath=$TEST_BIN_DIR
if [ "$OS" == "Windows_NT" ]; then
testpath+=/unittests
fi

$testpath/$name --report_level=detailed
}

0 comments on commit 887a2b9

Please sign in to comment.