Commit 2c2d7876 by Thomas Zander Committed by Christian Kern

Generalise unix tests to unixlike operating systems

- Rename run_tests_linux.sh to run_tests_unix.sh
- Use /bin/sh instead of bash
parent 03bd6a4b
...@@ -98,7 +98,7 @@ if (DEFINED CYGWIN) ...@@ -98,7 +98,7 @@ if (DEFINED CYGWIN)
set(test_script_in run_tests_cygwin.sh) set(test_script_in run_tests_cygwin.sh)
set(test_script_out run_tests.sh) set(test_script_out run_tests.sh)
elseif (DEFINED UNIX) 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) set(test_script_out run_tests.sh)
else() else()
set(test_script_in run_tests_windows.bat) set(test_script_in run_tests_windows.bat)
......
#!/usr/bin/env bash #!/bin/sh
# Copyright (c) 2014, Siemens AG. All rights reserved. # Copyright (c) 2014, Siemens AG. All rights reserved.
# #
# Redistribution and use in source and binary forms, with or without # Redistribution and use in source and binary forms, with or without
...@@ -26,17 +26,13 @@ ...@@ -26,17 +26,13 @@
# Needs to be located in the folder containing the tests!! # Needs to be located in the folder containing the tests!!
# Is copied automatically there when generating build files with cmake. # Is copied automatically there when generating build files with cmake.
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
"$DIR/embb_base_c_test" DIR=.
echo
"$DIR/embb_base_cpp_test" TESTS="embb_base_c_test embb_base_cpp_test embb_mtapi_c_test \
echo embb_mtapi_cpp_test embb_algorithms_cpp_test \
"$DIR/embb_mtapi_c_test" embb_containers_cpp_test embb_dataflow_cpp_test"
echo
"$DIR/embb_mtapi_cpp_test" for TEST in $TESTS; do
echo $DIR/$TEST;
"$DIR/embb_algorithms_cpp_test" done
echo
"$DIR/embb_containers_cpp_test"
echo
"$DIR/embb_dataflow_cpp_test"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment