Debian Codegraph @

debian/tests/test-devel

raw symbols SCIP
1 #!/usr/bin/sh
2 # packages needed:
3 #
4 # mono-devel: /usr/bin/mcs
5 # mono-devel: /usr/bin/csharp
6 # mono-devel: /usr/bin/monodis
7
8 set -e -v -o pipefail
9
10 TDIR=debian/tests
11
12 # compile, run and disassemble a hello world csharp file
13 mcs $TDIR/hello.cs
14 test -x $TDIR/hello.exe
15 mono $TDIR/hello.exe
16 mono $TDIR/hello.exe | grep "Hello Mono"
17
18 monodis $TDIR/hello.exe | grep "\.assembly 'hello'"
19
20 # compile with additional assemblies (not executing)
21 mcs -pkg:dotnet $TDIR/hello-forms.cs
22 test -x $TDIR/hello-forms.exe
23
24 # recompile bundled MGAN tool and run it
25 mcs debian/MonoGetAssemblyName.cs
26 test -x debian/MonoGetAssemblyName.exe
27 mono debian/MonoGetAssemblyName.exe $(realpath $TDIR/hello.exe) | grep 'hello,'
28
29 # try csharp expressions
30 csharp -e 'print("hello csharp")' | grep 'hello'