2006-05-20 22:35:40 +00:00
|
|
|
MCS_FLAGS = -debug
|
|
|
|
NUNIT_FLAGS = @MONO_NUNIT_LIBS@
|
|
|
|
|
|
|
|
ASSEMBLY_NAME = gstreamer-tests
|
|
|
|
ASSEMBLY = $(ASSEMBLY_NAME).dll
|
2006-08-04 04:00:43 +00:00
|
|
|
ASSEMBLY_CSFILES = $(srcdir)/ApplicationTest.cs $(srcdir)/BinTest.cs $(srcdir)/CapsTest.cs $(srcdir)/PadTest.cs $(srcdir)/ElementTest.cs $(srcdir)/PipelineTest.cs
|
2006-06-04 16:49:35 +00:00
|
|
|
|
2006-05-20 22:35:40 +00:00
|
|
|
|
|
|
|
NUNIT_TESTER_NAME = ConsoleUi
|
|
|
|
NUNIT_TESTER = $(NUNIT_TESTER_NAME).exe
|
|
|
|
NUNIT_TESTER_CSFILES = $(srcdir)/$(NUNIT_TESTER_NAME).cs
|
|
|
|
|
|
|
|
$(ASSEMBLY): $(ASSEMBLY_CSFILES)
|
2006-08-04 04:08:13 +00:00
|
|
|
$(CSC) $(MCS_FLAGS) $(NUNIT_FLAGS) -out:$@ -target:library -r:$(top_builddir)/gstreamer-sharp/gstreamer-sharp.dll $(ASSEMBLY_CSFILES) -pkg:glib-sharp-2.0
|
2006-05-20 22:35:40 +00:00
|
|
|
|
|
|
|
$(NUNIT_TESTER): $(NUNIT_TESTER_CSFILES)
|
|
|
|
$(CSC) $(MCS_FLAGS) -out:$@ $(NUNIT_FLAGS) $(NUNIT_TESTER_CSFILES)
|
|
|
|
|
|
|
|
run-test: $(NUNIT_TESTER) $(ASSEMBLY)
|
|
|
|
MONO_PATH="../gstreamer-sharp/" mono --debug $(NUNIT_TESTER) $(ASSEMBLY)
|
|
|
|
|
|
|
|
CLEANFILES = $(ASSEMBLY) $(NUNIT_TESTER) TestResult.xml
|
|
|
|
DISTCLEANFILES = *.mdb Makefile.in *.dll *.exe
|
|
|
|
|