1# $Id: Makefile.am,v 1.68 2004/06/22 15:34:53 christof Exp $ 2 3# these tests are broken (still valid now?) 4OLD_WORKING_TESTS = test2_metachars.glade test3_label.glade test4_buttons.glade \ 5 test5_dialog.glade test6_clist.glade test7_notebook.glade \ 6 test8_more_widgets.glade test24_menu.glade \ 7 test9_buttons.glade test10_paned.glade \ 8 test12_menu.glade test17_toolb_pixm.glade \ 9 test11_Auslandszahlung.glade test13_tooltip.glade test1.glade 10BASIC_TESTS = test20_notebook.glade test21_nb_flat.glade \ 11 test22_maschv.glade $(OLD_WORKING_TESTS) \ 12 test23_custom.glade test25_kunden.glade \ 13 test27_accel.glade test28_yav.glade test31_methods.glade \ 14 test29_methods.glade test34_menu_raw.glade test35_menu_gnome.glade \ 15 test37_sig2sig.glade test38_gnm_dialog.glade \ 16 test39_midgard.glade test40_filesel.glade test41_vscbar.glade \ 17 test42_umlaute.glade test43_toolbar.glade test44_menu.glade \ 18 test45_gnome_dateedit.glade test46_radio.glade 19FUTURE_TESTS = test26_gnome.glade test36_gnome.glade test47_gnomentry.glade \ 20 test48_glade2.glade test49_image.glade test50_menu2.glade \ 21 test51_nightmare.glade test52_g2_om.glade \ 22 test54_buttonevent.glade test55_toolradio.glade \ 23 test57_gettext.glade test58_gnomemenu.glade test59_gtk24.glade \ 24 test60_toolitem.glade test61_dragsig.glade 25# these tests require gtk--addons installed 26EXTRA_TESTS = test14_dispo.glade test15_SearchCombo.glade \ 27 test16_artikelstamm.glade \ 28 test30_fibu.glade test32_dispo.glade test53_layout.glade \ 29 test56_misc.glade 30 31ALL_TESTS = $(BASIC_TESTS) $(EXTRA_TESTS) $(FUTURE_TESTS) 32EXTRA_DIST = $(ALL_TESTS) test23_custom_add.tgz \ 33 test48_glade2.gladep test49_image.gladep test51_nightmare.gladep \ 34 test52_g2_om.gladep test54_buttonevent.gladep \ 35 test55_toolradio.gladep test56_misc.gladep test57_gettext.gladep \ 36 test59_gtk24.gladep test60_toolitem.gladep test61_dragsig.gladep 37 38RUNTESTS = $(patsubst %.glade,run_%,$(BASIC_TESTS)) 39ALLRUNTESTS = $(patsubst %.glade,run_%,$(ALL_TESTS)) 40 41TESTDIRS = $(patsubst %.glade,%,$(BASIC_TESTS)) 42ALLTESTS = $(patsubst %.glade,%,$(ALL_TESTS)) 43 44CLEANFILES=$(ALLRUNTESTS) *.glade.bak *~ test 45 46GLADEMM = $(top_srcdir)/src/glade--$(EXEEXT) 47 48TESTS=test 49 50test: $(RUNTESTS) 51 touch test 52 53create: $(TESTDIRS) 54 55test-clean: 56 rm -r $(ALLTESTS) 57 58check-clean: 59 rm -r $(ALLTESTS) 60 61killall: # since the programs do not exit 62 for i in $(ALLTESTS) ; do killall $$i ; done 63 64$(ALLRUNTESTS): run_test%: $(GLADEMM) test% 65 cd test$* && CXXFLAGS=-Wall ./autogen.sh 66 cd test$* && make 67 -cd test$*/src && (./test$* &) 68 touch run_test$* 69 70$(ALLTESTS): test%: test%.glade $(GLADEMM) 71 -rm -r test$* 72 mkdir test$* 73 cd test$* && ln -s ../test$*.glade . 74 -cd test$* && ln -s ../test$*.gladep . 75 cd test$* && ../$(GLADEMM) -s test$*.glade 76 cd test$* && if [ -f ../test$*_add.tgz ] ; then tar xvzf ../test$*_add.tgz ; fi 77 cd test$* && if [ ! -d pixmaps ] ; then ln -sf ../pixmaps ; fi 78