aboutsummaryrefslogtreecommitdiff
path: root/External/SPEC/CINT95/130.li/CMakeLists.txt
blob: 13437d6a0a1e0dd8437cbc68ec76491fca380a95 (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
# Work around usage of a reserved name (is* is reserved by the C standard and
# isnumber is posix function)
add_definitions(-Disnumber=my_isnumber)

macro(test_input run_type)
  llvm_test_run(RUN_TYPE ${run_type}
    WORKDIR ${CMAKE_CURRENT_BINARY_DIR}/data/${run_type}/input
    ${ARGN}
    > ${CMAKE_CURRENT_BINARY_DIR}/${run_type}.out
  )
  llvm_test_verify(RUN_TYPE ${run_type} WORKDIR ${CMAKE_CURRENT_BINARY_DIR}
    ${FPCMP} data/${run_type}/output/${run_type}.out ${run_type}.out
  )
endmacro()

test_input(test test.lsp)
test_input(train train.lsp)
test_input(ref au.lsp boyer.lsp browse.lsp ctak.lsp dderiv.lsp deriv.lsp
               destru0.lsp destru1.lsp destru2.lsp destrum0.lsp
               destrum1.lsp destrum2.lsp div2.lsp puzzle0.lsp puzzle1.lsp
               tak0.lsp tak1.lsp tak2.lsp takr.lsp triang.lsp xit.lsp)

llvm_test_executable(130.li ${Source})
llvm_test_data_spec_default(130.li)