-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathtest.bat
More file actions
26 lines (20 loc) · 817 Bytes
/
test.bat
File metadata and controls
26 lines (20 loc) · 817 Bytes
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
call .\build.bat
docker volume create mitosisdetection-output
docker run --rm^
--memory=16g^
-v %~dp0\test\:/input/images/histopathology-roi-cropout/^
-v mitosisdetection-output:/output/^
mitosisdetection
docker run --rm^
-v mitosisdetection-output:/output/^
python:3.7-slim cat /output/mitotic-figures.json | python -m json.tool
docker run --rm^
-v mitosisdetection-output:/output/^
-v %~dp0\test\:/input/images/histopathology-roi-cropout/^
python:3.7-slim python -c "import json, sys; f1 = json.load(open('/output/mitotic-figures.json')); f2 = json.load(open('/input/images/histopathology-roi-cropout/expected_output.json')); sys.exit(f1 != f2);"
if %ERRORLEVEL% == 0 (
echo "Tests successfully passed..."
) else (
echo "Expected output was not found..."
)
docker volume rm mitosisdetection-output