head 1.2; access; symbols pkgsrc-2026Q1:1.2.0.4 pkgsrc-2026Q1-base:1.2 pkgsrc-2025Q4:1.2.0.2 pkgsrc-2025Q4-base:1.2 pkgsrc-2025Q3:1.1.0.2 pkgsrc-2025Q3-base:1.1; locks; strict; comment @# @; 1.2 date 2025.10.03.18.14.19; author dkazankov; state Exp; branches; next 1.1; commitid 9pJ5YGe059n0u9dG; 1.1 date 2025.07.28.11.40.31; author dkazankov; state Exp; branches; next ; commitid VwkhX0sio9yqsv4G; desc @@ 1.2 log @ada-prettier-ada-25: add test support @ text @$NetBSD: patch-Makefile,v 1.1 2025/07/28 11:40:31 dkazankov Exp $ Provide gprbuild options Run testsuite in WRKDIR instead of /tmp --- Makefile.orig 2024-10-07 18:46:25.000000000 +0300 +++ Makefile @@@@ -1,12 +1,14 @@@@ BUILD_MODE ?= dev LIBRARY_TYPE ?= relocatable PROCESSORS ?= 0 +GPRBUILD_OPTIONS ?= -p -j$(PROCESSORS) ALL_LIBRARY_TYPES = static static-pic relocatable LIB_PROJECT = prettier_ada.gpr TEST_PROGRAMS = testsuite/test_programs/test_programs.gpr +TESTSUITE_DIR := $(shell pwd)/testsuite .PHONY: lib lib: @@@@ -17,8 +19,7 @@@@ -XPRETTIER_ADA_LIBRARY_TYPE=$(LIBRARY_TYPE) \ -XPRETTIER_ADA_BUILD_MODE=$(BUILD_MODE) \ -P $(LIB_PROJECT) \ - -p \ - -j$(PROCESSORS) ; \ + $(GPRBUILD_OPTIONS) ; .PHONY: all all: @@@@ -30,8 +31,7 @@@@ -XLIBRARY_TYPE=$$library_type \ -XPRETTIER_ADA_BUILD_MODE=$(BUILD_MODE) \ -P $(LIB_PROJECT) \ - -p \ - -j$(PROCESSORS) ; \ + $(GPRBUILD_OPTIONS) ; \ done; .PHONY: clean @@@@ -96,4 +96,6 @@@@ .PHONY: test test: test-programs - python3 testsuite/testsuite.py + TEST_PROGRAMS=$(TESTSUITE_DIR)/test_programs/bin python3 testsuite/testsuite.py \ + -t $(TESTSUITE_DIR)/temp -d $(TESTSUITE_DIR)/dest -o $(TESTSUITE_DIR)/out \ + --no-random-temp-subdir --cleanup-mode all --show-error-output @ 1.1 log @textproc/ada-prettier-ada-25: add new package 25.0.0 Prettier-Ada - port of the Prettier formatter to the Ada @ text @d1 1 a1 1 $NetBSD: patch-Makefile,v 1.0 2024/07/25 12:00:00 dkazankov Exp $ d4 1 d6 1 a6 1 --- Makefile.orig 2024-07-05 12:40:15.000000000 +0300 d8 1 a8 1 @@@@ -1,6 +1,7 @@@@ d16 8 a23 1 @@@@ -17,8 +18,7 @@@@ d33 1 a33 1 @@@@ -30,8 +30,7 @@@@ d43 8 @