mirror of
https://github.com/cosinekitty/astronomy.git
synced 2026-03-23 17:03:37 -04:00
I was going to write a Python program to parse the xml file generated by the C# compiler. The problem is it does not contain enough information about types, as explained here: https://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/xmldoc/how-to-use-the-xml-documentation-features "The XML file does not provide full information about the type and members (for example, it does not contain any type information). To get full information about a type or member, the documentation file must be used together with reflection on the actual type or member." So that means I will end up writing the documentation generator in C# and using reflection along with the XML file to generate Markdown.
19 lines
542 B
Bash
Executable File
19 lines
542 B
Bash
Executable File
#!/bin/bash
|
|
Fail()
|
|
{
|
|
echo "ERROR($0): $1"
|
|
exit 1
|
|
}
|
|
|
|
echo "unit_test_csharp: Starting."
|
|
cd dotnet/csharp_test || "Cannot change to directory dotnet/csharp_test"
|
|
dotnet exe/csharp_test.dll || Fail "Error running csharp unit test"
|
|
cd ../..
|
|
./generate check dotnet/csharp_test/csharp_check.txt || Fail "Verification failure for C# unit test output."
|
|
for file in dotnet/csharp_test/csharp_longitude_*.txt; do
|
|
./generate check ${file} || Fail "Failed verification of file ${file}"
|
|
echo ""
|
|
done
|
|
echo "unit_test_csharp: PASS."
|
|
exit 0
|