My own elf programs.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

46 lines
1.0 KiB

#!/usr/bin/env bash
# This script will launch test_folder.sh for each exterminatests leaf folders
# $1: the flags to pass to test_folder.sh
# if $1 == -v then the VERBOSE flag will be set to 1
if [[ $1 == "-v" ]]; then
VERBOSE="-v"
if [[ $2 == "-*" ]]; then
FLAGS=$2
else
FLAGS=""
fi
elif [[ $1 == "-*" ]]; then
VERBOSE=""
FLAGS=$1
else
VERBOSE=""
FLAGS=""
FOLDERS=$1
fi
if [[ -z "$3" ]]; then
FOLDERS=$3
elif [[ "$FLAGS" == "" && "$2" != "" ]]; then
FOLDERS=$2
fi
if [[ $FOLDERS == "" ]]; then
FOLDERS=("exterminatests/bins/64" "exterminatests/bins/x86" "exterminatests/libs/64" "exterminatests/libs/x86" "exterminatests/objs/64" "exterminatests/objs/x86")
fi
# Get the list of folders to test
# Folders are sorted by name to ensure that the tests are run in the same order
# on all platforms
for FOLDER in "${FOLDERS[@]}"; do
echo "Running tests for $FOLDER"
if [ "$VERBOSE" == "-v" ]; then
./test_folder.sh "$FOLDER" "$FLAGS"
else
./test_folder.sh "$FOLDER" "$FLAGS" >/dev/null
cat "$FOLDER/logs/recap.log"
fi
done