Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update run_tests.sh to remove bash specific syntax #305

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/run_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ fi
# Check for active 'perf_event' component
PERF_EVENT_ACTIVE=$(utils/papi_component_avail | awk '/Active components:/{flag=1; next} flag' | grep -q "perf_event" && echo "true" || echo "false")

if [ "$PERF_EVENT_ACTIVE" == "true" ]; then
if [ "$PERF_EVENT_ACTIVE" = "true" ]; then
VTESTS=`find validation_tests/* -prune -perm -u+x -type f ! -name "*.[c|h]"`;
CTESTS=`find ctests/* -prune -perm -u+x -type f ! -name "*.[c|h]"`;
#CTESTS=`find ctests -maxdepth 1 -perm -u+x -type f`;
Expand Down Expand Up @@ -139,7 +139,7 @@ fi
export LIBPATH


if [ "$PERF_EVENT_ACTIVE" == "true" ]; then
if [ "$PERF_EVENT_ACTIVE" = "true" ]; then

echo ""
echo "Running Event Validation Tests";
Expand Down Expand Up @@ -255,7 +255,7 @@ do
printf "Running $i:\n";
printf "%-59s" ""
cmp=`echo $i | sed 's:components/::' | sed 's:/.*$::'`;
if [ x$cmp == xsde ]; then
if [ x$cmp = xsde ]; then
LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${PWD}/components/sde/sde_lib:${PWD}/components/sde/tests/lib $VALGRIND ./$i $TESTS_QUIET
else
$VALGRIND ./$i $TESTS_QUIET
Expand Down