File tree Expand file tree Collapse file tree 2 files changed +18
-6
lines changed
tests/src/providers/grass Expand file tree Collapse file tree 2 files changed +18
-6
lines changed Original file line number Diff line number Diff line change @@ -198,11 +198,23 @@ cmake --build %BUILDDIR% --config %BUILDCONF%
198
198
if errorlevel 1 cmake --build %BUILDDIR% --config %BUILDCONF%
199
199
if errorlevel 1 (echo build failed twice & goto error)
200
200
201
- if not exist ..\skiptests (
202
- echo RUN_TESTS: %DATE% %TIME%
203
- cmake --build %BUILDDIR% --target Nightly --config %BUILDCONF%
204
- if errorlevel 1 echo TESTS WERE NOT SUCCESSFUL.
201
+ if exist ..\skiptests goto skiptests
202
+
203
+ echo RUN_TESTS: %DATE% %TIME%
204
+
205
+ set oldpath = %PATH%
206
+ for %%g IN (%GRASS_VERSIONS% ) do (
207
+ set path = !path! ;%OSGEO4W_ROOT% \apps\grass\grass-%%g \lib
208
+ set GISBASE = %OSGEO4W_ROOT% \apps\grass\grass-%%g
205
209
)
210
+ PATH %path% ;%BUILDDIR% \output\plugins\%BUILDCONF%
211
+
212
+ cmake --build %BUILDDIR% --target RUN_TESTS --config %BUILDCONF%
213
+ if errorlevel 1 echo TESTS WERE NOT SUCCESSFUL.
214
+
215
+ PATH %oldpath%
216
+
217
+ :skiptests
206
218
207
219
if exist %PKGDIR% (
208
220
echo REMOVE: %DATE% %TIME%
Original file line number Diff line number Diff line change @@ -45,8 +45,8 @@ class TestQgsGrassProvider: public QObject
45
45
private slots:
46
46
void initTestCase ();// will be called before the first testfunction is executed.
47
47
void cleanupTestCase ();// will be called after the last testfunction was executed.
48
- void init () {}; // will be called before each testfunction is executed.
49
- void cleanup () {}; // will be called after every testfunction.
48
+ void init () {} // will be called before each testfunction is executed.
49
+ void cleanup () {} // will be called after every testfunction.
50
50
51
51
void vectorLayers ();
52
52
private:
You can’t perform that action at this time.
0 commit comments