From 59354d4042f0816caea529c714bafbdb336d0b17 Mon Sep 17 00:00:00 2001 From: Christian Kern Date: Fri, 27 Feb 2015 15:02:28 +0100 Subject: [PATCH] Changed the run_tests_cygwin script to on be dependent on /bin/sh instead of on being dependent on bash. Was already done before with run_tests_unix, just copied those changes. Other scripts will not be touched, as we decided to not adjust complicated scripts. --- scripts/run_tests_cygwin.sh | 33 ++++++++++++++++++--------------- 1 file changed, 18 insertions(+), 15 deletions(-) diff --git a/scripts/run_tests_cygwin.sh b/scripts/run_tests_cygwin.sh index 9196879..0746c2c 100755 --- a/scripts/run_tests_cygwin.sh +++ b/scripts/run_tests_cygwin.sh @@ -1,4 +1,4 @@ -#!/usr/bin/env bash +#!/bin/sh # Copyright (c) 2014-2015, Siemens AG. All rights reserved. # # Redistribution and use in source and binary forms, with or without @@ -26,17 +26,20 @@ # 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.exe" -echo -"$DIR/embb_base_cpp_test.exe" -echo -"$DIR/embb_mtapi_c_test.exe" -echo -"$DIR/embb_mtapi_cpp_test.exe" -echo -"$DIR/embb_algorithms_cpp_test.exe" -echo -"$DIR/embb_containers_cpp_test.exe" -echo -"$DIR/embb_dataflow_cpp_test.exe" + +SCRIPT_LOCATION="$0" + +# case we have symlinks... +while [ -h "$SCRIPT_LOCATION" ] ; do + SCRIPT_LOCATION=`readlink "$SCRIPT_LOCATION"` +done + +DIR=`dirname "$SCRIPT_LOCATION"` + +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".exe; +done -- libgit2 0.26.0