SDL-mirror/test/test-automation/build-scripts/install-tests.sh

27 lines
547 B
Bash
Raw Normal View History

#! /bin/bash
DIRECTORY="tests"
EXT="error"
#echo "Installing test suites to $DIRECTORY"
rm -Rfv $DIRECTORY > /dev/null 2>&1
mkdir $DIRECTORY > /dev/null 2>&1
PLATFORM="$(uname)"
if [[ $PLATFORM == "Linux" ]]; then
EXT="so"
elif [[ $PLATFORM == "Darwin" ]]; then
EXT="dylib"
fi
# TODO: put the test in an array
2011-07-09 17:55:35 +03:00
for suite in "testdummy" "testplatform" "testrect" "testaudio" "testsurface"
do
cp -f "$suite/.libs/lib$suite.$EXT" $DIRECTORY
done
2011-07-31 20:01:34 +03:00
#sudo cp .libs/libtest.0.dylib /usr/local/lib/libtest.0.dylib
2011-07-28 21:35:47 +03:00
echo "Test suites installed."