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

Latest commit

 

History

History
executable file
·
24 lines (18 loc) · 453 Bytes

install-tests.sh

File metadata and controls

executable file
·
24 lines (18 loc) · 453 Bytes
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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."