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
a3ce2b97
Commit
a3ce2b97
authored
Aug 06, 2011
by
Markus Kauppila
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed 'make distclean'
parent
116f983b
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
23 additions
and
10 deletions
+23
-10
Makefile.am
test/test-automation/Makefile.am
+5
-4
distclean.sh
test/test-automation/build-scripts/distclean.sh
+17
-0
install-runner.sh
test/test-automation/build-scripts/install-runner.sh
+0
-2
install-tests.sh
test/test-automation/build-scripts/install-tests.sh
+0
-3
runner.c
test/test-automation/src/runner/runner.c
+1
-1
No files found.
test/test-automation/Makefile.am
View file @
a3ce2b97
ACLOCAL_AMFLAGS
=
-I
acinclude
-I
build-scripts
ACLOCAL_AMFLAGS
=
-I
acinclude
-I
build-scripts
SUBDIRS
=
src/libtest src/runner
\
SUBDIRS
=
src/libtest
\
src/runner
\
tests/testdummy
\
tests/testdummy
\
tests/testrect
\
tests/testrect
\
tests/testplatform
\
tests/testplatform
\
...
@@ -16,6 +17,6 @@ install-runner:
...
@@ -16,6 +17,6 @@ install-runner:
install-tests
:
install-tests
:
$(SHELL)
build-scripts/install-tests.sh
$(SHELL)
build-scripts/install-tests.sh
clean
:
distclean-local
:
clean-local
:
$(SHELL)
build-scripts/distclean.sh
echo
"clean-local is obsolete"
test/test-automation/build-scripts/distclean.sh
0 → 100755
View file @
a3ce2b97
#! /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
test/test-automation/build-scripts/install-runner.sh
View file @
a3ce2b97
#! /bin/bash
#! /bin/bash
#echo "Installing test suites to $DIRECTORY"
cp
src/runner/.libs/runner
.
cp
src/runner/.libs/runner
.
chmod
u+x runner
chmod
u+x runner
...
...
test/test-automation/build-scripts/install-tests.sh
View file @
a3ce2b97
...
@@ -5,7 +5,6 @@ EXT="error"
...
@@ -5,7 +5,6 @@ EXT="error"
#echo "Installing test suites to $DIRECTORY"
#echo "Installing test suites to $DIRECTORY"
#rm -Rfv $DIRECTORY/ > /dev/null 2>&1
mkdir
$DIRECTORY
>
/dev/null 2>&1
mkdir
$DIRECTORY
>
/dev/null 2>&1
PLATFORM
=
"
$(
uname
)
"
PLATFORM
=
"
$(
uname
)
"
...
@@ -21,6 +20,4 @@ do
...
@@ -21,6 +20,4 @@ do
cp
-f
"
$DIRECTORY
/
$suite
/.libs/lib
$suite
.
$EXT
"
$DIRECTORY
cp
-f
"
$DIRECTORY
/
$suite
/.libs/lib
$suite
.
$EXT
"
$DIRECTORY
done
done
#sudo cp .libs/libtest.0.dylib /usr/local/lib/libtest.0.dylib
echo
"Test suites installed."
echo
"Test suites installed."
test/test-automation/src/runner/runner.c
View file @
a3ce2b97
...
@@ -233,7 +233,7 @@ ScanForTestSuites(char *directoryName, char *extension)
...
@@ -233,7 +233,7 @@ ScanForTestSuites(char *directoryName, char *extension)
}
}
while
(
entry
=
readdir
(
directory
))
{
while
(
entry
=
readdir
(
directory
))
{
// discards . and .. and hidden files starting with .
// discards . and .. and hidden files starting with
dot and directories etc
.
if
(
strlen
(
entry
->
d_name
)
>
2
&&
entry
->
d_name
[
0
]
!=
'.'
&&
entry
->
d_type
==
DT_REG
)
{
if
(
strlen
(
entry
->
d_name
)
>
2
&&
entry
->
d_name
[
0
]
!=
'.'
&&
entry
->
d_type
==
DT_REG
)
{
const
char
*
delimiters
=
"."
;
const
char
*
delimiters
=
"."
;
char
*
name
=
strtok
(
entry
->
d_name
,
delimiters
);
char
*
name
=
strtok
(
entry
->
d_name
,
delimiters
);
...
...
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