Navigation Menu

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

Commit

Permalink
Fixed 'make distclean'
Browse files Browse the repository at this point in the history
  • Loading branch information
mkauppila committed Aug 6, 2011
1 parent da7d0fd commit 4828b2e
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 10 deletions.
9 changes: 5 additions & 4 deletions test/test-automation/Makefile.am
@@ -1,6 +1,7 @@
ACLOCAL_AMFLAGS = -I acinclude -I build-scripts

SUBDIRS = src/libtest src/runner \
SUBDIRS = src/libtest \
src/runner \
tests/testdummy \
tests/testrect \
tests/testplatform \
Expand All @@ -16,6 +17,6 @@ install-runner:
install-tests:
$(SHELL) build-scripts/install-tests.sh

clean:
clean-local:
echo "clean-local is obsolete"
distclean-local:
$(SHELL) build-scripts/distclean.sh

17 changes: 17 additions & 0 deletions test/test-automation/build-scripts/distclean.sh
@@ -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
2 changes: 0 additions & 2 deletions test/test-automation/build-scripts/install-runner.sh
@@ -1,7 +1,5 @@
#! /bin/bash

#echo "Installing test suites to $DIRECTORY"

cp src/runner/.libs/runner .
chmod u+x runner

Expand Down
3 changes: 0 additions & 3 deletions test/test-automation/build-scripts/install-tests.sh
Expand Up @@ -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)"
Expand All @@ -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."
2 changes: 1 addition & 1 deletion test/test-automation/src/runner/runner.c
Expand Up @@ -233,7 +233,7 @@ ScanForTestSuites(char *directoryName, char *extension)
}

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) {
const char *delimiters = ".";
char *name = strtok(entry->d_name, delimiters);
Expand Down

0 comments on commit 4828b2e

Please sign in to comment.