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:
@@ -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
|
||||
|
||||
|
||||
7
bindings/csharp/TestGphoto2Sharp.cs
Normal file
7
bindings/csharp/TestGphoto2Sharp.cs
Normal 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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user