summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Andreas Benkard <matthias@benkard.de>2008-06-11 17:10:55 +0200
committerMatthias Andreas Benkard <matthias@benkard.de>2008-06-11 17:10:55 +0200
commitc0539c94ac6861f12f0bae4dd604cedd057c45d5 (patch)
tree026775c96f596ed56e0dd8e5383f64067ec884b1
parentd355e8a5ef359b76ddaec26f33a8c9345d3a2e79 (diff)
Add a test suite.
-rw-r--r--GNUmakefile8
-rw-r--r--MLKLowLevelTests.m45
2 files changed, 53 insertions, 0 deletions
diff --git a/GNUmakefile b/GNUmakefile
index 68e893b..53176e7 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -22,6 +22,14 @@ etoilisp_OBJC_FILES = MLKCons.m MLKEnvironment.m MLKLinkedList.m \
MLKLispValue.m MLKSymbol.m \
MLKUndefinedVariableException.m
+BUNDLE_NAME = Test
+Test_OBJC_FILES = $(etoilisp_OBJC_FILES) MLKLowLevelTests.m
+Test_OBJC_LIBS = -lUnitKit
+
-include GNUmakefile.preamble
+include $(GNUSTEP_MAKEFILES)/bundle.make
include $(GNUSTEP_MAKEFILES)/tool.make
-include GNUmakefile.postamble
+
+test: Test
+ ukrun Test.bundle
diff --git a/MLKLowLevelTests.m b/MLKLowLevelTests.m
new file mode 100644
index 0000000..c6be64a
--- /dev/null
+++ b/MLKLowLevelTests.m
@@ -0,0 +1,45 @@
+/* Étoilisp, a Common Lisp subset for Étoilé.
+ * Copyright (C) 2008 Matthias Andreas Benkard.
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or (at
+ * your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+#include <UnitKit/UnitKit.h>
+
+@interface MLKLowLevelTests <UKTest>
+//-(id) initForTest;
+@end
+
+
+@implementation MLKLowLevelTests
+/*
+-(id) initForTest
+{
+ return self;
+}
+*/
+
+
+/*
+-(id) testStuff
+{
+ // UKPass(); UKFail();
+ // UKNotNil (nil);
+ // UKTrue (1);
+ // UKStringsNotEqual (@"a", @"b");
+ // UKPass();
+ return nil;
+ }
+*/
+@end