Permalink
Browse files

make tests for strict

  • Loading branch information...
kuno
kuno committed Jul 29, 2012
1 parent d27b7b2 commit 9676ac70b7dd3c101c006e218b80392e03de4ec2
Showing with 8 additions and 6 deletions.
  1. +8 −6 test/test.sh
View
@@ -1,6 +1,7 @@
#!/usr/bin/env sh
TEST_DIR=$PWD
+BUILD_DIR=$TEST_DIR/../build
BUILD=$TEST_DIR/../build/default/geoip.node
if [ ! -e ../database/GeoIP.dat ] || [ ! -e ../database/GeoIPv6.dat ] || [ ! -e ../database/GeoLiteCity.dat ] || [ ! -e ../database/GeoLiteCityv6.dat ] || [ ! -e ../database/GeoIPOrg-111.dat ] || [ ! -e ../database/GeoIPASNum.dat ] || [ ! -e ../database/GeoIPRegion-515.dat ] || [ ! -e ../database/GeoIP-171_20040418.dat ]; then
@@ -9,12 +10,13 @@ if [ ! -e ../database/GeoIP.dat ] || [ ! -e ../database/GeoIPv6.dat ] || [ ! -
return 1
fi
-if [ ! -e $BUILD ]; then
- echo "Start to building..."
- cd $TEST_DIR/.. || return 1
- node-gyp clean configure build || return 1
- echo "Building is finished!"
-fi
+echo "Removal old build"
+rm -rf $BUILD_DIR || return 1
+
+echo "Start to building..."
+cd $TEST_DIR/.. || return 1
+node-gyp clean configure build || return 1
+echo "Building is finished!"
cd $TEST_DIR || return 1

0 comments on commit 9676ac7

Please sign in to comment.