[Omake] Re: Tests

David Kågedal davidk at lysator.liu.se
Mon Sep 4 03:28:06 PDT 2006


And here is a test case for the vmount problem discussed in another
thread.

Index: tests/vmount/Test1/build/.dummy
===================================================================
--- tests/vmount/Test1/build/.dummy	(revision 0)
+++ tests/vmount/Test1/build/.dummy	(revision 0)
@@ -0,0 +1 @@
+this is here to create the directory.
Index: tests/vmount/Test1/OMakeroot
===================================================================
--- tests/vmount/Test1/OMakeroot	(revision 0)
+++ tests/vmount/Test1/OMakeroot	(revision 0)
@@ -0,0 +1,2 @@
+include $(STDROOT)
+.SUBDIRS: .
Index: tests/vmount/Test1/src/foo.c
===================================================================
--- tests/vmount/Test1/src/foo.c	(revision 0)
+++ tests/vmount/Test1/src/foo.c	(revision 0)
@@ -0,0 +1,6 @@
+#include <stdio.h>
+int main(int argc, char **argv)
+{
+        printf("hello world\n");
+        return 0;
+}
Index: tests/vmount/Test1/src/OMakefile
===================================================================
--- tests/vmount/Test1/src/OMakefile	(revision 0)
+++ tests/vmount/Test1/src/OMakefile	(revision 0)
@@ -0,0 +1 @@
+CProgram(foo, foo)
Index: tests/vmount/Test1/OMakefile
===================================================================
--- tests/vmount/Test1/OMakefile	(revision 0)
+++ tests/vmount/Test1/OMakefile	(revision 0)
@@ -0,0 +1,3 @@
+vmount(src, build)
+.SUBDIRS: build
+.DEFAULT: build/foo


-- 
David Kågedal



More information about the Omake mailing list