You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

main.c 2.5 kB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. /*****************************************************************************
  2. Copyright (c) 2011, Lab of Parallel Software and Computational Science,ICSAS
  3. All rights reserved.
  4. Redistribution and use in source and binary forms, with or without
  5. modification, are permitted provided that the following conditions are
  6. met:
  7. 1. Redistributions of source code must retain the above copyright
  8. notice, this list of conditions and the following disclaimer.
  9. 2. Redistributions in binary form must reproduce the above copyright
  10. notice, this list of conditions and the following disclaimer in
  11. the documentation and/or other materials provided with the
  12. distribution.
  13. 3. Neither the name of the ISCAS nor the names of its contributors may
  14. be used to endorse or promote products derived from this software
  15. without specific prior written permission.
  16. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
  17. AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  18. IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  19. ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
  20. LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  21. DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
  22. SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
  23. CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  24. OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
  25. USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  26. **********************************************************************************/
  27. #include <stdio.h>
  28. #include <string.h>
  29. #include "common_utest.h"
  30. #include <CUnit/Basic.h>
  31. CU_TestInfo test_level1[]={
  32. {"Testing drot when incx & incy == 0",test_drot_incx_0},
  33. CU_TEST_INFO_NULL,
  34. };
  35. CU_SuiteInfo suites[]={
  36. {"Level1 Test Suite", NULL,NULL,test_level1},
  37. CU_SUITE_INFO_NULL,
  38. };
  39. int main()
  40. {
  41. CU_ErrorCode error;
  42. if (CUE_SUCCESS != CU_initialize_registry())
  43. return CU_get_error();
  44. error=CU_register_suites(suites);
  45. if (error != CUE_SUCCESS) {
  46. perror(CU_get_error_msg());
  47. CU_cleanup_registry();
  48. return CU_get_error();
  49. }
  50. /* Run all tests using the CUnit Basic interface */
  51. CU_basic_set_mode(CU_BRM_VERBOSE);
  52. CU_basic_run_tests();
  53. CU_cleanup_registry();
  54. return CU_get_error();
  55. }

OpenBLAS is an optimized BLAS library based on GotoBLAS2 1.13 BSD version.