diff --git a/CMakeLists.txt b/CMakeLists.txt index b628161..8167262 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -98,7 +98,7 @@ if (DEFINED CYGWIN) set(test_script_in run_tests_cygwin.sh) set(test_script_out run_tests.sh) elseif (DEFINED UNIX) - set(test_script_in run_tests_linux.sh) + set(test_script_in run_tests_unix.sh) set(test_script_out run_tests.sh) else() set(test_script_in run_tests_windows.bat) diff --git a/scripts/run_tests_linux.sh b/scripts/run_tests_unix.sh similarity index 68% rename from scripts/run_tests_linux.sh rename to scripts/run_tests_unix.sh index 91db2be..136d1fd 100755 --- a/scripts/run_tests_linux.sh +++ b/scripts/run_tests_unix.sh @@ -1,4 +1,4 @@ -#!/usr/bin/env bash +#!/bin/sh # Copyright (c) 2014, Siemens AG. All rights reserved. # # Redistribution and use in source and binary forms, with or without @@ -26,17 +26,13 @@ # Needs to be located in the folder containing the tests!! # Is copied automatically there when generating build files with cmake. -DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" -"$DIR/embb_base_c_test" -echo -"$DIR/embb_base_cpp_test" -echo -"$DIR/embb_mtapi_c_test" -echo -"$DIR/embb_mtapi_cpp_test" -echo -"$DIR/embb_algorithms_cpp_test" -echo -"$DIR/embb_containers_cpp_test" -echo -"$DIR/embb_dataflow_cpp_test" + +DIR=. + +TESTS="embb_base_c_test embb_base_cpp_test embb_mtapi_c_test \ + embb_mtapi_cpp_test embb_algorithms_cpp_test \ + embb_containers_cpp_test embb_dataflow_cpp_test" + +for TEST in $TESTS; do + $DIR/$TEST; +done