Added the test case for samax.
authorXianyi Zhang <xianyi@iscas.ac.cn>
Thu, 26 Apr 2012 08:17:17 +0000 (16:17 +0800)
committerXianyi Zhang <xianyi@iscas.ac.cn>
Thu, 26 Apr 2012 08:17:17 +0000 (16:17 +0800)
common_reference.h
utest/Makefile
utest/common_utest.h
utest/main.c

index 4cc4be4..be151e0 100644 (file)
@@ -63,5 +63,7 @@ double  _Complex BLASFUNC_REF(zdotc)  (blasint *, double  *, blasint *, double
 void BLASFUNC_REF(drotmg)(double *, double *, double *, double *, double *);
 
 double BLASFUNC_REF(dsdot)(blasint *, float *, blasint *, float *, blasint*);
+
+FLOATRET  BLASFUNC_REF(samax) (blasint *, float  *, blasint *);
                                                                                                   
 #endif
index ee9aa62..3d120f5 100644 (file)
@@ -11,7 +11,7 @@ CUNIT_LIB=$(CUNIT_DIR)/lib/libcunit.a
 
 CFLAGS+=-I$(CUNIT_DIR)/include
 
-OBJS=main.o test_rot.o test_swap.o test_axpy.o test_dotu.o test_rotmg.o test_dsdot.o
+OBJS=main.o test_rot.o test_swap.o test_axpy.o test_dotu.o test_rotmg.o test_dsdot.o test_amax.o
 
 all : run_test
 
index 1332ef6..e57ae05 100644 (file)
@@ -61,4 +61,6 @@ void test_drotmg(void);
 
 void test_dsdot_n_1(void);
 
+void test_samax(void);
+
 #endif
index 1357095..ece94dd 100644 (file)
@@ -58,6 +58,8 @@ CU_TestInfo test_level1[]={
        {"Testing drotmg",test_drotmg},
 
        {"Testing dsdot with n == 1",test_dsdot_n_1},
+
+       {"Testing samax", test_samax},
        CU_TEST_INFO_NULL,
 };