[mw-devel] MW3 r1097 - trunk/src

welshbyte at sucs.org welshbyte at sucs.org
Fri Nov 6 13:21:13 GMT 2009


Author: welshbyte
Date: 2009-11-06 13:21:13 +0000 (Fri, 06 Nov 2009)
New Revision: 1097

Modified:
   trunk/src/
   trunk/src/Makefile
Log:
- Add a test rule to make it easier to test changes without installing or setuid-ing
- Update svn:ignore property for .d files and the mwtest-* directories.



Property changes on: trunk/src
___________________________________________________________________
Modified: svn:ignore
   - *.o
core
newbbs
cscope.out
test
*~
   + *.o
*.d
core
newbbs
cscope.out
test
mwtest-*
*~


Modified: trunk/src/Makefile
===================================================================
--- trunk/src/Makefile	2009-10-28 14:55:59 UTC (rev 1096)
+++ trunk/src/Makefile	2009-11-06 13:21:13 UTC (rev 1097)
@@ -70,7 +70,7 @@
 	
 -include $(CODE:.c=.d)
 
-.PHONY: all install clean wipe
+.PHONY: all install clean wipe test
 
 messages.po: $(CODE) $(HDRS)
 	xgettext --copyright-holder="Justin Mitchell <arthur at sucs.org>" -E  --no-wrap --keyword=_ $^ -j -o messages.po 
@@ -120,4 +120,13 @@
 export: export.o perms.o strings.o special.o
 	$(CC) $(LDFLAGS) -o $@ $^
 
-
+ifndef TESTDIR
+test:
+	make TESTDIR=$(PWD)/mwtest-`svnversion` $@
+else
+test:
+	mkdir -p $(TESTDIR)
+	cd $(TESTDIR) && mkdir -p mw run/mw log/mw lib/mw
+	cp ../login.banner $(TESTDIR)/mw/
+	make libdir=$(TESTDIR) localstatedir=$(TESTDIR)
+endif




More information about the mw-devel mailing list