itk_module_test()
set(IOScancoTests
  itkScancoImageIOTest.cxx
  itkScancoImageIOTest2.cxx
  itkScancoImageIOTest3.cxx
  )

CreateTestDriver(IOScanco  "${IOScanco-Test_LIBRARIES}" "${IOScancoTests}")

itk_add_test(NAME itkScancoImageIOISQConvertTest
  COMMAND IOScancoTestDriver
  --compare
      DATA{Baseline/C0004255.mha}
      ${ITK_TEST_OUTPUT_DIR}/C0004255.mha
    itkScancoImageIOTest
      DATA{Input/C0004255.ISQ}
      ${ITK_TEST_OUTPUT_DIR}/C0004255.mha
  )

itk_add_test(NAME itkScancoImageIOAIMConvertTest
  COMMAND IOScancoTestDriver
  --compare
      DATA{Baseline/AIMIOTestImage.mha}
      ${ITK_TEST_OUTPUT_DIR}/AIMIOTestImage.mha
    itkScancoImageIOTest
      DATA{Input/AIMIOTestImage.AIM}
      ${ITK_TEST_OUTPUT_DIR}/AIMIOTestImage.mha
  )

itk_add_test(NAME itkScancoImageIOISQHeaderCheckTest
  COMMAND IOScancoTestDriver
    itkScancoImageIOTest2
      DATA{Input/C0004255.ISQ}
      ${ITK_TEST_OUTPUT_DIR}/C0003665.isq
      1
  )

itk_add_test(NAME itkScancoImageIOAIMHeaderCheckTest
  COMMAND IOScancoTestDriver
    itkScancoImageIOTest3
      DATA{Input/AIMIOTestImage.AIM}
      ${ITK_TEST_OUTPUT_DIR}/AIMIOTestImage2.isq
      1
  )

itk_add_test(NAME itkScancoImageIOISQHeaderCheckTest2
  COMMAND IOScancoTestDriver
  --compare
      DATA{Baseline/C0004255.mha}
      ${ITK_TEST_OUTPUT_DIR}/C0004255Test2.mha
    itkScancoImageIOTest2
      DATA{Input/C0004255.ISQ}
      ${ITK_TEST_OUTPUT_DIR}/C0004255Test2.mha
  )
itk_add_test(NAME itkScancoImageIOISQHeaderWriteTest2
  COMMAND IOScancoTestDriver
  --compare
      DATA{Baseline/C0004255.mha}
      ${ITK_TEST_OUTPUT_DIR}/C0004255Test2.isq
    itkScancoImageIOTest2
      DATA{Input/C0004255.ISQ}
      ${ITK_TEST_OUTPUT_DIR}/C0004255Test2.isq
  )

itk_add_test(NAME itkScancoImageIOAIMHeaderCheckTest2
  COMMAND IOScancoTestDriver
  --compare
      DATA{Baseline/AIMIOTestImage.mha}
      ${ITK_TEST_OUTPUT_DIR}/AIMIOTestImageTest3.mha
    itkScancoImageIOTest3
      DATA{Input/AIMIOTestImage.AIM}
      ${ITK_TEST_OUTPUT_DIR}/AIMIOTestImageTest3.mha
  )
set_property(TEST itkScancoImageIOAIMHeaderCheckTest2 APPEND PROPERTY DEPENDS
  itkScancoImageIOAIMHeaderCheckTest)
