From 7531c0a17e481b5810a4fd367972db2cc658aa15 Mon Sep 17 00:00:00 2001 From: Avril Date: Sun, 12 May 2019 21:56:59 +0100 Subject: [PATCH] better tests n stuff --- Makefile | 13 +++++++++++++ package.lisp | 3 ++- test-server | 8 ++++++++ test.lisp => test-server.lisp | 2 +- 4 files changed, 24 insertions(+), 2 deletions(-) create mode 100644 Makefile create mode 100755 test-server rename test.lisp => test-server.lisp (95%) diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..110bed1 --- /dev/null +++ b/Makefile @@ -0,0 +1,13 @@ + + +ffi: + cd libsipc && make libsipc-ffi + +clean: + cd libsipc && make clean + +install: ffi + cp -f libsipc.so /usr/lib/libsipc.so + +uninstall: + rm -f /usr/lib/libsipc.so diff --git a/package.lisp b/package.lisp index e9381ee..9327906 100644 --- a/package.lisp +++ b/package.lisp @@ -2,4 +2,5 @@ (defpackage #:cl-sipc (:use #:cl - #:cffi)) + #:cffi) + (:nicknames :sipc)) diff --git a/test-server b/test-server new file mode 100755 index 0000000..bcd0c4b --- /dev/null +++ b/test-server @@ -0,0 +1,8 @@ +#!/bin/bash + +if [[ ! -f "`readlink -f libsipc.so`" ]]; then + echo "[w] have to build first..." + make ffi +fi + +sbcl --load test-server.lisp diff --git a/test.lisp b/test-server.lisp similarity index 95% rename from test.lisp rename to test-server.lisp index cb94c9c..3a573e2 100644 --- a/test.lisp +++ b/test-server.lisp @@ -1,4 +1,4 @@ - +;; Simple sipc server (ql:quickload :cl-sipc)