25 lines
453 B
Bash
25 lines
453 B
Bash
|
#! /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."
|