Cleaned up the build system. 'make clean' now deletes the installed
test suites (this should prevent old tests lingering around) --HG-- rename : test/test-automation/install-tests.sh => test/test-automation/build-scripts/install-tests.sh
This commit is contained in:
parent
46b8ef7dad
commit
db5086bfea
6 changed files with 11 additions and 30 deletions
24
test/test-automation/build-scripts/install-tests.sh
Executable file
24
test/test-automation/build-scripts/install-tests.sh
Executable file
|
@ -0,0 +1,24 @@
|
|||
#! /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"
|
||||
do
|
||||
cp -f "$suite/.libs/lib$suite.$EXT" $DIRECTORY
|
||||
done
|
||||
|
||||
echo "Test suites installed."
|
Loading…
Add table
Add a link
Reference in a new issue