Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libSDL
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PocketInsanity
libSDL
Commits
46b8ef7d
Commit
46b8ef7d
authored
Jul 01, 2011
by
Markus Kauppila
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed 'make install' errors by using a bash script.
parent
84915157
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
7 deletions
+25
-7
Makefile.am
test/test-automation/Makefile.am
+1
-7
install-tests.sh
test/test-automation/install-tests.sh
+24
-0
No files found.
test/test-automation/Makefile.am
View file @
46b8ef7d
...
@@ -9,13 +9,7 @@ runner_LDFLAGS = `sdl-config --libs`
...
@@ -9,13 +9,7 @@ runner_LDFLAGS = `sdl-config --libs`
install
:
install-tests
install
:
install-tests
install-tests
:
install-tests
:
-
mkdir
tests
$(SHELL)
install-tests.sh
-
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
distclean-local
:
distclean-local
:
-
rm
-Rf
tests/ docs/
-
rm
-Rf
tests/ docs/
...
...
test/test-automation/install-tests.sh
0 → 100755
View file @
46b8ef7d
#! /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."
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment