test/test-automation/build-scripts/install-tests.sh
author Markus Kauppila <markus.kauppila@gmail.com>
Fri, 29 Jul 2011 19:52:16 +0300
changeset 5793 e4b84f743a7e
parent 5789 d2123992108f
child 5795 134c0f7ae826
permissions -rwxr-xr-x
Fixed type from usage info.

#! /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
for suite in "testdummy" "testplatform" "testrect" "testaudio" "testsurface"
do
	cp -f "$suite/.libs/lib$suite.$EXT" $DIRECTORY
done

sudo cp .libs/libtest.0.dylib /usr/local/lib/libtest.0.dylib

echo "Test suites installed."