pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

test target works for ocaml



Module Name:	pkgsrc-wip
Committed By:	Jaap Boender <jaapb%NetBSD.org@localhost>
Pushed By:	jaapb
Date:		Tue Dec 8 13:00:54 2020 +0100
Changeset:	77c2e6d221e9726b9950027b16c739196a62ce4a

Modified Files:
	ocaml/Makefile

Log Message:
test target works for ocaml

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=77c2e6d221e9726b9950027b16c739196a62ce4a

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 ocaml/Makefile | 3 +++
 1 file changed, 3 insertions(+)

diffs:
diff --git a/ocaml/Makefile b/ocaml/Makefile
index 04b9c174bf..59792497bb 100644
--- a/ocaml/Makefile
+++ b/ocaml/Makefile
@@ -5,6 +5,7 @@
 #CONFIGURE_ENV+=		disable_x11=yes
 
 BUILD_TARGET=		world
+TEST_PROGRAM=		ocamltest
 MAKE_JOBS_SAFE=		no
 UNLIMIT_RESOURCES=	stacksize
 
@@ -38,6 +39,7 @@ PLIST.ocaml-stub=	yes
     !empty(MACHINE_ARCH:M*arm*) || (${MACHINE_ARCH} == "aarch64") || \
     (${MACHINE_ARCH} == "x86_64")
 BUILD_TARGET+=		opt opt.opt
+TEST_PROGRAM+=		ocamltest.opt
 PLIST.ocaml-opt=	yes
 .  if empty(MACHINE_PLATFORM:MDarwin-*-powerpc) && \
       empty(MACHINE_PLATFORM:MSunOS-*-i386) && \
@@ -97,6 +99,7 @@ REPLACE_AWK+=		tools/ocaml-instr-report
 .endif
 
 do-test:
+	cd ${WRKSRC} && ${MAKE_PROGRAM} ${TEST_PROGRAM}
 	cd ${WRKSRC}/testsuite && ${MAKE_PROGRAM} all
 
 .if ${OPSYS} == "Darwin"


Home | Main Index | Thread Index | Old Index