mirror of
https://github.com/KjellKod/g3log.git
synced 2025-01-19 00:46:03 +01:00
752d928a63
--HG-- rename : scripts/buildtravis.sh => scripts/buildAndRunTests.sh
31 lines
640 B
Bash
Executable File
31 lines
640 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -ev
|
|
|
|
unzip -o 3rdParty/gtest/gtest-1.7.0.zip -d 3rdParty/gtest
|
|
mkdir build_travis
|
|
cd build_travis
|
|
cmake -DCMAKE_CXX_COMPILER=g++ -DUSE_G3LOG_UNIT_TEST=ON ..
|
|
make -j
|
|
echo "Testing with g++"
|
|
./test_concept_sink
|
|
./test_configuration
|
|
./test_dynamic_loaded_shared_lib
|
|
./test_filechange
|
|
./test_io
|
|
./test_sink
|
|
|
|
|
|
echo "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n"
|
|
echo "Testing with Clang++"
|
|
make clean
|
|
rm -rf *Make* *make* *.so *3log*
|
|
cmake -DCMAKE_CXX_COMPILER=clang++ -DUSE_G3LOG_UNIT_TEST=ON ..
|
|
make -j
|
|
./test_concept_sink
|
|
./test_configuration
|
|
#./test_dynamic_loaded_shared_lib
|
|
./test_filechange
|
|
./test_io
|
|
./test_sink
|