Add regression test
This commit is contained in:
parent
37c80225a5
commit
3d6f10c7a3
@ -1,9 +1,9 @@
|
||||
# $OpenBSD: Makefile,v 1.4 2006/07/30 04:38:39 pedro Exp $
|
||||
# $OpenBSD: Makefile,v 1.5 2006/09/24 16:56:08 pedro Exp $
|
||||
SHARED_ONLY= Yes
|
||||
|
||||
COMMENT= "file system library for the lua language"
|
||||
DISTNAME= luafilesystem-1.2
|
||||
PKGNAME= luafs-1.2p0
|
||||
PKGNAME= luafs-1.2p1
|
||||
CATEGORIES= devel
|
||||
MASTER_SITES= http://luaforge.net/frs/download.php/1487/
|
||||
|
||||
@ -17,7 +17,6 @@ PERMIT_PACKAGE_FTP= Yes
|
||||
PERMIT_DISTFILES_CDROM= Yes
|
||||
PERMIT_DISTFILES_FTP= Yes
|
||||
|
||||
NO_REGRESS= Yes
|
||||
BUILD_DEPENDS= ::lang/lua
|
||||
RUN_DEPENDS= ${BUILD_DEPENDS}
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
$OpenBSD: patch-Makefile,v 1.3 2006/03/26 04:56:02 pedro Exp $
|
||||
--- Makefile.orig Sat Mar 25 23:57:54 2006
|
||||
+++ Makefile Sat Mar 25 23:58:13 2006
|
||||
@@ -8,13 +8,17 @@ include $(CONFIG)
|
||||
$OpenBSD: patch-Makefile,v 1.4 2006/09/24 16:56:08 pedro Exp $
|
||||
--- Makefile.orig Sun Sep 24 13:46:06 2006
|
||||
+++ Makefile Sun Sep 24 13:46:34 2006
|
||||
@@ -8,14 +8,18 @@ include $(CONFIG)
|
||||
|
||||
COMPAT_O= $(COMPAT_DIR)/compat-5.1.o
|
||||
SRCS= src/$T.c
|
||||
@ -15,9 +15,20 @@ $OpenBSD: patch-Makefile,v 1.3 2006/03/26 04:56:02 pedro Exp $
|
||||
src/$(LIBNAME): $(OBJS)
|
||||
- export MACOSX_DEPLOYMENT_TARGET="10.3"; $(CC) $(CFLAGS) $(LIB_OPTION) -o src/$(LIBNAME) $(OBJS)
|
||||
+ $(CC) $(CFLAGS) $(LIB_OPTION) lfs.o -o $(LIBNAME)
|
||||
+
|
||||
|
||||
+$(OBJS): $(SRCS)
|
||||
+ $(CC) $(CFLAGS) $(INCS) -c src/lfs.c
|
||||
|
||||
+
|
||||
$(COMPAT_O): $(COMPAT_DIR)/compat-5.1.c
|
||||
$(CC) -c $(CFLAGS) -o $@ $(COMPAT_DIR)/compat-5.1.c
|
||||
|
||||
@@ -26,3 +30,9 @@ install: src/$(LIBNAME)
|
||||
|
||||
clean:
|
||||
rm -f src/$(LIBNAME) $(OBJS) $(COMPAT_O)
|
||||
+
|
||||
+regress:
|
||||
+ @echo "Running test..."; \
|
||||
+ LUA_CPATH="./?.so"; \
|
||||
+ export LUA_CPATH; \
|
||||
+ $(LUA) tests/test.lua
|
||||
|
@ -1,7 +1,7 @@
|
||||
$OpenBSD: patch-config,v 1.4 2006/07/30 04:38:39 pedro Exp $
|
||||
--- config.orig Thu Jul 27 16:38:52 2006
|
||||
+++ config Thu Jul 27 16:39:09 2006
|
||||
@@ -1,20 +1,20 @@
|
||||
$OpenBSD: patch-config,v 1.5 2006/09/24 16:56:08 pedro Exp $
|
||||
--- config.orig Sun Sep 24 13:34:34 2006
|
||||
+++ config Sun Sep 24 13:36:22 2006
|
||||
@@ -1,20 +1,22 @@
|
||||
# Installation directories
|
||||
# System's libraries directory (where binary libraries are installed)
|
||||
-LUA_LIBDIR= /usr/local/lib/lua/5.0
|
||||
@ -9,6 +9,8 @@ $OpenBSD: patch-config,v 1.4 2006/07/30 04:38:39 pedro Exp $
|
||||
# Lua includes directory
|
||||
-LUA_INC= /usr/local/include
|
||||
+LUA_INC= $(LOCALBASE)/include
|
||||
+# Location of the Lua interpreter.
|
||||
+LUA= $(PREFIX)/bin/lua
|
||||
|
||||
# OS dependent
|
||||
LIB_OPTION= -shared #for Linux
|
||||
@ -27,4 +29,4 @@ $OpenBSD: patch-config,v 1.4 2006/07/30 04:38:39 pedro Exp $
|
||||
+CFLAGS+= -fPIC
|
||||
+CC= cc
|
||||
|
||||
# $Id: patch-config,v 1.4 2006/07/30 04:38:39 pedro Exp $
|
||||
# $Id: patch-config,v 1.5 2006/09/24 16:56:08 pedro Exp $
|
||||
|
Loading…
Reference in New Issue
Block a user