Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Fixed 'make install' errors by using a bash script.
Browse files Browse the repository at this point in the history
  • Loading branch information
mkauppila committed Jul 1, 2011
1 parent a721b17 commit 1c74695
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 7 deletions.
8 changes: 1 addition & 7 deletions test/test-automation/Makefile.am
Expand Up @@ -9,13 +9,7 @@ runner_LDFLAGS = `sdl-config --libs`

install: install-tests
install-tests:
-mkdir tests
-cp -f testdummy/.libs/*.dylib tests/ 2> /dev/null
-cp -f testdummy/.libs/*.so tests/ 2> /dev/null
-cp -f testrect/.libs/*.dylib tests/ 2> /dev/null
-cp -f testrect/.libs/*.so tests/ 2> /dev/null
-cp -f testplatform/.libs/*.dylib tests/ 2> /dev/null
-cp -f testplatform/.libs/*.so tests/ 2> /dev/null
$(SHELL) install-tests.sh

distclean-local:
-rm -Rf tests/ docs/
Expand Down
24 changes: 24 additions & 0 deletions test/test-automation/install-tests.sh
@@ -0,0 +1,24 @@
#! /bin/bash

DIRECTORY="tests"
EXT="error"

echo "Installing test suites to $DIRECTORY"

rm -Rfv $DIRECTORY 2&>1 /dev/null
mkdir $DIRECTORY 2&>1 /dev/null

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"
do
cp -f "$suite/.libs/lib$suite.$EXT" $DIRECTORY
done

echo "Test suited installed."

0 comments on commit 1c74695

Please sign in to comment.