Fixed 'make distclean'
This commit is contained in:
parent
116f983b85
commit
a3ce2b9778
5 changed files with 23 additions and 10 deletions
17
test/test-automation/build-scripts/distclean.sh
Executable file
17
test/test-automation/build-scripts/distclean.sh
Executable file
|
@ -0,0 +1,17 @@
|
|||
#! /bin/bash
|
||||
|
||||
DIRECTORY="tests"
|
||||
EXT="error"
|
||||
|
||||
PLATFORM="$(uname)"
|
||||
if [[ $PLATFORM == "Linux" ]]; then
|
||||
EXT="so"
|
||||
elif [[ $PLATFORM == "Darwin" ]]; then
|
||||
EXT="dylib"
|
||||
fi
|
||||
|
||||
echo "Debug: $DIRECTORY/*.$EXT"
|
||||
|
||||
rm -f $DIRECTORY/*.$EXT
|
||||
rm -f runner
|
||||
rm -f *.bmp
|
|
@ -1,7 +1,5 @@
|
|||
#! /bin/bash
|
||||
|
||||
#echo "Installing test suites to $DIRECTORY"
|
||||
|
||||
cp src/runner/.libs/runner .
|
||||
chmod u+x runner
|
||||
|
||||
|
|
|
@ -5,7 +5,6 @@ EXT="error"
|
|||
|
||||
#echo "Installing test suites to $DIRECTORY"
|
||||
|
||||
#rm -Rfv $DIRECTORY/ > /dev/null 2>&1
|
||||
mkdir $DIRECTORY > /dev/null 2>&1
|
||||
|
||||
PLATFORM="$(uname)"
|
||||
|
@ -21,6 +20,4 @@ do
|
|||
cp -f "$DIRECTORY/$suite/.libs/lib$suite.$EXT" $DIRECTORY
|
||||
done
|
||||
|
||||
#sudo cp .libs/libtest.0.dylib /usr/local/lib/libtest.0.dylib
|
||||
|
||||
echo "Test suites installed."
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue