add 'hello world' testcase for libgphoto2-sharp

git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@8806 67ed7778-7388-44ab-90cf-0a291f65f57c
This commit is contained in:
Hans Ulrich Niedermann
2006-05-17 11:04:21 +00:00
parent 79204ab185
commit 295472d7a2
2 changed files with 22 additions and 1 deletions

View File

@@ -27,6 +27,19 @@ cslib_DATA = \
libgphoto2-sharp.dll: $(LIBGPHOTO2_SHARP_GENERATED_CSFILES) $(LIBGPHOTO2_SHARP_CSFILES)
$(MCS) $(MCSFLAGS) -out:$@ /target:library $(LIBGPHOTO2_SHARP_GENERATED_CSFILES) $(LIBGPHOTO2_SHARP_CSFILES)
TestGphoto2Sharp.exe: $(srcdir)/TestGphoto2Sharp.cs
$(MCS) $(MCSFLAGS) -out:$@ $<
check_SCRIPTS = TestGphoto2Sharp
check_DATA = TestGphoto2Sharp.exe
TESTS = $(check_SCRIPTS)
TestGphoto2Sharp: Makefile $(srcdir)/TestGphoto2Sharp.cs
echo '#!/bin/sh' > $@
echo '$(MONO) $$(dirname "$$0")/TestGphoto2Sharp.exe' >> $@
chmod +x $@
EXTRA_DIST = \
libgphoto2-sharp.dll.config \
libgphoto2-sharp.pc.in \
@@ -35,5 +48,6 @@ EXTRA_DIST = \
CLEANFILES = \
libgphoto2-sharp.dll.mdb \
libgphoto2-sharp.dll
libgphoto2-sharp.dll \
TestGphoto2Sharp

View File

@@ -0,0 +1,7 @@
class Gphoto2SharpTest {
public static int Main() {
System.Console.WriteLine("Testing libgphoto2-sharp...");
// Return non-0 when test fails
return 0;
}
}