Added the unit testcase for dsdot.
authorXianyi Zhang <xianyi@iscas.ac.cn>
Thu, 12 May 2011 18:19:55 +0000 (02:19 +0800)
committerXianyi Zhang <xianyi@iscas.ac.cn>
Thu, 12 May 2011 18:19:55 +0000 (02:19 +0800)
common_reference.h
utest/Makefile
utest/common_utest.h
utest/main.c

index 04b11f8..4cc4be4 100644 (file)
@@ -60,4 +60,8 @@ float   _Complex BLASFUNC_REF(cdotc)  (blasint *, float  *, blasint *, float  *,
 double  _Complex BLASFUNC_REF(zdotu)  (blasint *, double  *, blasint *, double  *, blasint *);
 double  _Complex BLASFUNC_REF(zdotc)  (blasint *, double  *, blasint *, double  *, blasint *);
 
+void BLASFUNC_REF(drotmg)(double *, double *, double *, double *, double *);
+
+double BLASFUNC_REF(dsdot)(blasint *, float *, blasint *, float *, blasint*);
+                                                                                                  
 #endif
index 9339d42..e7c5f34 100644 (file)
@@ -5,7 +5,7 @@ include $(TOPDIR)/Makefile.system
 TARGET=openblas_utest
 CUNIT_LIB=/usr/local/lib/libcunit.a
 
-OBJS=main.o test_rot.o test_swap.o test_axpy.o test_dotu.o test_rotmg.o
+OBJS=main.o test_rot.o test_swap.o test_axpy.o test_dotu.o test_rotmg.o test_dsdot.o
 
 all : run_test
 
index f9a14d8..1332ef6 100644 (file)
@@ -59,4 +59,6 @@ void test_zdotu_offset_1(void);
 
 void test_drotmg(void);
 
+void test_dsdot_n_1(void);
+
 #endif
index 2ec9c7a..1357095 100644 (file)
@@ -56,6 +56,8 @@ CU_TestInfo test_level1[]={
        {"Testing zdotu with input x & y offset == 1",test_zdotu_offset_1},
 
        {"Testing drotmg",test_drotmg},
+
+       {"Testing dsdot with n == 1",test_dsdot_n_1},
        CU_TEST_INFO_NULL,
 };