-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from jeffhung/shunit2
Integrate shunit2.
- Loading branch information
Showing
5 changed files
with
79 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
language: minimal | ||
python: | ||
- "2.7" | ||
before_install: | ||
- python --version | ||
script: make test | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
|
||
.PHONY: all | ||
all: help | ||
|
||
.PHONY: help | ||
help: | ||
|
||
.PHONY: clean | ||
clean: | ||
rm -rf tmp.*; | ||
|
||
.PHONY: distclean | ||
distclean: clean | ||
rm -f shunit2 | ||
rm -rf shunit2-$(SHUNIT2_VERSION); | ||
rm -rf shunit2-$(SHUNIT2_VERSION).zip; | ||
|
||
.PHONY: test | ||
test: prepare-shunit2 | ||
./runtime_test.sh | ||
|
||
# --------------------------------------------------------------------------- | ||
|
||
SHUNIT2_VERSION = 2.1.7 | ||
SHUNIT2_URL = https://github.com/kward/shunit2/archive/v$(SHUNIT2_VERSION).zip | ||
|
||
.PHONY: prepare-shunit2 | ||
prepare-shunit2: shunit2 | ||
|
||
shunit2: shunit2-$(SHUNIT2_VERSION) | ||
ln -sf shunit2-$(SHUNIT2_VERSION) shunit2; | ||
|
||
shunit2-$(SHUNIT2_VERSION): shunit2-$(SHUNIT2_VERSION).zip | ||
unzip -q shunit2-$(SHUNIT2_VERSION).zip; | ||
|
||
shunit2-$(SHUNIT2_VERSION).zip: | ||
wget --content-disposition $(SHUNIT2_URL) # will download shunit2-$(SHUNIT2_VERSION).zip | ||
# tar -xf $(TOP_3RDPARTY_DIR)/shunit2-2.1.5.tgz; | ||
# ( cd shunit2-*; patch -p0 < $(TOP_3RDPARTY_DIR)/shunit2-xml.patch; ) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/bin/bash | ||
|
||
test_make_python_runtime() { | ||
workdir=`mktemp -d tmp.XXX`; | ||
cp ../python.make $workdir/ | ||
pushd $workdir | ||
|
||
make -f python.make python-runtime | ||
assertTrue "runtime folder not created" "[ -d runtime ]"; | ||
|
||
popd #$workdir | ||
rm -rf $workdir | ||
} | ||
|
||
|
||
# Load shUnit2. | ||
. ./shunit2/shunit2 | ||
|