2007-07-25 Jonathan Chambers <joncham@gmail.com>
[mono.git] / mono / tests / Makefile.am
1 SUBDIRS = cas
2
3 check-local: test
4
5 TEST_PROG = ../interpreter/mint
6 JITTEST_PROG = ../mini/mono
7
8 TEST_PROG_RUN = MONO_SHARED_DIR=$(mono_build_root)/runtime MONO_CFG_DIR=$(mono_build_root)/runtime/etc $(LIBTOOL) --mode=execute $(TEST_PROG)
9 JITTEST_PROG_RUN = MONO_SHARED_DIR=$(mono_build_root)/runtime MONO_CFG_DIR=$(mono_build_root)/runtime/etc $(LIBTOOL) --mode=execute $(JITTEST_PROG)
10
11 RUNTIME_ARGS=--config tests-config --optimize=all
12
13 with_mono_path = MONO_PATH=$(mcs_topdir)/class/lib/default
14 with_mono_path2 = MONO_PATH=$(mcs_topdir)/class/lib/net_2_0
15
16 RUNTIME = $(with_mono_path) $(top_builddir)/runtime/mono-wrapper
17 RUNTIME2 = $(with_mono_path2) $(top_builddir)/runtime/mono-wrapper
18
19 MKBUNDLE = \
20         PKG_CONFIG_PATH=$(top_builddir):$(PKG_CONFIG_PATH) \
21         $(RUNTIME) $(mcs_topdir)/class/lib/default/mkbundle.exe
22
23 MCS = $(RUNTIME) $(mcs_topdir)/class/lib/default/mcs.exe -unsafe -nowarn:0162 -nowarn:0168 -nowarn:0219
24 GMCS = $(RUNTIME2) $(mcs_topdir)/class/lib/net_2_0/gmcs.exe -unsafe -nowarn:0162 -nowarn:0168 -nowarn:0219
25 ILASM = $(RUNTIME) $(mcs_topdir)/class/lib/default/ilasm.exe
26 ILASM2 = $(RUNTIME2) $(mcs_topdir)/class/lib/net_2_0/ilasm.exe
27
28 BENCHSRC=fib.cs random.cs nested-loops.cs ackermann.cs tight-loop.cs sieve.cs
29
30 STRESS_TESTS_SRC=       \
31         abort-stress-1.cs       \
32         abort-stress-2.cs       \
33         abort-stress-3.cs       \
34         domain-stress.cs        \
35         gchandle-stress.cs      \
36         monitor-stress.cs       \
37         thread-stress.cs        \
38         gc-stress.cs
39
40 TEST_CS_SRC=                    \
41         array-init.cs           \
42         arraylist.cs            \
43         checked.cs              \
44         char-isnumber.cs        \
45         create-instance.cs      \
46         field-layout.cs         \
47         pack-layout.cs          \
48         pack-bug.cs             \
49         hash-table.cs           \
50         test-ops.cs             \
51         obj.cs                  \
52         test-dup-mp.cs          \
53         string.cs               \
54         stringbuilder.cs        \
55         switch.cs               \
56         outparm.cs              \
57         delegate.cs             \
58         bitconverter.cs         \
59         exception.cs            \
60         exception2.cs           \
61         exception3.cs           \
62         exception4.cs           \
63         exception5.cs           \
64         exception6.cs           \
65         exception7.cs           \
66         exception8.cs           \
67         exception10.cs          \
68         exception11.cs          \
69         exception12.cs          \
70         exception13.cs          \
71         exception14.cs          \
72         exception15.cs          \
73         exception16.cs          \
74         typeload-unaligned.cs   \
75         struct.cs               \
76         valuetype-gettype.cs    \
77         typeof-ptr.cs           \
78         static-constructor.cs   \
79         pinvoke.cs              \
80         pinvoke2.cs             \
81         pinvoke3.cs             \
82         pinvoke11.cs            \
83         pinvoke13.cs            \
84         pinvoke17.cs            \
85         invoke.cs               \
86         invoke2.cs              \
87         runtime-invoke.cs               \
88         invoke-string-ctors.cs          \
89         reinit.cs               \
90         box.cs                  \
91         array.cs                \
92         enum.cs                 \
93         enum2.cs                \
94         property.cs             \
95         enumcast.cs             \
96         assignable-tests.cs     \
97         array-cast.cs           \
98         array-subtype-attr.cs   \
99         cattr-compile.cs        \
100         cattr-field.cs          \
101         cattr-object.cs         \
102         custom-attr.cs          \
103         double-cast.cs          \
104         newobj-valuetype.cs     \
105         arraylist-clone.cs      \
106         setenv.cs               \
107         vtype.cs                \
108         isvaluetype.cs          \
109         iface6.cs               \
110         iface7.cs               \
111         ipaddress.cs            \
112         array-vt.cs             \
113         interface1.cs           \
114         reflection-enum.cs      \
115         reflection-prop.cs      \
116         reflection4.cs          \
117         reflection5.cs          \
118         reflection-const-field.cs \
119         many-locals.cs          \
120         string-compare.cs       \
121         test-prime.cs           \
122         params.cs               \
123         reflection.cs           \
124         interface.cs            \
125         iface.cs                \
126         iface2.cs               \
127         iface3.cs               \
128         iface4.cs               \
129         iface-large.cs          \
130         virtual-method.cs       \
131         intptrcast.cs           \
132         indexer.cs              \
133         stream.cs               \
134         console.cs              \
135         shift.cs                \
136         jit-int.cs              \
137         jit-uint.cs             \
138         jit-long.cs             \
139         long.cs                 \
140         jit-ulong.cs            \
141         jit-float.cs            \
142         pop.cs                  \
143         time.cs                 \
144         appdomain.cs        \
145         appdomain1.cs           \
146         appdomain2.cs           \
147         appdomain-client.cs     \
148         appdomain-unload.cs \
149         loader.cs       \
150         pointer.cs              \
151         hashcode.cs             \
152         delegate1.cs            \
153         delegate2.cs            \
154         delegate3.cs            \
155         delegate5.cs            \
156         delegate6.cs            \
157         delegate7.cs            \
158         delegate8.cs            \
159         remoting1.cs            \
160         remoting2.cs            \
161         remoting3.cs            \
162         remoting4.cs            \
163         remoting5.cs            \
164         nonvirt.cs              \
165         largeexp.cs             \
166         largeexp2.cs            \
167         marshalbyref1.cs        \
168         static-ctor.cs          \
169         inctest.cs              \
170         bound.cs                \
171         array-invoke.cs         \
172         test-arr.cs             \
173         decimal.cs              \
174         decimal-array.cs        \
175         marshal.cs              \
176         marshal1.cs             \
177         marshal2.cs             \
178         marshal3.cs             \
179         marshal5.cs             \
180         marshal6.cs             \
181         marshal7.cs             \
182         marshal8.cs             \
183         marshal9.cs             \
184         test-byval-in-struct.cs \
185         thread.cs               \
186         thread5.cs              \
187         thread6.cs              \
188         thread-static.cs        \
189         thread-static-init.cs   \
190         context-static.cs       \
191         float-pop.cs            \
192         interfacecast.cs        \
193         array3.cs               \
194         classinit.cs            \
195         classinit2.cs           \
196         synchronized.cs         \
197         async_read.cs           \
198         threadpool.cs           \
199         threadpool1.cs          \
200         base-definition.cs      \
201         bug-27420.cs            \
202         bug-47295.cs            \
203         bug-46781.cs            \
204         bug-48015.cs            \
205         bug-42136.cs            \
206         bug-59286.cs            \
207         bug-70561.cs            \
208         bug-78311.cs            \
209         bug-78653.cs            \
210         bug-78656.cs            \
211         interlocked.cs          \
212         cross-domain.cs         \
213         appdomain-exit.cs       \
214         delegate-async-exit.cs  \
215         delegate-delegate-exit.cs       \
216         delegate-exit.cs        \
217         finalizer-abort.cs      \
218         finalizer-exception.cs  \
219         finalizer-exit.cs       \
220         main-exit.cs    \
221         main-returns-abort-resetabort.cs        \
222         main-returns-background-abort-resetabort.cs     \
223         main-returns-background-resetabort.cs   \
224         main-returns-background.cs      \
225         main-returns-background-change.cs       \
226         main-returns.cs         \
227         subthread-exit.cs       \
228         desweak.cs              \
229         cominterop.cs           \
230         exists.cs               \
231         handleref.cs    \
232         transparentproxy.cs
233
234 if X86
235 # bug #71274
236 PLATFORM_DISABLED_TESTS=finalizer-abort.exe finalizer-exception.exe finalizer-exit.exe
237 endif
238
239 if POWERPC
240 # bug #71274
241 PLATFORM_DISABLED_TESTS=finalizer-abort.exe finalizer-exception.exe finalizer-exit.exe
242 endif
243
244 DISABLED_TESTS=                 \
245         delegate-async-exception.exe    \
246         delegate-delegate-exception.exe \
247         appdomain-unload.exe            \
248         $(PLATFORM_DISABLED_TESTS)
249
250 # These only compile with MS CSC
251 TEST_CSC_SRC=                   \
252         vararg.cs
253
254 TEST_IL_SRC=                    \
255         cpblkTest.il            \
256         vbinterface.il          \
257         jmpTest.il              \
258         calliTest.il            \
259         ckfiniteTest.il         \
260         fault-handler.il                \
261         locallocTest.il         \
262         long-shift-regalloc.il          \
263         initblkTest.il          \
264         qt-instance.il          \
265         vararg.il               \
266         bug-29859.il            \
267         bug-78549.il            \
268         static-fields-nonconst.il       \
269         reload-at-bb-end.il     \
270         test-enum-indstoreil.il \
271         filter-bug.il           \
272         even-odd.il             \
273         bug-82022.il
274
275 TEST_CS2_SRC = \
276         interlocked-2.2.cs      \
277         pinvoke-2.2.cs          \
278         bug-78431.2.cs          \
279         bug-79684.2.cs          \
280         catch-generics.2.cs     \
281         event-get.2.cs          \
282         safehandle.2.cs         \
283         stackframes-async.2.cs          \
284         module-cctor-loader.2.cs        \
285         generics-invoke-byref.2.cs      \
286         bug-80392.2.cs
287
288 TEST_IL2_SRC = find-method.2.il \
289         bug-79215.2.il  \
290         bug-79956.2.il
291
292 # pre-requisite test sources: files that are not test themselves
293 # but that need to be compiled
294 PREREQ_IL_SRC=event-il.il module-cctor.il
295 PREREQ_CS_SRC=
296
297 PREREQSI_IL=$(PREREQ_IL_SRC:.il=.exe)
298 PREREQSI_CS=$(PREREQ_CS_SRC:.cs=.exe)
299 TESTSI_CS=$(TEST_CS_SRC:.cs=.exe)
300 TESTSI_IL=$(TEST_IL_SRC:.il=.exe)
301 TESTSI_CS2=$(TEST_CS2_SRC:.2.cs=.exe)
302 TESTSI_IL2=$(TEST_IL2_SRC:.2.il=.exe)
303 TESTBS=$(BENCHSRC:.cs=.exe)
304 STRESS_TESTS=$(STRESS_TESTS_SRC:.cs=.exe)
305
306 EXTRA_DIST=test-driver $(TEST_CS_SRC) $(TEST_CS2_SRC) $(TEST_IL_SRC) $(TEST_IL2_SRC) \
307         $(BENCHSRC) $(STRESS_TESTS_SRC) stress-runner.pl $(PREREQ_IL_SRC) $(PREREQ_CS_SRC)
308
309 %.exe: %.2.il
310         $(ILASM2) -out:$@ $<
311
312 %.exe: %.il
313         $(ILASM) -out:$@ $<
314
315 %.exe: %.2.cs TestDriver.dll
316         $(GMCS) -r:TestDriver.dll -out:$@ $<
317
318 %.exe: %.cs TestDriver.dll
319         $(MCS) -r:TestDriver.dll -out:$@ $<
320
321 # mkbundle works on ppc, but the pkg-config POC doesn't when run with make test
322 if POWERPC
323 test:   testjit test-type-load test-inline-call-stack test-bug-80307 test-bug-81673 test-bug-81691
324 else
325 # Can't use mkbundle on win32 since there is no static build there
326 if PLATFORM_WIN32
327 test:   testjit test-type-load test-inline-call-stack test-bug-80307 test-bug-81673 test-bug-81691
328 else
329 test:   testjit testbundle test-type-load test-inline-call-stack test-iomap-regression test-bug-80307 test-bug-81673 test-bug-81691
330 endif
331 endif
332
333 TestDriver.dll:
334         $(MCS) -target:library -out:$@ $(srcdir)/../mini/TestDriver.cs
335
336 test_cs: $(TEST_PROG) $(TESTSI_CS) libtest.la
337         @failed=0; \
338         passed=0; \
339         export LD_LIBRARY_PATH="`pwd`/.libs:$${LD_LIBRARY_PATH}"; \
340         for i in $(TESTSI_CS); do       \
341                 if $(srcdir)/test-driver '$(with_mono_path) $(TEST_PROG_RUN)' $$i '$(DISABLED_TESTS)' $(RUNTIME_ARGS); \
342                 then \
343                         passed=`expr $${passed} + 1`; \
344                 else \
345                         if [ $$? = 2 ]; then break; fi; \
346                         failed=`expr $${failed} + 1`; \
347                 fi \
348         done; \
349         echo; echo ".cs: $${passed} test(s) passed. $${failed} test(s) did not pass."; echo
350
351 test_il: $(TEST_PROG) $(TESTSI_IL) libtest.la
352         @failed=0; \
353         passed=0; \
354         export LD_LIBRARY_PATH="`pwd`/.libs:$${LD_LIBRARY_PATH}"; \
355         for i in $(TESTSI_IL); do       \
356                 if $(srcdir)/test-driver '$(with_mono_path) $(TEST_PROG_RUN)' $$i "$(DISABLED_TESTS)" $(RUNTIME_ARGS); \
357                 then \
358                         passed=`expr $${passed} + 1`; \
359                 else \
360                         if [ $$? = 2 ]; then break; fi; \
361                         failed=`expr $${failed} + 1`; \
362                 fi \
363         done; \
364         echo; echo ".il: $${passed} test(s) passed. $${failed} test(s) did not pass."; echo
365
366 testb: $(TEST_PROG) $(TESTBS)
367         for i in $(TESTBS); do  \
368                 $(srcdir)/test-driver '$(with_mono_path) $(TEST_PROG_RUN)' $$i '$(DISABLED_TESTS)' $(RUNTIME_ARGS);     \
369         done
370
371 testjit: testjit-default testjit-net_2_0
372
373 testjit-default: $(TESTSI_CS) $(TESTSI_IL) $(TESTBS) libtest.la $(PREREQSI_IL) $(PREREQSI_CS)
374         @failed=0; \
375         passed=0; \
376         failed_tests="";\
377         for i in $(TESTSI_CS) $(TESTBS) $(TESTSI_IL); do        \
378                 rm -f $${i}.so; \
379                 if $(srcdir)/test-driver '$(with_mono_path) $(JITTEST_PROG_RUN)' $$i '$(DISABLED_TESTS)' $(RUNTIME_ARGS); \
380                 then \
381                         passed=`expr $${passed} + 1`; \
382                 else \
383                         if [ $$? = 2 ]; then break; fi; \
384                         failed=`expr $${failed} + 1`; \
385                         failed_tests="$${failed_tests} $$i"; \
386                 fi \
387         done; \
388         echo "$${passed} test(s) passed. $${failed} test(s) did not pass."; \
389         if [ $${failed} != 0 ]; then echo -e "\nFailed tests:\n"; \
390           for i in $${failed_tests}; do echo $${i}; done; exit 1; fi
391
392 testjit-net_2_0: $(TESTSI_CS2) $(TESTSI_IL2) libtest.la
393         @failed=0; \
394         passed=0; \
395         failed_tests="";\
396         for i in $(TESTSI_CS2) $(TESTSI_IL2); do        \
397                 rm -f $${i}.so; \
398                 if $(srcdir)/test-driver '$(with_mono_path2) $(JITTEST_PROG_RUN)' $$i '$(DISABLED_TESTS)' $(RUNTIME_ARGS); \
399                 then \
400                         passed=`expr $${passed} + 1`; \
401                 else \
402                         if [ $$? = 2 ]; then break; fi; \
403                         failed=`expr $${failed} + 1`; \
404                         failed_tests="$${failed_tests} $$i"; \
405                 fi \
406         done; \
407         echo "$${passed} test(s) passed. $${failed} test(s) did not pass."; \
408         if [ $${failed} != 0 ]; then echo -e "\nFailed tests:\n"; \
409           for i in $${failed_tests}; do echo $${i}; done; exit 1; fi
410
411 testaot: $(TESTSI_CS) $(TESTBS) libtest.la
412         @failed=0; \
413         passed=0; \
414         failed_tests="";\
415         export LD_LIBRARY_PATH="`pwd`/.libs:$${LD_LIBRARY_PATH}"; \
416         for i in $(TESTSI_CS) $(TESTBS); do     \
417                 rm -f $${i}.so; \
418                 $(JITTEST_PROG_RUN) --aot $${i} > /dev/null; \
419                 if $(srcdir)/test-driver '$(with_mono_path) $(JITTEST_PROG_RUN)' $$i "$(DISABLED_TESTS)" $(RUNTIME_ARGS); \
420                 then \
421                         passed=`expr $${passed} + 1`; \
422                 else \
423                         if [ $$? = 2 ]; then break; fi; \
424                         failed=`expr $${failed} + 1`; \
425                         failed_tests="$${failed_tests} $$i"; \
426                 fi \
427         done; \
428         echo "$${passed} test(s) passed. $${failed} test(s) did not pass."; \
429         if [ $$failed != 0 ]; then echo -e "\nFailed tests:\n"; \
430           for i in $${failed_tests}; do echo $${i}; done; exit 1; fi
431
432 testtrace:
433         $(MAKE) RUNTIME_ARGS="$${RUNTIME_ARGS} --trace" testjit
434
435 testinterp: $(TESTSI_CS) $(TESTSI_IL) libtest.la
436         @failed=0; \
437         passed=0; \
438         failed_tests="";\
439         export LD_LIBRARY_PATH="`pwd`/.libs:$${LD_LIBRARY_PATH}"; \
440         for i in $(TESTSI_CS) $(TESTSI_IL); do \
441                 if $(srcdir)/test-driver '$(with_mono_path) $(TEST_PROG_RUN)' $$i "$(DISABLED_TESTS)" $(RUNTIME_ARGS); \
442                 then \
443                         passed=`expr $${passed} + 1`; \
444                 else \
445                         if [ $$? = 2 ]; then break; fi; \
446                         failed=`expr $${failed} + 1`; \
447                         failed_tests="$${failed_tests} $$i"; \
448                 fi \
449         done; \
450         echo "$${passed} test(s) passed. $${failed} test(s) did not pass."; \
451         if [ $$failed != 0 ]; then echo -e "\nFailed tests:\n"; \
452           for i in $${failed_tests}; do echo $${i}; done; exit 1; fi
453
454 testjitspeed: $(JITTEST_PROG) $(TESTBS)
455         for i in $(TESTBS); do  \
456                 echo $$i;       \
457                 time $(JITTEST_PROG) $$i;       \
458         done
459
460 test-iomap-regression: exists.cs
461         $(MCS) $(srcdir)/exists.cs -out:exists.exe
462         MONO_IOMAP=all $(RUNTIME) exists.exe
463
464 stresstest: $(STRESS_TESTS)
465         @failed=0; \
466         passed=0; \
467         failed_tests="";\
468         for i in $(STRESS_TESTS); do    \
469                 if $(srcdir)/stress-runner.pl $$i ../mini/mono $(RUNTIME_ARGS); \
470                 then \
471                         passed=`expr $${passed} + 1`; \
472                 else \
473                         if [ $$? = 2 ]; then break; fi; \
474                         failed=`expr $${failed} + 1`; \
475                         failed_tests="$${failed_tests} $$i"; \
476                 fi \
477         done; \
478         echo "$${passed} test(s) passed. $${failed} test(s) did not pass."; \
479         if [ $${failed} != 0 ]; then echo -e "\nFailed tests:\n"; \
480           for i in $${failed_tests}; do echo $${i}; done; exit 1; fi
481
482 testbundle: console.exe
483         $(MKBUNDLE) --static console.exe
484         $(with_mono_path) MONO_CFG_DIR=$(mono_cfg_dir) MONO_SHARED_DIR=$(mono_build_root)/runtime ./a.out
485         - rm -rf a.out
486
487 EXTRA_DIST += load-missing.il t-missing.cs load-exceptions.cs
488 test-type-load: TestDriver.dll
489         $(ILASM) /dll /output:load-missing.dll $(srcdir)/load-missing.il
490         $(MCS) -t:library -out:t.dll -d:FOUND $(srcdir)/t-missing.cs
491         $(MCS) -r:TestDriver.dll -r:load-missing.dll -r:t.dll -out:load-exceptions.exe $(srcdir)/load-exceptions.cs
492         $(MCS) -t:library -out:t.dll $(srcdir)/t-missing.cs
493         $(RUNTIME) load-exceptions.exe
494
495 EXTRA_DIST += test-inline-call-stack-library.cs test-inline-call-stack.cs
496 test-inline-call-stack-library.dll: TestDriver.dll $(srcdir)/test-inline-call-stack-library.cs
497         $(MCS) -t:library -out:test-inline-call-stack-library.dll $(srcdir)/test-inline-call-stack-library.cs
498 test-inline-call-stack.exe: TestDriver.dll test-inline-call-stack-library.dll $(srcdir)/test-inline-call-stack.cs
499         $(MCS) -r:TestDriver.dll -r:test-inline-call-stack-library.dll -out:test-inline-call-stack.exe $(srcdir)/test-inline-call-stack.cs
500 test-inline-call-stack: TestDriver.dll test-inline-call-stack-library.dll test-inline-call-stack.exe
501         $(RUNTIME) test-inline-call-stack.exe
502
503 EXTRA_DIST += bug-80307.cs
504 bug-80307.exe: $(srcdir)/bug-80307.cs
505         $(MCS) -r:System.Web -out:$@ $(srcdir)/bug-80307.cs
506
507 # We use 'test-support-files' to handle an ordering issue between the 'mono/' and 'runtime/' directories
508 test-bug-80307: bug-80307.exe
509         cd $(top_builddir)/runtime && $(MAKE) test-support-files
510         $(RUNTIME) bug-80307.exe
511
512 EXTRA_DIST += bug-81673.cs bug-81673-interface.cs
513 bug-81673.exe bug-81673-interface.dll: $(srcdir)/bug-81673.cs $(srcdir)/bug-81673-interface.cs
514         $(MCS) -target:library -out:bug-81673-interface.dll $(srcdir)/bug-81673-interface.cs
515         $(MCS) -out:bug-81673.exe -r:bug-81673-interface.dll $(srcdir)/bug-81673.cs
516         $(MCS) -define:WITH_STOP -target:library -out:bug-81673-interface.dll $(srcdir)/bug-81673-interface.cs
517
518 test-bug-81673 : bug-81673.exe bug-81673-interface.dll
519         $(RUNTIME) bug-81673.exe
520
521 EXTRA_DIST += bug-81691.cs bug-81691-a.cs bug-81691-b.cs
522 bug-81691.exe bug-81691-b.dll: $(srcdir)/bug-81691.cs $(srcdir)/bug-81691-a.cs $(srcdir)/bug-81691-b.cs
523         $(GMCS) -target:library -out:bug-81691-a.dll $(srcdir)/bug-81691-a.cs
524         $(GMCS) -target:library -out:bug-81691-b.dll -r:bug-81691-a.dll $(srcdir)/bug-81691-b.cs
525         $(GMCS) -r:bug-81691-b.dll -out:bug-81691.exe $(srcdir)/bug-81691.cs
526         rm -f bug-81691-a.dll
527
528 test-bug-81691 : bug-81691.exe bug-81691-b.dll
529         $(RUNTIME) bug-81691.exe
530
531 # Useful if mono is compiled with --enable-shared=no
532 patch-libtool:
533         cp "../../libtool" .
534         sed -e 's,build_libtool_libs=no,build_libtool_libs=yes,g' libtool > 2; mv 2 libtool
535         sed -e 's,LIBTOOL =,LIBTOOL2 =,g' Makefile > 2 && echo "LIBTOOL = bash ./libtool" > 1 && cat 1 2 > Makefile
536         touch libtest.c
537
538 noinst_LTLIBRARIES = libtest.la
539
540 INCLUDES = $(GLIB_CFLAGS)
541
542 if PLATFORM_WIN32
543 # gcc-3.4.4 emits incorrect code when making indirect calls to stdcall functions using a tail call
544 # This shows up when compiling mono_test_marshal_delegate ()
545 libtest_la_CFLAGS=-fno-optimize-sibling-calls
546 # the exported names created by gcc for stdcall functions are missing the leading _, so MS.NET
547 # can't find them. So we use --kill-at to remove the @ suffix as well.
548 libtest_la_LDFLAGS=-no-undefined -rpath `pwd` -Wl,--kill-at
549 else
550 libtest_la_LDFLAGS = -rpath `pwd`
551 endif
552 libtest_la_SOURCES = libtest.c
553 libtest_la_LIBADD = $(GLIB_LIBS)
554
555 CLEANFILES = $(TESTSI_CS) $(TESTSI_IL) $(STRESS_TESTS) *.dll *.stdout *.exe stest.dat