2
0

mini-test-runner.cs 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using NUnit.Framework;
  5. [TestFixture]
  6. public class JitTests {
  7. static string[] args = new string[] { "--exclude", "!FULLAOT", "--verbose" };
  8. [Test]
  9. public static void Basic () {
  10. int res = TestDriver.RunTests (typeof (BasicTests), args);
  11. Assert.AreEqual (0, res);
  12. }
  13. [Test]
  14. public static void Arrays () {
  15. int res = TestDriver.RunTests (typeof (ArrayTests), args);
  16. Assert.AreEqual (0, res);
  17. }
  18. [Test]
  19. public static void Calls () {
  20. int res = TestDriver.RunTests (typeof (CallsTests), args);
  21. Assert.AreEqual (0, res);
  22. }
  23. [Test]
  24. public static void Float () {
  25. int res = TestDriver.RunTests (typeof (FloatTests), args);
  26. Assert.AreEqual (0, res);
  27. }
  28. [Test]
  29. public static void Long () {
  30. int res = TestDriver.RunTests (typeof (LongTests), args);
  31. Assert.AreEqual (0, res);
  32. }
  33. [Test]
  34. public static void Math () {
  35. int res = TestDriver.RunTests (typeof (MathTests), args);
  36. Assert.AreEqual (0, res);
  37. }
  38. [Test]
  39. public static void Objects () {
  40. int res = TestDriver.RunTests (typeof (ObjectTests.Tests), args);
  41. Assert.AreEqual (0, res);
  42. }
  43. [Test]
  44. public static void Generics () {
  45. int res = TestDriver.RunTests (typeof (GenericsTests), args);
  46. Assert.AreEqual (0, res);
  47. }
  48. [Test]
  49. public static void GShared () {
  50. int res = TestDriver.RunTests (typeof (GSharedTests), args);
  51. Assert.AreEqual (0, res);
  52. }
  53. [Test]
  54. public static void Exceptions () {
  55. int res = TestDriver.RunTests (typeof (ExceptionTests), args);
  56. Assert.AreEqual (0, res);
  57. }
  58. [Test]
  59. public static void Aot () {
  60. int res = TestDriver.RunTests (typeof (AotTests), args);
  61. Assert.AreEqual (0, res);
  62. }
  63. }