7070206 207
7171test-testd = 1.23456
7272~% " )
73+ (when (not (and (memq :word-size=32 *features* ) (memq :arm *features* )))
7374 (format t " exec in eus~% " )
7475 (format t " test-testd = ~A~% "
7576 (setq ret (test-testd 100 101 102
@@ -81,6 +82,7 @@ test-testd = 1.23456
8182 (assert (eps= 1.23456 ret))
8283
8384 ; ;
85+ (check-func ' test-testd)
8486 (setq f (piped-fork (format nil " eusg ~A /test/test-foreign.module_l '(progn (test-testd 100 101 102 103 104 105 1000.000000 1010.000000 1020.000000 1030.000000 1040.000000 1050.000000 1060.000000 1070.000000 2080.000000 2090.000000 206 207)(exit 0))'" *eusdir* )))
8587 (assert-read-line-string= f " 100 101 102" )
8688 (assert-read-line-string= f " 103 104 105" )
@@ -90,6 +92,26 @@ test-testd = 1.23456
9092 (assert-read-line-string= f " 206 207" )
9193 )
9294
95+ (format t " exec in eus~% " )
96+ (format t " test-testf = ~A~% "
97+ (setq ret (test-testf 100 101 102
98+ 103 104 105
99+ 1000.0 1010.0 1020.0 1030.0
100+ 1040.0 1050.0 1060.0 1070.0
101+ 2080.0 2090.0
102+ 206 207 )))
103+ (assert (eps= 1.23456 ret))
104+ ; ;
105+ (check-func ' test-testf)
106+ (setq f (piped-fork (format nil " eusg ~A /test/test-foreign.module_l '(progn (test-testf 100 101 102 103 104 105 1000.000000 1010.000000 1020.000000 1030.000000 1040.000000 1050.000000 1060.000000 1070.000000 2080.000000 2090.000000 206 207)(exit 0))'" *eusdir* )))
107+ (assert-read-line-string= f " 100 101 102" )
108+ (assert-read-line-string= f " 103 104 105" )
109+ (assert-read-line-string= f " 1000.000000 1010.000000 1020.000000 1030.000000" )
110+ (assert-read-line-string= f " 1040.000000 1050.000000 1060.000000 1070.000000" )
111+ (assert-read-line-string= f " 2080.000000 2090.000000" )
112+ (assert-read-line-string= f " 206 207" )
113+ )
114+
93115(deftest test-int-test
94116 (format t " ~%~% int-test~% " )
95117 (format t " expected result~% " )
@@ -205,6 +227,7 @@ test-testd = 1.23456
205227 (double3-test 1 0.1 0.2 0.3 0.4 )
206228
207229 ; ;
230+ (when (not (and (memq :word-size=32 *features* ) (memq :arm *features* )))
208231 (check-func ' double-test)
209232 (setq f (piped-fork (format nil " eusg ~A /test/test-foreign.module_l '(progn (double-test 1 0.1 0.2 0.3 0.4)(exit 0))'" *eusdir* )))
210233 (assert-read-line-eps= f 0.1 )
@@ -218,6 +241,7 @@ test-testd = 1.23456
218241 (assert-read-line-eps= f 0.3 )
219242 (assert-read-line-eps= f 0.4 )
220243 )
244+ )
221245
222246(deftest test-eusfloat-test
223247 (format t " ~%~% eusfloat-test~% " )
@@ -432,10 +456,12 @@ test-testd = 1.23456
432456 (format t " ~% ret-double(exec in eus)~% " )
433457 (format t " ret-double ~ 8,8 e~% " (ret-double 0.55555 133.0 ))
434458 ; ;
459+ (when (not (and (memq :word-size=32 *features* ) (memq :arm *features* )))
435460 (check-func ' ret-double)
436461 (assert-read-funcall= ' (ret-double 0.55555 133.0 ) (+ 0.55555 133.0 ))
437462 (assert (eps= (ret-double 0.55555 133.0 ) (+ 0.55555 133.0 )))
438463 )
464+ )
439465
440466(deftest test-return-eusfloat
441467 (format t " ~% return eusfloat test~% " )
0 commit comments