aboutsummaryrefslogtreecommitdiff
path: root/vendor/voclient/libsamp/tests
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/voclient/libsamp/tests')
-rw-r--r--vendor/voclient/libsamp/tests/.alias18
-rw-r--r--vendor/voclient/libsamp/tests/Makefile73
2 files changed, 91 insertions, 0 deletions
diff --git a/vendor/voclient/libsamp/tests/.alias b/vendor/voclient/libsamp/tests/.alias
new file mode 100644
index 00000000..3a07435d
--- /dev/null
+++ b/vendor/voclient/libsamp/tests/.alias
@@ -0,0 +1,18 @@
+
+
+# XRPC command aliases
+
+alias z1 "./xrpc 8800 9900"
+alias z2 "./xrpc 9900 8800"
+alias z3 "./xrpc 9901 8800"
+
+alias vz1 "valgrind --leak-check=full ./xrpc 8800 9900"
+alias vz2 "valgrind --leak-check=full ./xrpc 9900 8800"
+
+alias zt0 "unsetenv XMLRPC_TRACE_XML"
+alias zt1 "setenv XMLRPC_TRACE_XML 1"
+
+alias mk "make ; scp ps4 monsoon@newfirm-kp.kpno.noao.edu:zztest"
+
+# PSOCK commands
+
diff --git a/vendor/voclient/libsamp/tests/Makefile b/vendor/voclient/libsamp/tests/Makefile
new file mode 100644
index 00000000..659bf4f5
--- /dev/null
+++ b/vendor/voclient/libsamp/tests/Makefile
@@ -0,0 +1,73 @@
+#///////////////////////////////////////////////////////////////////////////////
+#//
+#//
+#///////////////////////////////////////////////////////////////////////////////
+
+# primary dependencies
+
+NAME = samp
+VERSION = 1.0
+PLATFORM := $(shell uname -s)
+HERE := $(shell /bin/pwd)
+APIDIR := $(HERE)/src
+
+
+# secondary dependencies
+
+LIBBASE = lib$(NAME)
+STATICLIB = $(HERE)/$(LIBBASE).a
+SHAREDLIB = $(HERE)/$(LIBBASE).so.$(VERSION)
+
+
+# stuff that's precious to keep
+
+.PRECIOUS: $(STATICLIB) $(SHAREDLIB)
+.KEEP_STATE:
+
+
+# includes, flags and libraries
+CC = gcc
+CINCS = -I$(HERE) -I../include -I../include/psock
+CFLAGS = -g -D$(PLATFORM) -m32 -Wall $(CINCS)
+LFLAGS = -L. -L../lib
+
+COMMON_LIBS = -lpthread -lm
+XRPC_LIBS = -lxrpc
+
+
+# list of source and include files
+SRCS =
+OBJS =
+INCS =
+
+# targets
+
+all: xrpc ps1 ps2 ps3 ps4 ps5 ps6 ps7
+
+clean:
+ /bin/rm -rf xrpc
+ /bin/rm -rf ps[1-7]
+ /bin/rm -rf *.o *.a *.e
+
+everything:
+ make clean
+ make all
+ make install
+
+install: all
+
+
+# Unit test programs to be built.
+
+zztest: zztest.c
+ $(CC) $(CFLAGS) -o zztest zztest.c $(LFLAGS) $(COMMON_LIBS) $(XRPC_LIBS)
+
+
+
+
+#=======================
+# leave this stuff alone
+#=======================
+
+%.o: %.c $(INCS)
+ $(CC) -Wall $(CINCS) $(CFLAGS) -c $< -o $@