mirror of
https://github.com/ttroy50/cmake-examples.git
synced 2025-12-18 12:14:36 +03:00
fix travis tests
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
# Ubuntu supports multiple versions of clang to be installed at the same time.
|
# Ubuntu supports multiple versions of clang to be installed at the same time.
|
||||||
# The tests need to determin the clang binary before calling cmake
|
# The tests need to determin the clang binary before calling cmake
|
||||||
clang_bin=`which clang`
|
clang_bin=`which clang`
|
||||||
clang_xx_bin="clang++"
|
clang_xx_bin="which clang++"
|
||||||
|
|
||||||
if [ -z $clang_bin ]; then
|
if [ -z $clang_bin ]; then
|
||||||
clang_ver=`dpkg --get-selections | grep clang | grep -v -m1 libclang | cut -f1 | cut -d '-' -f2`
|
clang_ver=`dpkg --get-selections | grep clang | grep -v -m1 libclang | cut -f1 | cut -d '-' -f2`
|
||||||
|
|||||||
2
test.sh
2
test.sh
@@ -42,7 +42,7 @@ do
|
|||||||
|
|
||||||
if [ -f "$dir/run_test.sh" ]; then
|
if [ -f "$dir/run_test.sh" ]; then
|
||||||
echo "running run_test"
|
echo "running run_test"
|
||||||
$ROOT_DIR/$dir/run_test.sh
|
cd $dir && $ROOT_DIR/$dir/run_test.sh
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
echo "Error running run_test for $dir"
|
echo "Error running run_test for $dir"
|
||||||
exit 1
|
exit 1
|
||||||
|
|||||||
Reference in New Issue
Block a user