forked from girder/large_image
-
Notifications
You must be signed in to change notification settings - Fork 0
/
plugin.cmake
68 lines (61 loc) · 2.58 KB
/
plugin.cmake
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
###############################################################################
# Copyright Kitware Inc.
#
# Licensed under the Apache License, Version 2.0 ( the "License" );
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
###############################################################################
add_python_style_test(
python_static_analysis_large_image
"${CMAKE_CURRENT_LIST_DIR}/server"
)
add_python_style_test(
python_static_analysis_large_image_tests
"${CMAKE_CURRENT_LIST_DIR}/plugin_tests"
)
add_python_style_test(
python_static_analysis_large_image_scripts
"${CMAKE_CURRENT_LIST_DIR}/scripts"
)
add_eslint_test(
js_static_analysis_large_image_gruntfile
"${CMAKE_CURRENT_LIST_DIR}/Gruntfile.js"
ESLINT_CONFIG_FILE "${CMAKE_CURRENT_LIST_DIR}/.eslintrc"
)
add_eslint_test(
js_static_analysis_large_image_source
"${CMAKE_CURRENT_LIST_DIR}/web_client"
ESLINT_CONFIG_FILE "${CMAKE_CURRENT_LIST_DIR}/.eslintrc"
ESLINT_IGNORE_FILE "${CMAKE_CURRENT_LIST_DIR}/.eslintignore"
)
add_eslint_test(
js_static_analysis_large_image_tests
"${CMAKE_CURRENT_LIST_DIR}/plugin_tests/client"
ESLINT_CONFIG_FILE "${CMAKE_CURRENT_LIST_DIR}/plugin_tests/client/.eslintrc"
)
add_python_test(tiles PLUGIN large_image BIND_SERVER EXTERNAL_DATA
"plugins/large_image/sample_image.ptif"
"plugins/large_image/sample_svs_image.TCGA-DU-6399-01A-01-TS1.e8eb65de-d63e-42db-af6f-14fefbbdf7bd.svs"
)
set_property(TEST server_large_image.tiles APPEND PROPERTY ENVIRONMENT
"LARGE_IMAGE_DATA=${PROJECT_BINARY_DIR}/data/plugins/large_image")
add_python_test(import PLUGIN large_image)
add_python_test(girderless PLUGIN large_image BIND_SERVER EXTERNAL_DATA
"plugins/large_image/sample_image.ptif"
"plugins/large_image/sample_svs_image.TCGA-DU-6399-01A-01-TS1.e8eb65de-d63e-42db-af6f-14fefbbdf7bd.svs"
)
set_property(TEST server_large_image.girderless APPEND PROPERTY ENVIRONMENT
"LARGE_IMAGE_DATA=${PROJECT_BINARY_DIR}/data/plugins/large_image")
add_web_client_test(
large_image
"${CMAKE_CURRENT_LIST_DIR}/plugin_tests/largeImageSpec.js"
PLUGIN large_image)
add_web_client_test(annotation "${CMAKE_CURRENT_LIST_DIR}/plugin_tests/client/annotation.js" PLUGIN large_image)