aboutsummaryrefslogtreecommitdiff
path: root/External/SPEC/CFP2000/179.art/CMakeLists.txt
blob: 32163dfc4c9f5644c65125ea30d3449e26ff50c7 (plain)
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
macro(test_input run_type output)
  llvm_test_run(RUN_TYPE ${run_type} ${ARGN} > "${CMAKE_CURRENT_BINARY_DIR}/${output}")
  llvm_test_verify(RUN_TYPE ${run_type} ${FPCMP}
    -r 0.01
    "${BENCHMARK_DIR}/data/${run_type}/output/${output}"
    "${CMAKE_CURRENT_BINARY_DIR}/${output}"
  )
endmacro()

set(DATADIR ${BENCHMARK_DIR}/data)
test_input(test test.out
  WORKDIR ${DATADIR}/test/input
  -scanfile c756hel.in
  -trainfile1 a10.img
  -stride 2
  -startx 134
  -starty 220
  -endx 139
  -endy 225
  -objects 1
)
test_input(train train.out
  WORKDIR ${DATADIR}/train/input
  -scanfile c756hel.in
  -trainfile1 a10.img
  -stride 2
  -startx 134
  -starty 220
  -endx 184
  -endy 240
  -objects 3
)
test_input(ref ref.1.out
  WORKDIR ${DATADIR}/ref/input
  -scanfile c756hel.in
  -trainfile1 a10.img
  -trainfile2 hc.img
  -stride 2
  -startx 110
  -starty 200
  -endx 160
  -endy 240
  -objects 10
)
test_input(ref ref.2.out
  WORKDIR ${DATADIR}/ref/input
  -scanfile c756hel.in
  -trainfile1 a10.img
  -trainfile2 hc.img
  -stride 2
  -startx 470
  -starty 140
  -endx 520
  -endy 180
  -objects 10
)

llvm_test_executable(${PROG} ${Source})