summaryrefslogtreecommitdiff
path: root/uunit.cc
diff options
context:
space:
mode:
Diffstat (limited to 'uunit.cc')
-rw-r--r--uunit.cc16
1 files changed, 16 insertions, 0 deletions
diff --git a/uunit.cc b/uunit.cc
new file mode 100644
index 0000000..609310a
--- /dev/null
+++ b/uunit.cc
@@ -0,0 +1,16 @@
+// -*- c++ -*-
+// This is the uUnit main file.
+// Copyright 2020 Bent Bisballe Nyeng (deva@aasimon.org)
+// This file released under the CC0-1.0 license. See CC0-1.0 file for details.
+
+#define uUNIT_MAIN
+#include "uunit.h"
+
+#include <fstream>
+
+int main(int argc, char* argv[])
+{
+ std::ofstream xmlfile;
+ xmlfile.open("result_" OUTPUT ".xml");
+ return uUnit::runTests(xmlfile);
+}