Commit e361a6fd authored by Andrew Price's avatar Andrew Price

Add a mwnci to the tree

This adds a new util named mwnci (Milliways Nifty Commandline Interface,
or something) which can be used to list and generate random entries in
users.bb and folders.bb. This should be useful for populating test files
(e.g. when testing a migration to a new database format) and examining
broken ones. Some more work needs to be done on choosing values for more
of the user fields but it should be basically useful already. It has some
built-in help so 'cd src; make test; utils/mwnci' will get you started.

Fixes #4
parent 7ae988f2
......@@ -19,6 +19,7 @@ src/utils/del_user
src/utils/fixuser
src/utils/listuser
src/utils/sizes
src/utils/mwnci
src/webclient/mwpoll
mozjs/build
mozjs/installroot
......@@ -46,6 +46,7 @@ test:
cp -a ../$$d $(TESTDIR)/mw/ ; \
done
$(MAKE) libdir="$(TESTDIR)" localstatedir="$(TESTDIR)" all
$(MAKE) -C utils libdir="$(TESTDIR)" localstatedir="$(TESTDIR)" all
testclean: clean
rm -rf "$(TESTDIR)"
......
......@@ -3,9 +3,12 @@ DEPTH=../../
include ../../Makefile.common
LDFLAGS+= -L..
CFLAGS+= -I..
CFLAGS+= -I.. -Wno-error
all: listuser fixuser del_user sizes
all: mwnci listuser fixuser del_user sizes
mwnci: mwnci.o ../libmw.a
$(CC) $(LDFLAGS) $(LDLIBS) -o $@ $^
listuser: listuser.o
$(CC) $(LDFLAGS) $(LDLIBS) -o $@ $^
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment