Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
osgeo4w: fix running of grass test
  • Loading branch information
jef-n committed Apr 17, 2015
1 parent cd3a120 commit 51a7317
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 6 deletions.
20 changes: 16 additions & 4 deletions ms-windows/osgeo4w/package-nightly.cmd
Expand Up @@ -198,11 +198,23 @@ cmake --build %BUILDDIR% --config %BUILDCONF%
if errorlevel 1 cmake --build %BUILDDIR% --config %BUILDCONF%
if errorlevel 1 (echo build failed twice & goto error)

if not exist ..\skiptests (
echo RUN_TESTS: %DATE% %TIME%
cmake --build %BUILDDIR% --target Nightly --config %BUILDCONF%
if errorlevel 1 echo TESTS WERE NOT SUCCESSFUL.
if exist ..\skiptests goto skiptests

echo RUN_TESTS: %DATE% %TIME%

set oldpath=%PATH%
for %%g IN (%GRASS_VERSIONS%) do (
set path=!path!;%OSGEO4W_ROOT%\apps\grass\grass-%%g\lib
set GISBASE=%OSGEO4W_ROOT%\apps\grass\grass-%%g
)
PATH %path%;%BUILDDIR%\output\plugins\%BUILDCONF%

cmake --build %BUILDDIR% --target RUN_TESTS --config %BUILDCONF%
if errorlevel 1 echo TESTS WERE NOT SUCCESSFUL.

PATH %oldpath%

:skiptests

if exist %PKGDIR% (
echo REMOVE: %DATE% %TIME%
Expand Down
4 changes: 2 additions & 2 deletions tests/src/providers/grass/testqgsgrassprovider.cpp
Expand Up @@ -45,8 +45,8 @@ class TestQgsGrassProvider: public QObject
private slots:
void initTestCase();// will be called before the first testfunction is executed.
void cleanupTestCase();// will be called after the last testfunction was executed.
void init() {};// will be called before each testfunction is executed.
void cleanup() {};// will be called after every testfunction.
void init() {} // will be called before each testfunction is executed.
void cleanup() {} // will be called after every testfunction.

void vectorLayers();
private:
Expand Down

0 comments on commit 51a7317

Please sign in to comment.