Skip to content

Commit

Permalink
Restored bdist test-data
Browse files Browse the repository at this point in the history
  • Loading branch information
nicfit committed Dec 26, 2019
1 parent ea11686 commit 7a99111
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ CHANGELOG = HISTORY.rst
CHANGELOG_HEADER = v${VERSION} ($(shell date --iso-8601))$(if ${RELEASE_NAME}, : ${RELEASE_NAME},)
TEST_DATA = eyeD3-test-data
TEST_DATA_FILE = ${TEST_DATA}.tgz
TEST_DATA_DIR ?= $(shell pwd)/test/$(TEST_DATA)
TEST_DATA_DIR ?= $(shell pwd)/test

help:
@echo "test - run tests quickly with the default Python"
Expand Down Expand Up @@ -93,17 +93,20 @@ test-all:
tox -e coverage

test-data:
if [[ ! -d ${TEST_DATA_DIR} ]]; then \
git -C `dirname ${TEST_DATA_DIR}` clone https://github.com/nicfit/eyeD3-data.git ;\
fi
cd test && rm -f ./data && ln -s ${TEST_DATA_DIR} ./data
# Move these to eyed3.nicfit.net
test -f ${TEST_DATA_DIR}/${TEST_DATA_FILE} || \
wget --quiet "http://eyed3.nicfit.net/releases/${TEST_DATA_FILE}" \
-O ${TEST_DATA_DIR}/${TEST_DATA_FILE}
tar xzf ${TEST_DATA_DIR}/${TEST_DATA_FILE} -C ${TEST_DATA_DIR}
cd test && rm -f ./data && ln -s ${TEST_DATA_DIR}/${TEST_DATA} ./data

clean-test-data:
-rm test/data
-rm test/${TEST_DATA_FILE}

pkg-test-data:
tar czf ./build/${TEST_DATA_FILE} -C ./test ./eyeD3-test-data
test -d build || mkdir build
tar czf ./build/${TEST_DATA_FILE} -h -C ./test ./eyeD3-test-data

coverage:
tox -e coverage
Expand Down

0 comments on commit 7a99111

Please sign in to comment.