Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/windirstat/premake-4.x-stable.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/base/tests/base_tests.cpp')
-rw-r--r--src/base/tests/base_tests.cpp23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/base/tests/base_tests.cpp b/src/base/tests/base_tests.cpp
new file mode 100644
index 0000000..efdd646
--- /dev/null
+++ b/src/base/tests/base_tests.cpp
@@ -0,0 +1,23 @@
+/**
+ * \file base_tests.cpp
+ * \brief Automated tests for Premake base library.
+ * \author Copyright (c) 2002-2008 Jason Perkins and the Premake project
+ */
+
+#include "premake.h"
+#include "testing/testing.h"
+extern "C" {
+#include "base/base.h"
+}
+
+
+/**
+ * \brief Run the base library automated tests.
+ * \returns OKAY if all tests completed successfully.
+ */
+int base_tests()
+{
+ int status = tests_run_suite("cstr");
+ if (status == OKAY) status = tests_run_suite("base");
+ return status;
+}