cmd: Make the original test suite build
authorSimon Wilkinson <sxw@your-file-system.com>
Sat, 23 Apr 2011 14:44:53 +0000 (10:44 -0400)
committerDerrick Brashear <shadow@dementia.org>
Tue, 26 Apr 2011 04:50:35 +0000 (21:50 -0700)
Make the original, command line driven, test suite build again

Change-Id: I57f0ebb5b1d13acf0809c7fa005e3556e3edb798
Reviewed-on: http://gerrit.openafs.org/4537
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementia.org>

src/cmd/test/.gitignore [new file with mode: 0644]
src/cmd/test/Makefile.in
src/cmd/test/ctest.c
src/cmd/test/dtest.c
src/cmd/test/itest.c

diff --git a/src/cmd/test/.gitignore b/src/cmd/test/.gitignore
new file mode 100644 (file)
index 0000000..128ca68
--- /dev/null
@@ -0,0 +1,3 @@
+ctest
+dtest
+itest
index d1bdb43..934ec64 100644 (file)
@@ -14,8 +14,7 @@ INSTALL_DATA = @INSTALL_DATA@
 INSTALL_PROGRAM = @INSTALL_PROGRAM@
 INSTALL_SCRIPT = @INSTALL_SCRIPT@
 
-LDIRS= -L${DESTDIR}/lib -L${DESTDIR}/lib/afs -L..
-LIBS=-lcmd -lcom_err -lafsutil
+LIBS=-lcmd $(TOP_LIBDIR)/libcom_err.a -lafsutil $(LIB_roken) $(XLIBS)
 
 all: test
 test tests: ctest dtest itest
index 5e0ef76..e9220c8 100644 (file)
@@ -10,9 +10,9 @@
 #include <afsconfig.h>
 #include <afs/param.h>
 
+#include <roken.h>
 
-#include "cmd.h"
-#include <stdio.h>
+#include <afs/cmd.h>
 
 static int
 cproc1(struct cmd_syndesc *as, void *arock)
index a5201da..4ab4574 100644 (file)
@@ -10,9 +10,9 @@
 #include <afsconfig.h>
 #include <afs/param.h>
 
+#include <roken.h>
 
-#include "cmd.h"
-#include <stdio.h>
+#include <afs/cmd.h>
 
 static int
 cproc(struct cmd_syndesc *as, void *arock)
index 5f402aa..bb0eaf6 100644 (file)
 #include <afsconfig.h>
 #include <afs/param.h>
 
+#include <roken.h>
 
-#include "cmd.h"
-#include <stdio.h>
-#include <com_err.h>
+#include <afs/com_err.h>
+#include <afs/cmd.h>
 
 static int
 cproc1(struct cmd_syndesc *as, void *arock)
@@ -49,7 +49,7 @@ main(int argc, char **argv)
 {
     struct cmd_syndesc *ts;
     char tline[1000];
-    long tc;
+    afs_int32 tc;
     char *tp;
     long code;
     char *tv[100];