Compare commits

..
Author SHA1 Message Date
Colin Percival 4099b5c828 Update in preparation for 14.5-RELEASE
- Bump BRANCH to RELEASE
- Add the anticipated RELEASE announcement date
- Set a static __FreeBSD_version

Approved by:	re (implicit)
Sponsored by:	OpenSats Initiative
2026-09-04 00:00:00 +00:00
Mark Johnston 813eb5a497 devstat: Fix a kernel stack disclosure
The 16-byte "device_name" field was not zero-filled, so could contain
uninitialized stack data.  Zero the whole struct, as that's the
prevailing pattern for this kind of conversion code, and it's more
robust in the face of future revisions to struct devstat.

Approved by:	re (cperciva)
Reviewed by:	olce, kib
Reported by:	Reo Shiseki
Fixes:		a11d132f6c ("devstat: Provide 32-bit compatibility")
MFC after:	3 days
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D59309

(cherry picked from commit 7cb1a76f88)
(cherry picked from commit 6e94e0734b)
2026-09-03 15:45:57 -07:00
Colin Percival 151d7a8cb1 14.5: Update to RC1
Approved by:	re (implicit)
Sponsored by:	OpenSats Initiative
2026-08-27 17:07:50 -07:00
Colin Percival b503d9e219 Switch from "quarterly" to "release" pkgs on DVD
Approved by:	re (implicit)
Sponsored by:	OpenSats Initiative
2026-08-27 16:55:40 -07:00
Colin Percival 1f20ac6a3d Revert "Remove minor version from kmods repo"
We now have kmod repositories built on releng/14.5 for amd64, arm64,
and i386.

This reverts commit 19a1025e1c.

Approved by:	re (cperciva)
2026-08-27 16:28:00 -07:00
Dag-Erling Smørgrav 5805e0ec88 install: Fix two bugs in stdin code
* Fix case where the source is - and the target exists.

* Only call chflags() (to remove flags that might prevent us from
  replacing an existing target) in the exists case; otherwise,
  to_sb.st_flags is uninitialized.

* Rename the source file in the stdin test case.

* Extend null and stdin test cases to cover the case where the
  target already exists.

Approved by:	re (cperciva)
PR:		297681
MFC after:	1 week
Fixes:		d34870708d ("install: Allow installing stdin")
Reviewed by:	markj
Differential Revision:	https://reviews.freebsd.org/D59144

(cherry picked from commit a5ff4125cf)
(cherry picked from commit 203438d0a3)
2026-08-27 16:27:54 -07:00
Mark Johnston 9c7f4633c5 posixshm: Fix a TOCTOU race in the FIOSSHMLPGCNF handler
The check for whether shm_lp_psind was assigned was unlocked.  This race
can be exploited to create an object with psind==2 but with only
pagesizes[1] worth of pages populated.  This in turn can be used to
escalate privileges.

Fix this by acquiring the rangelock earlier.  In shm_mmap_large(),
assert that we hold the rangelock.  In shm_write(), annotate an unlocked
load of shm_lp_psind.

Approved by:	re (cperciva)
Approved by:	so
Security:	FreeBSD-SA-26:63.posixshm
Security:	CVE-2026-58094
Reported by:	tsune of GMO Cybersecurity by Ierae, Inc. working with TrendAI Zero Day Initiative
Reviewed by:	kib
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D59104
2026-08-24 19:04:38 +00:00
Mark Johnston 1aefa1fab9 tty: Revalidate after dropping the tty lock in ioctl handlers
The TIOCSCTTY ioctl handler drops the tty lock in order to acquire the
proctree relock.  After relocking the tty, it did not revalidate the
tty state, and it could end up linking a doomed tty to the calling
process' session.  This race can be exploited to escalate privileges.

TIOCSPGRP has a similar race, fix that too.

Approved by:	re (cperciva)
Approved by:	so
Security:	FreeBSD-SA-26:62.tty
Security:	CVE-2026-58093
Reported by:	tsune of GMO Cybersecurity by Ierae, Inc. working with TrendAI Zero Day Initiative
Reviewed by:	kib
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D59126
2026-08-24 19:04:32 +00:00
Gordon Tetlow b9cac4b178 openssl: Fix multiple vulnerabilities
This is a rollup commit from upstream to fix:
  Avoid full read buffer allocation when buffering DTLS records
  ssl/record: lower the DTLS unprocessed_rcds queue limit
  Fix heap buffer overflow (8-byte OOB write) in AES-WRAP-PAD unwrap
  Add a test for restricting growth in cmp cert cache
  Fix unbounded cert cache growth in cmp
  Fix Remote NULL deref in ossl_cmp_calc_protection() via crafted protectionAlg

Approved by:	re (cperciva)
Approved by:	so
Obtained from:	OpenSSL
Security:	FreeBSD-SA-26:61.openssl
Security:	CVE-2026-54874
Security:	CVE-2026-63072
Security:	CVE-2026-63074
Security:	CVE-2026-63076
2026-08-24 19:04:13 +00:00
Mark Johnston c086ed0cc5 ppp: Fix a buffer overflow in the endpoint discriminator set command
Approved by:	re (cperciva)
Reported by:	Reo Shiseki
MFC after:	3 days
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D59054

(cherry picked from commit 6cb7e368da)
(cherry picked from commit 55ee29bf35)
2026-08-24 19:03:48 +00:00
Mark Johnston 514ef2fdfc dsp: Fix a potential use-after-free in dsp_oss_syncstart()
This function has a loop where it attempts to lock all channels in a
group.  If doing so would block, it releases all locks, sleeps for a
bit, and tries again.  However, once the syncgroup lock is dropped,
nothing prevents the syncgroup structure from being freed.

Fix the inner loop: after waking up, break out of it unconditionally and
start everything again.  I think the old code was also buggy and not
well-exercised: after waking up we'd continue to try and continue
locking channels.  Then we'd try again from the beginning and fail to
lock the channels we had already locked.

Approved by:	re (cperciva)
Approved by:	so
Security:	FreeBSD-SA-26:58.sound
Security:	CVE-2026-58091
Reported by:	Hazley Samsudin of GovTech CSG
Reviewed by:	christos
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D58912
2026-08-24 19:03:06 +00:00
Mark Johnston 77528485e8 hwpmc: Fix the execve handler
When a process execve()s, pmc_process_exec() is supposed to evaluate
whether the new image is setuid/setgid and if so, whether to detach
PMCs.  This was handled by pmc_can_attach(), which is effectively an
open-coded copy of cr_xids_subset().

Unfortunately, the test of the result of this function was inverted,
with the result that we'd detach PMCs only if the predicate said it was
okay to do so.  It appears the bug has always been there; it seems the
intent was to return 0 on "success", i.e., it is okay to attach the
PMCs, much like p_candebug().  Commits 1c3c698ba4 and 1c40b15971
obscured this a bit.

I think this check is trying to be too clever.  Let's make it simpler:
simply do not attach PMCs unless the owner is privileged.  This is how,
e.g., ktrace works.  I do not think it's worth trying to be more
sophisticated than this unless we can generalize the policy in a way
that's applicable to other subsystems.

Also fix a bug at the end of pmc_process_exec():
pmc_detach_one_process() will call pmc_remove_process_descriptor() for
us.

Approved by:	re (cperciva)
Approved by:	so
Security:	FreeBSD-SA-26:56.hwpmc
Security:	CVE-2026-58089
Reported by:	netchild
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D59102
2026-08-24 19:02:58 +00:00
Colin Percival 03c50e6573 15.1: Update to BETA3
Approved by:	re (implicit)
Sponsored by:	OpenSats Initiative
2026-08-20 17:01:48 -07:00
Mark Johnston bdfae0fed8 epoch: Fix epoch_drain_callbacks()
This function is supposed to wait until all pending callbacks have been
executed.  This is useful in some contexts where we tear down some
context (like a VNET jail and its associated UMA zones) synchronously,
and we want to make sure that all pending asynchronous callbacks (which
may free objects to said UMA zones) have run first.

The implementation schedules a callback on each CPU and waits for them
all to run.  This assumes that, on a given CPU, callbacks are executed
in the order that they are pushed.  This assumption depends on the
implementation of epoch_call_task() and ck_epoch_poll_deferred(), and it
is not true in general.

Callbacks are pushed onto a per-CPU stack in LIFO order.
ck_epoch_poll_deferred() first pulls out the callbacks from epoch - 2,
which are always safe to execute, and in so doing reorders them such
that the oldest callback as at the top of the stack, so in this case,
epoch_call_task() will execute them in order.  However,
ck_epoch_poll_deferred() may determine that it is safe to execute
callbacks from epoch - 1 (or even from the current epoch if there are
no active readers), and in this case it will push those callbacks onto
the returned stack.  This means that epoch_call_task() will invoke those
newer destructors before the older ones, which means that
epoch_drain_callbacks() may return early.

Fix the correctness problem by simply doing all of this twice: once the
first callback is invoked, we know that all of the callbacks that were
pending at the time that epoch_drain_callbacks() was called are
scheduled to be executed, so when the second callback is executed we
know that they must be finished.  This is slow, but it is already slow,
and the slowness is less noticeable after commit dce5659499.

I note that in an ideal world, this function would not exist, and all of
the teardown would happen asynchronously, rather than the current
mismash of synchronous and asynchronous cleanup.

Approved by:	re (cperciva)
PR:		290201
Reviewed by:	glebius
MFC after:	1 month
Differential Revision:	https://reviews.freebsd.org/D58030

(cherry picked from commit 7bf11a2f0c)
(cherry picked from commit 8eef466432)
2026-08-20 10:53:07 -07:00
Mark Johnston eddae793c8 ctl.4: Document the assumption that CTL HA runs only on trusted networks
The CTL High Availablity clustering feature allows a pair of hosts to
implement transparent failover.  The implementation uses a TCP
connection to exchange messages.  There is no authentication mechanism
and the protocol itself embeds kernel pointers in the messages exchanged
between HA hosts.  This property (of CTL_MSG_DATAMOVE messages
specifically), as well as insufficient validation of inbound messages,
mean that anyone able to access a CTL HA port is able to remotely
execute code on that host.

Provide a warning to this effect in the CTL man page.

Approved by:	re (cperciva)
Reported by:	Ryan of Calif.io
Reviewed by:	ziaee, ken, mav
MFC after:	3 days
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D58622

(cherry picked from commit 3c8f8432b6)
(cherry picked from commit 43a34002f6)
2026-08-20 10:53:04 -07:00
Mark Johnston 10dd09ca4c ppp: Reject invalid endpoint discriminator options
Per RFC1717 section 5.1.3, the option length must be at least three.
Processing an undersized option would trigger a large out-of-bounds
write.

Approved by:	re (cperciva)
PR:		271910
Reported by:	Robert Morris
Reported by:	Décio Brandão (0xDBJ)
Reviewed by:	emaste
MFC after:	1 week
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D58554

(cherry picked from commit b9d07a4308)
(cherry picked from commit 30b4bdd451)
2026-08-20 10:53:01 -07:00
Mark Johnston 281fb7d8a2 ppp: Avoid overflow when formatting endpoint discriminator options
Each byte of the address is represented by a pair of characters, so we
should be multiplying len by 2 when figuring out how much buffer space
we have.  Previously, a sufficiently large option could cause an
overflow of the global "result" buffer.

Approved by:	re (cperciva)
Reported by:	Joshua Rogers <[email protected]>
Tested by:	Décio Brandão (0xDBJ)
MFC after:	3 days
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D58555

(cherry picked from commit e004ff15f8)
(cherry picked from commit 607c41d8f8)
2026-08-20 10:52:58 -07:00
Mark Johnston 43bbea2cc8 proc: Copy the p_reapsubtree field explicitly during fork
p_reapsubtree lives in the p_startcopy/p_endcopy block of struct proc,
which is copied during fork without any synchronization.  However, the
field is not stable except when the proctree lock is held, and indeed
may change if p1's reaper exits or explicitly releases its reaper
status.  This state change can race with fork() and leave the child with
an incorrect p_reapsubtree field.

Close the race: explicitly copy the field under the proctree lock during
fork.

Approved by:	re (cperciva)
Reported by:	syzkaller
Reviewed by:	kib
MFC after:	2 weeks
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D58482

(cherry picked from commit 8616b7dc38)
(cherry picked from commit fb0af871db)
2026-08-20 10:52:55 -07:00
Mark Johnston dde557209a rawip: Fix handling of checksums in rip6_input()
A v6 raw socket may ask the kernel to validate the checksum of an
inbound packet.  If it does, and the validation fails, we discard the
packet, but this isn't really right: other raw sockets may wish to
receive a copy of the packet anyway.

Rework checksum handling to address this problem, and use a flag to
avoid computing the checksum more than once for a given packet.

Approved by:	re (cperciva)
Fixes:		de2d47842e ("SMR protection for inpcbs")
Reviewed by:	pouria, glebius
Reported by:	Yunzhi Ke
MFC after:	1 week
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D58559

(cherry picked from commit 196874ce2e)
(cherry picked from commit 1fe3a2897b)
2026-08-20 10:52:51 -07:00
Mark Johnston 9c5f81332b in_mcast: Fix uninitialized variable usage in inm_merge()
When the first loop in inm_merge() hits an error, generally because it
hit some limit on the number of source filters for a multicast group,
inm_merge() tries to atomically roll back changes to the group source
filter list.

To roll back, it iterates over the global source filter list for the
multicast group, starting at the last entry that we updated ("nims").
But, if we have not yet updated any entries, this variable is
uninitialized.  Initialize it to NULL, so that RB_FOREACH_REVERSE_FROM
doesn't visit any source filters in this case.

All of the above applies to the v6 case.

Approved by:	re (cperciva)
Reported by:	Daniel Birtwhistle
MFC after:	1 week
Sponsored by:	The FreeBSD Foundation

(cherry picked from commit b9db5a5b16)
(cherry picked from commit 843ef89615)
2026-08-20 10:52:45 -07:00
Xin LI 7cc6a5d464 MFV: less v704.
(cherry picked from commit fa0dc4f0f9)
(cherry picked from commit 86aea5b4db)

Approved by:	re (cperciva)
2026-08-18 13:17:56 -07:00
Xin LI 3a1396af29 MFV less v691
Relnotes:	yes

(cherry picked from commit dafba19e42)

MFV: less v692.

(cherry picked from commit e2abec625b)
(cherry picked from commit 6330c2f5fb)

Approved by:	re (cperciva)
2026-08-18 13:17:45 -07:00
Eric van Gyzen 31c2290fc1 if_vmx: fix panic during kldload
Just like vmxnet3_intr_disable_all, iflib may invoke this routine
before vmxnet3_attach_post() has run, which is before the top-level
shared data area is initialized and the device made aware of it.

Approved by:	re (cperciva)
PR:		294312
Sponsored by:	Dell Inc.

(cherry picked from commit 01b0690c49)
(cherry picked from commit 065396e09e)
2026-08-17 18:27:46 -07:00
Konstantin Belousov 2f580cc4c2 netipsec/xform_ipcomp.c: fix sockaddr type set in ipcomp6_nonexp_encapcheck()
Approved by:	re (cperciva)

(cherry picked from commit 01d4e3c1d3)
(cherry picked from commit 3626363aae)
2026-08-17 18:27:43 -07:00
Konstantin Belousov feecef8df3 PF_KEY socket: limit the length of copied socket address
Approved by:	re (cperciva)
PR:	297264

(cherry picked from commit cba481a7bf)
(cherry picked from commit 022f935a1f)
2026-08-17 18:27:38 -07:00
Konstantin Belousov 8ca6be06ee netipsec/key.c::key_checksockaddrs(): constify src/dst address buffer pointers
Approved by:	re (cperciva)

(cherry picked from commit fbe9aa7ebf)
(cherry picked from commit af11a69e53)
2026-08-17 18:26:43 -07:00
Colin Percival 19a1025e1c Remove minor version from kmods repo
We don't have a kmods_quarterly_5 repo for releng/14.5 so don't point
users at it.

Direct commit to releng/14.5, hopefully to be reverted once the repo
exists.

Approved by:	re (cperciva)
Sponsored by:	OpenSats Initiative
2026-08-13 17:02:24 -07:00
Colin Percival 8bca5d0c0d 14.5: Update to BETA2
Approved by:	re (implicit)
Sponsored by:	OpenSats Initiative
2026-08-14 00:00:00 +00:00
Colin Percival c33f8dd282 Revert "sys/socket.h: Fix AF_MAX"
Back out this change for 14.5-BETA2.  It might come back with
changes, but in its current form it breaks ABI.

This reverts commit f77a60a27a.

Approved by:	re (cperciva)
2026-08-13 16:44:33 -07:00
Dag-Erling Smørgrav 2cc2d2f64f pseudofs: Don't purge the cache on shutdown
This is a waste of time and results in a use-after-free if linsysfs is
loaded and a USB network interface is in use, since USB devices are
disconnected at shutdown, which triggers a call into linsysfs, which
then tries to destroy a pseudofs node which has already been purged.

Approved by:	re (cperciva)
MFC after:	1 week
Reviewed by:	glebius
Differential Revision:	https://reviews.freebsd.org/D58359

(cherry picked from commit 4ebcdb8dd9)
(cherry picked from commit ea65604407)
2026-08-13 16:44:11 -07:00
Dag-Erling Smørgrav c555236ec7 unbound: Update to 1.26.0
Release notes at
        https://community.nlnetlabs.nl/t/unbound-1-26-0-released

Merge commit '84ffc29dc8ddb0c946db5cb3b3c1310bec6a9e6c'

Approved by:	re (cperciva)

(cherry picked from commit 7a789145f8)
(cherry picked from commit ceb764f65d)
2026-08-13 16:44:00 -07:00
Enji Cooper a9a5c96f55 crypto/openssl: correct version numbers for pkg-config files
The files were incorrectly reporting 3.5.1 instead of 3.0.21.

This is a direct commit to stable/14 as stable/15 and later are on
OpenSSL 3.5.

Approved by:	re (cperciva)
PR:	297144
Fixes:	d03be8cf ("crypto/openssl: make vendor imports easier/less error prone")
(cherry picked from commit 2e04d98688)
2026-08-12 17:08:42 -07:00
Dag-Erling Smørgrav fbe0d8aa64 mbuf: Parenthesize macro arguments
Approved by:	re (cperciva)
MFC after:	1 week
Sponsored by:	Klara, Inc.
Sponsored by:	NetApp, Inc.

(cherry picked from commit 744cc51456)
(cherry picked from commit 7d8fc2a82b)
2026-08-12 17:08:37 -07:00
Dag-Erling Smørgrav f77a60a27a sys/socket.h: Fix AF_MAX
AF_MAX was always intended to be one more than the greatest allocated
value.  Jeff broke this in 2013.  Unfortunately, a bunch of people then
decided to adapt to the mistake instead of correcting it.

Approved by:	re (cperciva)
Fixes:          863c7e4562 (" - Reserve a special AF for SDP.  The one we were incorrectly using before    was taken by another AF.")
MFC after:	3 days
Sponsored by:	Klara, Inc.
Sponsored by:	NetApp, Inc.
Reviewed by:	kevans, glebius
Differential Revision:	https://reviews.freebsd.org/D58597

(cherry picked from commit ddd850aa77)
(cherry picked from commit 2d25276471)
2026-08-12 17:08:29 -07:00
Konstantin Belousov ce139f7da0 geom_zero(4): reset the uio vector on each uiomove()
PR:	297062

Approved by:	re (cperciva)

(cherry picked from commit 34ca5a9e73)
(cherry picked from commit 51f5623874)
2026-08-12 17:08:18 -07:00
Colin Percival f68ca7c41d Revert "release: Ship firmware from kmods repo on DVD"
This was a good idea, but we don't build metapackages in the kmods
repo so it ends up breaking the release build.  I might resurrect this
change if/when the kmods repo includes the wifi-firmware-kmod
metapackage.

This reverts commit bda8028146.

MFC after:	1 second
Approved by:	re (cperciva)

(cherry picked from commit ca0cff7932)
(cherry picked from commit daf81f32f8)
2026-08-07 08:55:00 -07:00
Colin Percival 187da1388d 14.5: create releng/14.5 branch
Update from PRERELEASE to BETA1
Switch pkg(8) configuration to use the quarterly repositories
Bump __FreeBSD_version to 1405000

Approved by:	re (implicit)
Sponsored by:	OpenSats Initiative
2026-08-07 00:00:00 +00:00
3770 changed files with 282946 additions and 234027 deletions

No files matched your search

+22
View File
@@ -0,0 +1,22 @@
#!/bin/sh
set -e
start_time=$(date +%s)
pkg install -y "$@" && exit 0
cat <<EOF
pkg install failed after $(($(date +%s) - $start_time))s
dmesg tail:
$(dmesg | tail)
trying again
EOF
start_time=$(date +%s)
pkg install -y "$@" && exit 0
cat <<EOF
second pkg install failed after $(($(date +%s) - $start_time))s
EOF
exit 1
+191
View File
@@ -0,0 +1,191 @@
compute_engine_instance:
# Image list available via
# gcloud compute images list --project freebsd-org-cloud-dev --no-standard-images
platform: freebsd
image_project: freebsd-org-cloud-dev
image: freebsd-14-3-release-amd64-ufs
cpu: 8
memory: 8G
disk: 40
env:
PKG_LEVEL: 1
task:
matrix:
- name: amd64-llvm16 World and kernel build and boot smoke test (manual)
only_if: $CIRRUS_REPO_FULL_NAME != 'freebsd/freebsd-src'
trigger_type: manual
env:
TARGET: amd64
TARGET_ARCH: amd64
TOOLCHAIN: llvm16
TOOLCHAIN_PKG: ${TOOLCHAIN}-lite
- name: amd64-llvm17 World and kernel build and boot smoke test (manual)
only_if: $CIRRUS_REPO_FULL_NAME != 'freebsd/freebsd-src'
trigger_type: manual
env:
TARGET: amd64
TARGET_ARCH: amd64
TOOLCHAIN: llvm17
TOOLCHAIN_PKG: ${TOOLCHAIN}-lite
- name: amd64-llvm18 World and kernel build and boot smoke test (manual)
only_if: $CIRRUS_REPO_FULL_NAME != 'freebsd/freebsd-src'
trigger_type: manual
env:
TARGET: amd64
TARGET_ARCH: amd64
TOOLCHAIN: llvm18
TOOLCHAIN_PKG: ${TOOLCHAIN}-lite
- name: amd64-llvm19 World and kernel build and boot smoke test
only_if: $CIRRUS_REPO_FULL_NAME != 'freebsd/freebsd-src' || $CIRRUS_BRANCH =~ 'pull/.*'
env:
TARGET: amd64
TARGET_ARCH: amd64
TOOLCHAIN: llvm19
TOOLCHAIN_PKG: ${TOOLCHAIN}-lite
- name: arm64-llvm16 World and kernel build and boot smoke test (manual)
only_if: $CIRRUS_REPO_FULL_NAME != 'freebsd/freebsd-src'
trigger_type: manual
env:
TARGET: arm64
TARGET_ARCH: aarch64
TOOLCHAIN: llvm16
TOOLCHAIN_PKG: ${TOOLCHAIN}
- name: arm64-llvm17 World and kernel build and boot smoke test (manual)
only_if: $CIRRUS_REPO_FULL_NAME != 'freebsd/freebsd-src'
trigger_type: manual
env:
TARGET: arm64
TARGET_ARCH: aarch64
TOOLCHAIN: llvm17
TOOLCHAIN_PKG: ${TOOLCHAIN}
- name: arm64-llvm18 World and kernel build and boot smoke test (manual)
only_if: $CIRRUS_REPO_FULL_NAME != 'freebsd/freebsd-src'
trigger_type: manual
env:
TARGET: arm64
TARGET_ARCH: aarch64
TOOLCHAIN: llvm18
TOOLCHAIN_PKG: ${TOOLCHAIN}
- name: arm64-llvm19 World and kernel build and boot smoke test (manual)
only_if: $CIRRUS_REPO_FULL_NAME != 'freebsd/freebsd-src'
trigger_type: manual
env:
TARGET: arm64
TARGET_ARCH: aarch64
TOOLCHAIN: llvm19
TOOLCHAIN_PKG: ${TOOLCHAIN}
- name: amd64-gcc12 World and kernel build and boot smoke test (manual)
only_if: $CIRRUS_REPO_FULL_NAME != 'freebsd/freebsd-src'
trigger_type: manual
env:
TARGET: amd64
TARGET_ARCH: amd64
TOOLCHAIN: amd64-gcc12
TOOLCHAIN_PKG: ${TOOLCHAIN}
EXTRA_MAKE_FLAGS: -s
- name: amd64-gcc13 World and kernel build and boot smoke test (manual)
only_if: $CIRRUS_REPO_FULL_NAME != 'freebsd/freebsd-src'
trigger_type: manual
env:
TARGET: amd64
TARGET_ARCH: amd64
TOOLCHAIN: amd64-gcc13
TOOLCHAIN_PKG: ${TOOLCHAIN}
EXTRA_MAKE_FLAGS: -s
- name: amd64-gcc14 World and kernel build and boot smoke test (manual)
only_if: $CIRRUS_REPO_FULL_NAME != 'freebsd/freebsd-src'
trigger_type: manual
env:
TARGET: amd64
TARGET_ARCH: amd64
TOOLCHAIN: amd64-gcc14
TOOLCHAIN_PKG: ${TOOLCHAIN}
EXTRA_MAKE_FLAGS: -s
- name: aarch64-gcc12 World and kernel build and boot smoke test (manual)
only_if: $CIRRUS_REPO_FULL_NAME != 'freebsd/freebsd-src'
trigger_type: manual
env:
TARGET: arm64
TARGET_ARCH: aarch64
TOOLCHAIN: aarch64-gcc12
TOOLCHAIN_PKG: ${TOOLCHAIN}
EXTRA_MAKE_FLAGS: -s
- name: aarch64-gcc13 World and kernel build and boot smoke test (manual)
only_if: $CIRRUS_REPO_FULL_NAME != 'freebsd/freebsd-src'
trigger_type: manual
env:
TARGET: arm64
TARGET_ARCH: aarch64
TOOLCHAIN: aarch64-gcc13
TOOLCHAIN_PKG: ${TOOLCHAIN}
EXTRA_MAKE_FLAGS: -s
- name: aarch64-gcc14 World and kernel build and boot smoke test (manual)
only_if: $CIRRUS_REPO_FULL_NAME != 'freebsd/freebsd-src'
trigger_type: manual
env:
TARGET: arm64
TARGET_ARCH: aarch64
TOOLCHAIN: aarch64-gcc14
TOOLCHAIN_PKG: ${TOOLCHAIN}
EXTRA_MAKE_FLAGS: -s
- name: amd64-gcc14 World and kernel build and boot smoke test (FreeBSD repo)
only_if: $CIRRUS_REPO_FULL_NAME == 'freebsd/freebsd-src' && $CIRRUS_BRANCH =~ 'pull/.*'
env:
TARGET: amd64
TARGET_ARCH: amd64
TOOLCHAIN: amd64-gcc14
TOOLCHAIN_PKG: ${TOOLCHAIN}
EXTRA_MAKE_FLAGS: -s
timeout_in: 120m
install_script:
- sh .cirrus-ci/pkg-install.sh ${TOOLCHAIN_PKG} git-lite
setup_script:
- uname -a
- gpart show
- df -m
- pkg --version
- pw useradd -n user -m
- mkdir -p /usr/obj/$(pwd -P)
- chown user:user /usr/obj/$(pwd -P)
- su user -c "git config --global --add safe.directory $(pwd -P)"
build_world_script:
- su user -c "make -j$(nproc) ${EXTRA_MAKE_FLAGS} CROSS_TOOLCHAIN=${TOOLCHAIN} WITHOUT_TOOLCHAIN=yes buildworld"
build_kernel_script:
- su user -c "make -j$(nproc) CROSS_TOOLCHAIN=${TOOLCHAIN} WITHOUT_TOOLCHAIN=yes buildkernel"
package_script:
- su user -c "make -j$(nproc) CROSS_TOOLCHAIN=${TOOLCHAIN} WITHOUT_TOOLCHAIN=yes packages"
package_check_script:
- su user -c "/usr/libexec/flua tools/pkgbase/metalog_reader.lua -c /usr/obj/$(pwd -P)/${TARGET}.${TARGET_ARCH}/worldstage/METALOG"
test_script:
- sh .cirrus-ci/pkg-install.sh qemu-nox11
- sh tools/boot/ci-qemu-test.sh
make_sysent_script:
# Check that make sysent results were committed if required
- make sysent
- if ! git diff --exit-code; then printf "\n>>> Generated sysent files not updated, run make sysent <<<\n"; false; fi
include_ldirs_script:
# Check that includes/Makefile refers to existing directories
- if ! make -C include/ check-ldirs; then printf "\n>>> include/Makefile lists nonexistant directories <<<\n"; false; fi
makeman_script:
# Check that the committed src.conf.5 matches the one generated by
# tools/build/options/makeman (modulo the date which always updates)
# XXX: This script is slow so keep it last
- (make makeman 2> /tmp/makeman.out); cat /tmp/makeman.out
- if ! git diff --exit-code --ignore-matching-lines "^.Dd" share/man/man5/src.conf.5; then printf "\n>>> src.conf.5 was not updated as required <<<\n"; false; fi
- if grep -q "no description found" /tmp/makeman.out; then printf "\n>>> Missing description files <<<\n"; false; fi
post_script:
- df -m
- du -m -s /usr/obj
+11 -15
View File
@@ -5,7 +5,6 @@ on:
branches: [ main, 'stable/[1-9][0-9]' ]
pull_request:
branches: [ main ]
workflow_dispatch:
permissions:
contents: read
@@ -18,21 +17,21 @@ jobs:
fail-fast: false
matrix:
target_arch: [ amd64, aarch64 ]
os: [ ubuntu-22.04, ubuntu-24.04, macos-latest ]
os: [ ubuntu-20.04, ubuntu-22.04, macos-latest ]
include:
# TODO: both Ubuntu and macOS have bmake packages, we should try them instead of bootstrapping our own copy.
- os: ubuntu-20.04
compiler: clang-12
cross-bindir: /usr/lib/llvm-12/bin
pkgs: bmake libarchive-dev clang-12 lld-12
- os: ubuntu-22.04
compiler: clang-15
cross-bindir: /usr/lib/llvm-15/bin
pkgs: bmake libarchive-dev clang-15 lld-15
- os: ubuntu-24.04
compiler: clang-18
cross-bindir: /usr/lib/llvm-18/bin
pkgs: bmake libarchive-dev clang-18 lld-18
compiler: clang-14
cross-bindir: /usr/lib/llvm-14/bin
pkgs: bmake libarchive-dev clang-14 lld-14
- os: macos-latest
compiler: clang-18
cross-toolchain: llvm@18
pkgs: bmake libarchive llvm@18
compiler: clang-13
cross-bindir: /opt/homebrew/opt/llvm@13/bin
pkgs: bmake libarchive llvm@13
- target_arch: amd64
target: amd64
- target_arch: aarch64
@@ -55,9 +54,6 @@ jobs:
if [ -n "${{ matrix.cross-bindir }}" ]; then
echo "EXTRA_BUILD_ARGS=--cross-bindir=${{ matrix.cross-bindir }}" >> $GITHUB_ENV
fi
if [ -n "${{ matrix.cross-toolchain }}" ]; then
echo "EXTRA_BUILD_ARGS=--cross-toolchain=${{ matrix.cross-toolchain }}" >> $GITHUB_ENV
fi
mkdir -p ../build
echo "MAKEOBJDIRPREFIX=${PWD%/*}/build" >> $GITHUB_ENV
# heh, works on Linux/BSD/macOS ...
-13
View File
@@ -51,19 +51,6 @@
# xargs -n1 | sort | uniq -d;
# done
# 20261020: Regenerate trust store
OLD_FILES+=usr/share/certs/trusted/Atos_TrustedRoot_2011.pem
OLD_FILES+=usr/share/certs/trusted/SecureSign_Root_CA12.pem
OLD_FILES+=usr/share/certs/trusted/ePKI_Root_Certification_Authority.pem
OLD_FILES+=usr/share/certs/trusted/emSign_ECC_Root_CA_-_C3.pem
OLD_FILES+=usr/share/certs/trusted/emSign_ECC_Root_CA_-_G3.pem
OLD_FILES+=usr/share/certs/trusted/emSign_Root_CA_-_C1.pem
OLD_FILES+=usr/share/certs/untrusted/Entrust_Root_Certification_Authority.pem
# 20260925: lesskey(1) removed, lesskey(5) man page added
OLD_FILES+=usr/bin/lesskey
OLD_FILES+=usr/share/man/man1/lesskey.1.gz
# 20260602: Removed by 0a36787e4c1f on 20210723
OLD_FILES+=usr/share/locale/hr_HR.ISO8859-2/LC_MESSAGES
OLD_FILES+=usr/share/locale/nl_BE.ISO8859-1/LC_MESSAGES
-9
View File
@@ -10,15 +10,6 @@ newline. Entries should be separated by a newline.
Changes to this file should not be MFCed.
c7bcccbb669e:
less(1) has been updated to version 710. The obsolete lesskey(1)
utility has been removed; less(1) reads plain-text lesskey files
such as ~/.lesskey and /etc/syslesskey directly, and the file format
is now documented in lesskey(5). New features in this release
include the || command, the right-limit-scroll command, underlining
of OSC 8 hyperlinks, -DO for coloring them, and LESSMSG, which
allows less(1) messages to be translated into other languages.
8accd4d99f81:
Update smartpqi(4) to vendor version 14.4690.0.2008 - 15.2.0.2008
for the SmartArray storage controllers. This adds support for new
+2 -20
View File
@@ -12,26 +12,8 @@ Items affecting the ports and packages system can be found in
/usr/ports/UPDATING. Please read that file before updating system packages
and/or ports.
20260925:
less(1) has been updated to version 710, which removes the obsolete
lesskey(1) utility. It is no longer built or installed, and the
manual page describing the lesskey file format has moved from
lesskey(1) to lesskey(5).
No separate compilation step is needed any more: less(1) has been
able to read plain-text lesskey files directly since version 590,
imported into FreeBSD in 2021. Keep your key bindings in the
plain-text ~/.lesskey (or the file named by $LESSKEYIN) rather than
compiling them into the binary ~/.less; system-wide bindings belong
in /etc/syslesskey (or $LESSKEYIN_SYSTEM) rather than /etc/sysless.
If both forms are present, the plain-text one is used and the binary
one is ignored.
Existing binary lesskey files are still read, so nothing stops
working immediately, but they can no longer be generated or
regenerated. Binary files produced by lesskey from less 240 or
older are no longer supported at all and must be rewritten in the
plain-text format.
20260908:
14.5-RELEASE.
20260727:
The wait_for_pids() function in rc.subr, used by rc scripts
-1
View File
@@ -403,7 +403,6 @@ Recognized control-characters:
.It susp Ta Tn VSUSP Ta SUSP No character
.It start Ta Tn VSTART Ta START No character
.It stop Ta Tn VSTOP Ta STOP No character
.It discard Ta Tn VDISCARD Ta DISCARD No character
.It dsusp Ta Tn VDSUSP Ta DSUSP No character
.It lnext Ta Tn VLNEXT Ta LNEXT No character
.It reprint Ta Tn VREPRINT Ta REPRINT No character
@@ -77,8 +77,9 @@ ctf_hash_compute(const char *key, size_t len)
{
ulong_t g, h = 0;
const char *p, *q = key + len;
size_t n = 0;
for (p = key; p < q; p++) {
for (p = key; p < q; p++, n++) {
h = (h << 4) + *p;
if ((g = (h & 0xf0000000)) != 0) {
@@ -5,7 +5,7 @@
PACKAGE= tests
TFILES= \
${PACKAGE}FILES= \
tst.rax.d \
tst.uregsarray.d \
@@ -15,7 +15,5 @@ TESTEXES= \
CFILES= \
tst.rax.c \
${PACKAGE}FILES= ${TFILES} ${CFILES}
.include "../../dtrace.test.mk"
@@ -5,7 +5,7 @@
PACKAGE= tests
TFILES= \
${PACKAGE}FILES= \
err.D_AGG_FUNC.bad.d \
err.D_AGG_MDIM.bad.d \
err.D_AGG_NULL.bad.d \
@@ -188,7 +188,5 @@ TESTEXES= \
CFILES= \
${PACKAGE}FILES= ${TFILES} ${CFILES}
.include "../../dtrace.test.mk"
@@ -5,7 +5,7 @@
PACKAGE= tests
TFILES= \
${PACKAGE}FILES= \
err.D_DIV_ZERO.divby0.d \
err.D_DIV_ZERO.divby0_1.d \
err.D_DIV_ZERO.divby0_2.d \
@@ -29,7 +29,5 @@ TESTEXES= \
CFILES= \
${PACKAGE}FILES= ${TFILES} ${CFILES}
.include "../../dtrace.test.mk"
@@ -5,7 +5,7 @@
PACKAGE= tests
TFILES= \
${PACKAGE}FILES= \
err.D_ARR_BADREF.bad.d \
err.D_DECL_ARRBIG.toobig.d \
err.D_DECL_ARRNULL.bad.d \
@@ -26,7 +26,5 @@ TESTEXES= \
CFILES= \
${PACKAGE}FILES= ${TFILES} ${CFILES}
.include "../../dtrace.test.mk"
@@ -5,7 +5,7 @@
PACKAGE= tests
TFILES= \
${PACKAGE}FILES= \
err.D_OP_INCOMPAT.dupgtype.d \
err.D_OP_INCOMPAT.dupttype.d \
err.D_OP_INCOMPAT.this.d \
@@ -29,7 +29,5 @@ TESTEXES= \
CFILES= \
${PACKAGE}FILES= ${TFILES} ${CFILES}
.include "../../dtrace.test.mk"
@@ -5,7 +5,7 @@
PACKAGE= tests
TFILES= \
${PACKAGE}FILES= \
err.D_PDESC_ZERO.begin.d \
err.D_PDESC_ZERO.tick.d \
tst.begin.d \
@@ -19,7 +19,5 @@ TESTEXES= \
CFILES= \
${PACKAGE}FILES= ${TFILES} ${CFILES}
.include "../../dtrace.test.mk"
@@ -5,7 +5,7 @@
PACKAGE= tests
TFILES= \
${PACKAGE}FILES= \
err.D_ADDROF_BITFIELD.BitfieldAddress.d \
err.D_DECL_BFCONST.NegBitField.d \
err.D_DECL_BFCONST.ZeroBitField.d \
@@ -23,7 +23,5 @@ TESTEXES= \
CFILES= \
${PACKAGE}FILES= ${TFILES} ${CFILES}
.include "../../dtrace.test.mk"
@@ -5,7 +5,7 @@
PACKAGE= tests
TFILES= \
${PACKAGE}FILES= \
err.end.d \
err.resize1.d \
err.resize2.d \
@@ -34,7 +34,5 @@ TESTEXES= \
CFILES= \
${PACKAGE}FILES= ${TFILES} ${CFILES}
.include "../../dtrace.test.mk"
@@ -5,7 +5,7 @@
PACKAGE= tests
TFILES= \
${PACKAGE}FILES= \
err.D_XLATE_NOCONV.cpuusage.d \
err.D_XLATE_NOCONV.nice.d \
err.D_XLATE_NOCONV.priority.d \
@@ -45,7 +45,5 @@ TESTEXES= \
CFILES= \
${PACKAGE}FILES= ${TFILES} ${CFILES}
.include "../../dtrace.test.mk"
@@ -5,7 +5,7 @@
PACKAGE= tests
TFILES= \
${PACKAGE}FILES= \
err.D_NOREG.noreg.d \
err.baddif.d \
@@ -15,7 +15,5 @@ TESTEXES= \
CFILES= \
${PACKAGE}FILES= ${TFILES} ${CFILES}
.include "../../dtrace.test.mk"
@@ -5,7 +5,7 @@
PACKAGE= tests
TFILES= \
${PACKAGE}FILES= \
err.D_IDENT_UNDEF.aggfun.d \
err.D_IDENT_UNDEF.aggtup.d \
err.D_IDENT_UNDEF.arrtup.d \
@@ -23,7 +23,5 @@ TESTEXES= \
CFILES= \
${PACKAGE}FILES= ${TFILES} ${CFILES}
.include "../../dtrace.test.mk"
@@ -5,7 +5,7 @@
PACKAGE= tests
TFILES= \
${PACKAGE}FILES= \
err.D_PDESC_ZERO.lowfrequency.d \
err.D_PDESC_ZERO.malformedoverflow.d \
err.D_PDESC_ZERO.nonexistentevent.d \
@@ -24,7 +24,5 @@ TESTEXES= \
CFILES= \
${PACKAGE}FILES= ${TFILES} ${CFILES}
.include "../../dtrace.test.mk"
@@ -5,7 +5,7 @@
PACKAGE= tests
TFILES= \
${PACKAGE}FILES= \
err.D_DECL_LOCASSC.NonLocalAssoc.d \
err.D_DECL_LONGINT.LongStruct.d \
err.D_DECL_PARMCLASS.BadStorageClass.d \
@@ -27,7 +27,5 @@ TESTEXES= \
CFILES= \
${PACKAGE}FILES= ${TFILES} ${CFILES}
.include "../../dtrace.test.mk"
@@ -5,7 +5,7 @@
PACKAGE= tests
TFILES= \
${PACKAGE}FILES= \
badptr.d \
countdown.d \
counter.d \
@@ -29,7 +29,5 @@ TESTEXES= \
CFILES= \
${PACKAGE}FILES= ${TFILES} ${CFILES}
.include "../../dtrace.test.mk"
@@ -5,7 +5,7 @@
PACKAGE= tests
TFILES= \
${PACKAGE}FILES= \
drp.DTRACEDROP_AGGREGATION.d \
drp.DTRACEDROP_DBLERROR.d \
drp.DTRACEDROP_DYNAMIC.d \
@@ -21,7 +21,5 @@ TESTEXES= \
CFILES= \
${PACKAGE}FILES= ${TFILES} ${CFILES}
.include "../../dtrace.test.mk"
@@ -5,7 +5,7 @@
PACKAGE= tests
TFILES= \
${PACKAGE}FILES= \
err.D_PDESC_ZERO.InvalidDescription1.d \
man.APIVersion.d \
man.AddSearchPath.d \
@@ -115,7 +115,5 @@ TESTEXES= \
CFILES= \
${PACKAGE}FILES= ${TFILES} ${CFILES}
.include "../../dtrace.test.mk"
@@ -5,7 +5,7 @@
PACKAGE= tests
TFILES= \
${PACKAGE}FILES= \
err.D_IDENT_UNDEF.timespent.d \
tst.end.d \
tst.endwithoutbegin.d \
@@ -18,7 +18,5 @@ TESTEXES= \
CFILES= \
${PACKAGE}FILES= ${TFILES} ${CFILES}
.include "../../dtrace.test.mk"
@@ -5,7 +5,7 @@
PACKAGE= tests
TFILES= \
${PACKAGE}FILES= \
err.D_DECL_IDRED.EnumSameName.d \
err.D_UNKNOWN.RepeatIdentifiers.d \
tst.EnumEquality.d \
@@ -18,7 +18,5 @@ TESTEXES= \
CFILES= \
${PACKAGE}FILES= ${TFILES} ${CFILES}
.include "../../dtrace.test.mk"
+1 -3
View File
@@ -5,7 +5,7 @@
PACKAGE= tests
TFILES= \
${PACKAGE}FILES= \
err.D_PRAGMA_OPTSET.setfromscript.d \
err.D_PRAGMA_OPTSET.unsetfromscript.d \
tst.ld_nolazyload.ksh \
@@ -27,7 +27,5 @@ TESTEXES= \
CFILES= \
${PACKAGE}FILES= ${TFILES} ${CFILES}
.include "../../dtrace.test.mk"
@@ -5,7 +5,7 @@
PACKAGE= tests
TFILES= \
${PACKAGE}FILES= \
tst.DTRACEFLT_BADADDR.d \
tst.DTRACEFLT_DIVZERO.d \
tst.DTRACEFLT_UNKNOWN.d \
@@ -18,7 +18,5 @@ TESTEXES= \
CFILES= \
${PACKAGE}FILES= ${TFILES} ${CFILES}
.include "../../dtrace.test.mk"
@@ -5,7 +5,7 @@
PACKAGE= tests
TFILES= \
${PACKAGE}FILES= \
err.D_PROTO_LEN.noarg.d \
err.exitarg1.d \
tst.basic1.d \
@@ -16,7 +16,5 @@ TESTEXES= \
CFILES= \
${PACKAGE}FILES= ${TFILES} ${CFILES}
.include "../../dtrace.test.mk"
@@ -5,7 +5,7 @@
PACKAGE= tests
TFILES= \
${PACKAGE}FILES= \
err.D_PDESC_ZERO.notreturn.d \
tst.argtest.ksh \
tst.argtest.ksh.out \
@@ -25,7 +25,5 @@ TESTEXES= \
CFILES= \
${PACKAGE}FILES= ${TFILES} ${CFILES}
.include "../../dtrace.test.mk"
@@ -5,7 +5,7 @@
PACKAGE= tests
TFILES= \
${PACKAGE}FILES= \
err.D_FUNC_UNDEF.progenyofbad1.d \
err.D_OP_VFPTR.badop.d \
err.D_PROTO_ARG.chillbadarg.d \
@@ -110,7 +110,5 @@ TESTEXES= \
CFILES= \
${PACKAGE}FILES= ${TFILES} ${CFILES}
.include "../../dtrace.test.mk"
@@ -5,7 +5,7 @@
PACKAGE= tests
TFILES= \
${PACKAGE}FILES= \
err.D_ADDROF_LVAL.d \
err.D_EMPTY.empty.d \
tst.clauses.d \
@@ -17,7 +17,5 @@ TESTEXES= \
CFILES= \
${PACKAGE}FILES= ${TFILES} ${CFILES}
.include "../../dtrace.test.mk"
@@ -5,7 +5,7 @@
PACKAGE= tests
TFILES= \
${PACKAGE}FILES= \
tst.includefirst.ksh \
TESTEXES= \
@@ -14,7 +14,5 @@ TESTEXES= \
CFILES= \
${PACKAGE}FILES= ${TFILES} ${CFILES}
.include "../../dtrace.test.mk"
@@ -5,7 +5,7 @@
PACKAGE= tests
TFILES= \
${PACKAGE}FILES= \
err.D_DECL_IDRED.redef1.d \
err.D_DECL_IDRED.redef2.d \
err.D_IDENT_UNDEF.recur.d \
@@ -25,7 +25,5 @@ TESTEXES= \
CFILES= \
${PACKAGE}FILES= ${TFILES} ${CFILES}
.include "../../dtrace.test.mk"
@@ -5,7 +5,7 @@
PACKAGE= tests
TFILES= \
${PACKAGE}FILES= \
tst.fds.d \
tst.fds.d.out \
@@ -15,7 +15,5 @@ TESTEXES= \
CFILES= \
tst.fds.c \
${PACKAGE}FILES= ${TFILES} ${CFILES}
.include "../../dtrace.test.mk"
@@ -5,7 +5,7 @@
PACKAGE= tests
TFILES= \
${PACKAGE}FILES= \
tst.ipv4localicmp.ksh \
tst.ipv4localicmp.ksh.out \
tst.ipv4localsctp.ksh \
@@ -45,7 +45,5 @@ TESTEXES= \
CFILES= \
${PACKAGE}FILES= ${TFILES} ${CFILES}
.include "../../dtrace.test.mk"
@@ -5,7 +5,7 @@
PACKAGE= tests
TFILES= \
${PACKAGE}FILES= \
tst.Abort.ksh \
tst.Abort.ksh.out \
tst.Bean.ksh \
@@ -41,7 +41,5 @@ CFILES= \
tst.FunctionLookup.c \
tst.ProbeData.c \
${PACKAGE}FILES= ${TFILES} ${CFILES}
.include "../../dtrace.test.mk"
@@ -5,7 +5,7 @@
PACKAGE= tests
TFILES= \
${PACKAGE}FILES= \
tst.general.d \
tst.general.d.out \
tst.strsize.d \
@@ -20,7 +20,5 @@ TESTEXES= \
CFILES= \
tst.usdt.c \
${PACKAGE}FILES= ${TFILES} ${CFILES}
.include "../../dtrace.test.mk"
@@ -5,7 +5,7 @@
PACKAGE= tests
TFILES= \
${PACKAGE}FILES= \
tst.basic.ksh \
TESTEXES= \
@@ -14,7 +14,5 @@ TESTEXES= \
CFILES= \
${PACKAGE}FILES= ${TFILES} ${CFILES}
.include "../../dtrace.test.mk"
@@ -5,7 +5,7 @@
PACKAGE= tests
TFILES= \
${PACKAGE}FILES= \
err.D_CHR_NL.char.d \
err.D_CHR_NULL.char.d \
err.D_INT_DIGIT.InvalidDigit.d \
@@ -27,7 +27,5 @@ TESTEXES= \
CFILES= \
${PACKAGE}FILES= ${TFILES} ${CFILES}
.include "../../dtrace.test.mk"
@@ -5,7 +5,7 @@
PACKAGE= tests
TFILES= \
${PACKAGE}FILES= \
err.D_LLQUANT_FACTOREVEN.nodivide.d \
err.D_LLQUANT_FACTOREVEN.notfactor.d \
err.D_LLQUANT_FACTORMATCH.d \
@@ -48,7 +48,5 @@ TESTEXES= \
CFILES= \
${PACKAGE}FILES= ${TFILES} ${CFILES}
.include "../../dtrace.test.mk"
@@ -5,7 +5,7 @@
PACKAGE= tests
TFILES= \
${PACKAGE}FILES= \
tst.dtracedcmd.ksh \
TESTEXES= \
@@ -14,7 +14,5 @@ TESTEXES= \
CFILES= \
${PACKAGE}FILES= ${TFILES} ${CFILES}
.include "../../dtrace.test.mk"
@@ -5,7 +5,7 @@
PACKAGE= tests
TFILES= \
${PACKAGE}FILES= \
tst.icmp.ksh \
tst.tcp.ksh \
tst.udp.ksh \
@@ -16,7 +16,5 @@ TESTEXES= \
CFILES= \
${PACKAGE}FILES= ${TFILES} ${CFILES}
.include "../../dtrace.test.mk"
@@ -5,7 +5,7 @@
PACKAGE= tests
TFILES= \
${PACKAGE}FILES= \
err.D_PRAGMA_OPTSET.d \
tst.badopt.d \
tst.boolopt.d \
@@ -27,7 +27,5 @@ TESTEXES= \
CFILES= \
${PACKAGE}FILES= ${TFILES} ${CFILES}
.include "../../dtrace.test.mk"
@@ -5,7 +5,7 @@
PACKAGE= tests
TFILES= \
${PACKAGE}FILES= \
err.D_PRINTA_AGGKEY.d \
err.D_PRINTA_AGGPROTO.d \
tst.many.d \
@@ -31,7 +31,5 @@ TESTEXES= \
CFILES= \
${PACKAGE}FILES= ${TFILES} ${CFILES}
.include "../../dtrace.test.mk"
@@ -5,7 +5,7 @@
PACKAGE= tests
TFILES= \
${PACKAGE}FILES= \
tst.call.d \
tst.call3.d \
@@ -16,7 +16,5 @@ CFILES= \
tst.call.c \
tst.call3.c \
${PACKAGE}FILES= ${TFILES} ${CFILES}
.include "../../dtrace.test.mk"
@@ -5,7 +5,7 @@
PACKAGE= tests
TFILES= \
${PACKAGE}FILES= \
err.D_OFFSETOF_BITFIELD.bitfield.d \
err.D_OFFSETOF_TYPE.badtype.d \
err.D_OFFSETOF_TYPE.notsou.d \
@@ -25,7 +25,5 @@ TESTEXES= \
CFILES= \
${PACKAGE}FILES= ${TFILES} ${CFILES}
.include "../../dtrace.test.mk"
@@ -4,7 +4,7 @@
PACKAGE= tests
TFILES= \
${PACKAGE}FILES= \
tst.agg.avg.ksh \
tst.agg.count.ksh \
tst.agg.llquantize.ksh \
@@ -38,7 +38,5 @@ TESTEXES= \
CFILES= \
${PACKAGE}FILES= ${TFILES} ${CFILES}
.include "../../dtrace.test.mk"
@@ -5,7 +5,7 @@
PACKAGE= tests
TFILES= \
${PACKAGE}FILES= \
tst.ternary.d \
tst.ternary.d.out \
@@ -15,7 +15,5 @@ TESTEXES= \
CFILES= \
${PACKAGE}FILES= ${TFILES} ${CFILES}
.include "../../dtrace.test.mk"
@@ -5,7 +5,7 @@
PACKAGE= tests
TFILES= \
${PACKAGE}FILES= \
err.D_PDESC_ZERO.badlib.d \
err.D_PDESC_ZERO.badproc1.d \
err.D_PROC_BADPID.badproc2.d \
@@ -66,7 +66,5 @@ CFILES= \
tst.weak1.c \
tst.weak2.c \
${PACKAGE}FILES= ${TFILES} ${CFILES}
.include "../../dtrace.test.mk"
@@ -5,7 +5,7 @@
PACKAGE= tests
TFILES= \
${PACKAGE}FILES= \
tst.available.d \
tst.libmap.d \
@@ -16,7 +16,5 @@ TESTEXES= \
CFILES= \
${PACKAGE}FILES= ${TFILES} ${CFILES}
.include "../../dtrace.test.mk"
@@ -5,7 +5,7 @@
PACKAGE= tests
TFILES= \
${PACKAGE}FILES= \
err.BadAlign.d \
err.D_ADDROF_VAR.ArrayVar.d \
err.D_ADDROF_VAR.DynamicVar.d \
@@ -45,7 +45,5 @@ TESTEXES= \
CFILES= \
${PACKAGE}FILES= ${TFILES} ${CFILES}
.include "../../dtrace.test.mk"
@@ -5,7 +5,7 @@
PACKAGE= tests
TFILES= \
${PACKAGE}FILES= \
err.D_PRAGERR.d \
err.D_PRAGMA_DEPEND.main.d \
err.D_PRAGMA_INVAL.d \
@@ -27,7 +27,5 @@ TESTEXES= \
CFILES= \
${PACKAGE}FILES= ${TFILES} ${CFILES}
.include "../../dtrace.test.mk"
@@ -5,7 +5,7 @@
PACKAGE= tests
TFILES= \
${PACKAGE}FILES= \
err.D_PRED_SCALAR.NonScalarPred.d \
err.D_SYNTAX.invalid.d \
err.D_SYNTAX.operr.d \
@@ -22,7 +22,5 @@ TESTEXES= \
CFILES= \
${PACKAGE}FILES= ${TFILES} ${CFILES}
.include "../../dtrace.test.mk"
@@ -5,7 +5,7 @@
PACKAGE= tests
TFILES= \
${PACKAGE}FILES= \
err.D_IDENT_UNDEF.afterprobe.d \
err.D_PRAGCTL_INVAL.tabdefine.d \
err.D_SYNTAX.withoutpound.d \
@@ -50,7 +50,5 @@ TESTEXES= \
CFILES= \
${PACKAGE}FILES= ${TFILES} ${CFILES}
.include "../../dtrace.test.mk"
@@ -5,7 +5,7 @@
PACKAGE= tests
TFILES= \
${PACKAGE}FILES= \
err.D_PRINT_AGG.bad.d \
err.D_PRINT_VOID.bad.d \
err.D_PROTO_LEN.bad.d \
@@ -29,7 +29,5 @@ TESTEXES= \
CFILES= \
${PACKAGE}FILES= ${TFILES} ${CFILES}
.include "../../dtrace.test.mk"
@@ -5,7 +5,7 @@
PACKAGE= tests
TFILES= \
${PACKAGE}FILES= \
err.D_PRINTA_AGGARG.badagg.d \
err.D_PRINTA_AGGARG.badfmt.d \
err.D_PRINTA_AGGARG.badval.d \
@@ -37,7 +37,5 @@ TESTEXES= \
CFILES= \
${PACKAGE}FILES= ${TFILES} ${CFILES}
.include "../../dtrace.test.mk"
@@ -5,7 +5,7 @@
PACKAGE= tests
TFILES= \
${PACKAGE}FILES= \
err.D_PRINTF_AGG_CONV.aggfmt.d \
err.D_PRINTF_ARG_EXTRA.toomany.d \
err.D_PRINTF_ARG_EXTRA.widths.d \
@@ -65,7 +65,5 @@ TESTEXES= \
CFILES= \
${PACKAGE}FILES= ${TFILES} ${CFILES}
.include "../../dtrace.test.mk"
@@ -5,7 +5,7 @@
PACKAGE= tests
TFILES= \
${PACKAGE}FILES= \
tst.fds.ksh \
tst.func_access.ksh \
tst.getf.ksh \
@@ -21,7 +21,5 @@ TESTEXES= \
CFILES= \
${PACKAGE}FILES= ${TFILES} ${CFILES}
.include "../../dtrace.test.mk"
@@ -5,7 +5,7 @@
PACKAGE= tests
TFILES= \
${PACKAGE}FILES= \
err.D_PDESC_ZERO.probeqtn.d \
err.D_PDESC_ZERO.probestar.d \
err.D_PDESC_ZERO.tickstar.d \
@@ -33,7 +33,5 @@ TESTEXES= \
CFILES= \
tst.probestar.c \
${PACKAGE}FILES= ${TFILES} ${CFILES}
.include "../../dtrace.test.mk"
@@ -5,7 +5,7 @@
PACKAGE= tests
TFILES= \
${PACKAGE}FILES= \
tst.create.ksh \
tst.discard.ksh \
tst.exec.ksh \
@@ -25,8 +25,6 @@ CFILES= \
tst.exitcore.c \
tst.sigwait.c \
${PACKAGE}FILES= ${TFILES} ${CFILES}
LIBADD.tst.sigwait.exe+= rt
@@ -5,7 +5,7 @@
PACKAGE= tests
TFILES= \
${PACKAGE}FILES= \
err.D_PDESC_ZERO.profile.d \
err.D_PDESC_ZEROonens.d \
err.D_PDESC_ZEROonensec.d \
@@ -51,7 +51,5 @@ TESTEXES= \
CFILES= \
tst.ufuncsort.c \
${PACKAGE}FILES= ${TFILES} ${CFILES}
.include "../../dtrace.test.mk"
@@ -5,7 +5,7 @@
PACKAGE= tests
TFILES= \
${PACKAGE}FILES= \
err.D_PDESC_INVAL.wrongdec4.d \
err.D_PDESC_ZERO.nonprofile.d \
err.D_PDESC_ZERO.wrongdec1.d \
@@ -41,7 +41,5 @@ TESTEXES= \
CFILES= \
${PACKAGE}FILES= ${TFILES} ${CFILES}
.include "../../dtrace.test.mk"
@@ -5,7 +5,7 @@
PACKAGE= tests
TFILES= \
${PACKAGE}FILES= \
tst.raise1.d \
tst.raise2.d \
tst.raise3.d \
@@ -18,8 +18,6 @@ CFILES= \
tst.raise2.c \
tst.raise3.c \
${PACKAGE}FILES= ${TFILES} ${CFILES}
TEST_METADATA.t_dtrace_contrib+= required_memory="4g"
@@ -5,7 +5,7 @@
PACKAGE= tests
TFILES= \
${PACKAGE}FILES= \
tst.aggrate.d \
tst.aggrate.d.out \
tst.statusrate.d \
@@ -18,7 +18,5 @@ TESTEXES= \
CFILES= \
${PACKAGE}FILES= ${TFILES} ${CFILES}
.include "../../dtrace.test.mk"
@@ -5,7 +5,7 @@
PACKAGE= tests
TFILES= \
${PACKAGE}FILES= \
tst.basename.d \
tst.caller.d \
tst.cleanpath.d \
@@ -53,8 +53,6 @@ TESTEXES= \
CFILES= \
${PACKAGE}FILES= ${TFILES} ${CFILES}
TEST_METADATA.t_dtrace_contrib+= required_memory="4g"
@@ -5,7 +5,7 @@
PACKAGE= tests
TFILES= \
${PACKAGE}FILES= \
err.D_ARR_LOCAL.thisarray.d \
err.D_DECL_CLASS.selfthis.d \
err.D_DECL_CLASS.thisself.d \
@@ -36,7 +36,5 @@ TESTEXES= \
CFILES= \
${PACKAGE}FILES= ${TFILES} ${CFILES}
.include "../../dtrace.test.mk"
@@ -5,7 +5,7 @@
PACKAGE= tests
TFILES= \
${PACKAGE}FILES= \
tst.enqueue.d \
tst.oncpu.d \
tst.stackdepth.d \
@@ -16,7 +16,5 @@ TESTEXES= \
CFILES= \
${PACKAGE}FILES= ${TFILES} ${CFILES}
.include "../../dtrace.test.mk"
@@ -5,7 +5,7 @@
PACKAGE= tests
TFILES= \
${PACKAGE}FILES= \
err.D_MACRO_UNDEF.invalidargs.d \
err.D_OP_LVAL.rdonly.d \
err.D_OP_WRITE.usepidmacro.d \
@@ -46,7 +46,5 @@ TESTEXES= \
CFILES= \
${PACKAGE}FILES= ${TFILES} ${CFILES}
.include "../../dtrace.test.mk"
@@ -5,7 +5,7 @@
PACKAGE= tests
TFILES= \
${PACKAGE}FILES= \
tst.sdtargs.d \
TESTEXES= \
@@ -14,7 +14,5 @@ TESTEXES= \
CFILES= \
tst.sdtargs.c \
${PACKAGE}FILES= ${TFILES} ${CFILES}
.include "../../dtrace.test.mk"
@@ -5,7 +5,7 @@
PACKAGE= tests
TFILES= \
${PACKAGE}FILES= \
err.D_IDENT_BADREF.SizeofAssoc.d \
err.D_IDENT_UNDEF.UnknownSymbol.d \
err.D_SIZEOF_TYPE.badstruct.d \
@@ -28,7 +28,5 @@ TESTEXES= \
CFILES= \
${PACKAGE}FILES= ${TFILES} ${CFILES}
.include "../../dtrace.test.mk"
@@ -5,7 +5,7 @@
PACKAGE= tests
TFILES= \
${PACKAGE}FILES= \
bug.1001148.SpecSizeVariations.d \
err.BufSizeVariations1.d \
err.BufSizeVariations2.d \
@@ -72,7 +72,5 @@ TESTEXES= \
CFILES= \
${PACKAGE}FILES= ${TFILES} ${CFILES}
.include "../../dtrace.test.mk"
@@ -5,7 +5,7 @@
PACKAGE= tests
TFILES= \
${PACKAGE}FILES= \
err.D_ATTR_MIN.MinAttributes.d \
TESTEXES= \
@@ -14,7 +14,5 @@ TESTEXES= \
CFILES= \
${PACKAGE}FILES= ${TFILES} ${CFILES}
.include "../../dtrace.test.mk"
@@ -5,7 +5,7 @@
PACKAGE= tests
TFILES= \
${PACKAGE}FILES= \
err.D_STACK_PROTO.bad.d \
err.D_STACK_SIZE.d \
err.D_USTACK_FRAMES.bad.d \
@@ -19,7 +19,5 @@ TESTEXES= \
CFILES= \
${PACKAGE}FILES= ${TFILES} ${CFILES}
.include "../../dtrace.test.mk"
@@ -5,7 +5,7 @@
PACKAGE= tests
TFILES= \
${PACKAGE}FILES= \
tst.default.d \
TESTEXES= \
@@ -14,7 +14,5 @@ TESTEXES= \
CFILES= \
${PACKAGE}FILES= ${TFILES} ${CFILES}
.include "../../dtrace.test.mk"
@@ -5,7 +5,7 @@
PACKAGE= tests
TFILES= \
${PACKAGE}FILES= \
tst.stop1.d \
tst.stop2.d \
@@ -16,7 +16,5 @@ CFILES= \
tst.stop1.c \
tst.stop2.c \
${PACKAGE}FILES= ${TFILES} ${CFILES}
.include "../../dtrace.test.mk"
@@ -5,7 +5,7 @@
PACKAGE= tests
TFILES= \
${PACKAGE}FILES= \
tst.strlen1.d \
TESTEXES= \
@@ -14,7 +14,5 @@ TESTEXES= \
CFILES= \
${PACKAGE}FILES= ${TFILES} ${CFILES}
.include "../../dtrace.test.mk"
@@ -5,7 +5,7 @@
PACKAGE= tests
TFILES= \
${PACKAGE}FILES= \
err.BaseTooLarge.d \
err.BaseTooSmall.d \
tst.strtoll.d \
@@ -17,7 +17,5 @@ TESTEXES= \
CFILES= \
${PACKAGE}FILES= ${TFILES} ${CFILES}
.include "../../dtrace.test.mk"
@@ -5,7 +5,7 @@
PACKAGE= tests
TFILES= \
${PACKAGE}FILES= \
err.D_ADDROF_VAR.StructPointer.d \
err.D_DECL_COMBO.StructWithoutColon.d \
err.D_DECL_COMBO.StructWithoutColon1.d \
@@ -28,7 +28,5 @@ TESTEXES= \
CFILES= \
${PACKAGE}FILES= ${TFILES} ${CFILES}
.include "../../dtrace.test.mk"
@@ -5,7 +5,7 @@
PACKAGE= tests
TFILES= \
${PACKAGE}FILES= \
tst.else.d \
tst.if.d \
tst.if2.d \
@@ -20,7 +20,5 @@ TESTEXES= \
CFILES= \
${PACKAGE}FILES= ${TFILES} ${CFILES}
.include "../../dtrace.test.mk"
@@ -5,7 +5,7 @@
PACKAGE= tests
TFILES= \
${PACKAGE}FILES= \
tst.args.d \
tst.openret.ksh \
@@ -15,7 +15,5 @@ TESTEXES= \
CFILES= \
tst.args.c \
${PACKAGE}FILES= ${TFILES} ${CFILES}
.include "../../dtrace.test.mk"
@@ -5,7 +5,7 @@
PACKAGE= tests
TFILES= \
${PACKAGE}FILES= \
tst.post.d \
tst.post_chan.d \
@@ -16,7 +16,5 @@ CFILES= \
tst.post.c \
tst.post_chan.c \
${PACKAGE}FILES= ${TFILES} ${CFILES}
.include "../../dtrace.test.mk"
@@ -5,7 +5,7 @@
PACKAGE= tests
TFILES= \
${PACKAGE}FILES= \
err.D_PDESC_ZERO.tick.d \
err.D_PDESC_ZEROonens.d \
err.D_PDESC_ZEROonensec.d \
@@ -35,7 +35,5 @@ TESTEXES= \
CFILES= \
${PACKAGE}FILES= ${TFILES} ${CFILES}
.include "../../dtrace.test.mk"
@@ -5,7 +5,7 @@
PACKAGE= tests
TFILES= \
${PACKAGE}FILES= \
err.D_PROTO_LEN.bad.d \
err.D_TRACE_AGG.bad.d \
err.D_TRACE_VOID.bad.d \
@@ -21,7 +21,5 @@ TESTEXES= \
CFILES= \
${PACKAGE}FILES= ${TFILES} ${CFILES}
.include "../../dtrace.test.mk"
@@ -5,7 +5,7 @@
PACKAGE= tests
TFILES= \
${PACKAGE}FILES= \
err.D_PROTO_ARG.badsize.d \
err.D_PROTO_LEN.toofew.d \
err.D_TRACEMEM_ADDR.badaddr.d \
@@ -23,7 +23,5 @@ TESTEXES= \
CFILES= \
${PACKAGE}FILES= ${TFILES} ${CFILES}
.include "../../dtrace.test.mk"
@@ -5,7 +5,7 @@
PACKAGE= tests
TFILES= \
${PACKAGE}FILES= \
err.D_DECL_TYPERED.BadTransDecl.d \
err.D_OP_INCOMPLETE.NonExistentInput1.d \
err.D_SYNTAX.BadTransDecl1.d \
@@ -48,7 +48,5 @@ TESTEXES= \
CFILES= \
${PACKAGE}FILES= ${TFILES} ${CFILES}
.include "../../dtrace.test.mk"
@@ -5,7 +5,7 @@
PACKAGE= tests
TFILES= \
${PACKAGE}FILES= \
err.D_DECL_IDRED.DupTypeDef.d \
err.D_SYNTAX.BadExistingTypedef.d \
err.D_SYNTAX.TypedefInClause.d \
@@ -18,7 +18,5 @@ TESTEXES= \
CFILES= \
${PACKAGE}FILES= ${TFILES} ${CFILES}
.include "../../dtrace.test.mk"
@@ -5,7 +5,7 @@
PACKAGE= tests
TFILES= \
${PACKAGE}FILES= \
err.D_CAST_INVAL.badcast.d \
err.D_CG_DYN.ResultDynType.d \
err.D_CHR_OFLOW.charconst.d \
@@ -66,7 +66,5 @@ TESTEXES= \
CFILES= \
${PACKAGE}FILES= ${TFILES} ${CFILES}
.include "../../dtrace.test.mk"
@@ -5,7 +5,7 @@
PACKAGE= tests
TFILES= \
${PACKAGE}FILES= \
err.invalidpid.d \
err.invalidpid2.d \
err.invalidpid3.d \
@@ -36,8 +36,6 @@ CFILES= \
tst.libtype.c \
tst.printtype.c \
${PACKAGE}FILES= ${TFILES} ${CFILES}
WITH_CTF=YES
@@ -5,7 +5,7 @@
PACKAGE= tests
TFILES= \
${PACKAGE}FILES= \
err.D_ADDROF_VAR.UnionPointer.d \
err.D_DECL_COMBO.UnionWithoutColon.d \
err.D_DECL_COMBO.UnionWithoutColon1.d \
@@ -24,7 +24,5 @@ TESTEXES= \
CFILES= \
${PACKAGE}FILES= ${TFILES} ${CFILES}
.include "../../dtrace.test.mk"
@@ -5,7 +5,7 @@
PACKAGE= tests
TFILES= \
${PACKAGE}FILES= \
argmap.d \
args.d \
forker.d \
@@ -64,7 +64,5 @@ CFILES= \
tst.args.c \
tst.forker.c \
${PACKAGE}FILES= ${TFILES} ${CFILES}
.include "../../dtrace.test.mk"
@@ -5,7 +5,7 @@
PACKAGE= tests
TFILES= \
${PACKAGE}FILES= \
tst.bigstack.d \
tst.depth.ksh \
tst.spin.ksh \
@@ -17,7 +17,5 @@ CFILES= \
tst.bigstack.c \
tst.spin.c \
${PACKAGE}FILES= ${TFILES} ${CFILES}
.include "../../dtrace.test.mk"
@@ -5,7 +5,7 @@
PACKAGE= tests
TFILES= \
${PACKAGE}FILES= \
tst.gid.d \
tst.nullassign.d \
tst.ppid.d \
@@ -20,7 +20,5 @@ TESTEXES= \
CFILES= \
${PACKAGE}FILES= ${TFILES} ${CFILES}
.include "../../dtrace.test.mk"
@@ -5,7 +5,7 @@
PACKAGE= tests
TFILES= \
${PACKAGE}FILES= \
tst.1.0.d \
TESTEXES= \
@@ -14,7 +14,5 @@ TESTEXES= \
CFILES= \
${PACKAGE}FILES= ${TFILES} ${CFILES}
.include "../../dtrace.test.mk"
+8 -10
View File
@@ -17,22 +17,20 @@ TEST_METADATA.t_dtrace_contrib+= required_user="root"
GENTEST?= ${.CURDIR:H:H}/tools/gentest.sh
EXCLUDE= ${.CURDIR:H:H}/tools/exclude.sh
${TESTWRAPPER}.sh: ${GENTEST} ${EXCLUDE} ${TFILES}
${TESTWRAPPER}.sh: ${GENTEST} ${EXCLUDE} ${${PACKAGE}FILES}
env TESTBASE=${TESTBASE:Q} \
sh ${GENTEST} -e ${EXCLUDE} ${TESTGROUP} ${TFILES:S/ */ /} > ${.TARGET}
sh ${GENTEST} -e ${EXCLUDE} ${TESTGROUP} ${${PACKAGE}FILES:S/ */ /} > ${.TARGET}
CLEANFILES+= ${TESTWRAPPER}.sh
.PATH: ${TESTSRC}
# Only precompile C files if they don't have a
# corresponding D source. This prevents compiling
# the D source for the host architecture in cross
# builds.
.for prog in ${CFILES:T:S/.c$/.exe/g}
.if !exists(${prog:S/^tst.//:S/.exe$/.d/})
PROGS+= ${prog}
SRCS.${prog}+= ${prog:S/.exe$/.c/}
PROGS= ${CFILES:T:S/.c$/.exe/g}
.for prog in ${PROGS}
SRCS.${prog}+= ${prog:S/.exe$/.c/}
.if exists(${prog:S/^tst.//:S/.exe$/.d/})
SRCS.${prog}+= ${prog:S/^tst.//:S/.exe$/.d/}
.endif
.endfor
@@ -5,7 +5,7 @@
PACKAGE= tests
TFILES= \
${PACKAGE}FILES= \
tst.uregsarray.d \
TESTEXES= \
@@ -14,7 +14,5 @@ TESTEXES= \
CFILES= \
${PACKAGE}FILES= ${TFILES} ${CFILES}
.include "../../dtrace.test.mk"
@@ -5,7 +5,7 @@
PACKAGE= tests
TFILES= \
${PACKAGE}FILES= \
tst.badcopyin.d \
tst.badcopyinstr.d \
tst.badcopyout.d \
@@ -17,7 +17,5 @@ TESTEXES= \
CFILES= \
${PACKAGE}FILES= ${TFILES} ${CFILES}
.include "../../dtrace.test.mk"
+1 -3
View File
@@ -5,7 +5,7 @@
PACKAGE= tests
TFILES= \
${PACKAGE}FILES= \
tst.badinstr.d \
tst.branch.d \
tst.embedded.d \
@@ -18,7 +18,5 @@ TESTEXES= \
CFILES= \
${PACKAGE}FILES= ${TFILES} ${CFILES}
.include "../../dtrace.test.mk"
@@ -5,7 +5,7 @@
PACKAGE= tests
TFILES= \
${PACKAGE}FILES= \
annotated_helper.d \
helper_helper.d \
tst.annotated.d \
@@ -21,7 +21,5 @@ CFILES= \
tst.annotated.c \
tst.helper.c \
${PACKAGE}FILES= ${TFILES} ${CFILES}
.include "../../dtrace.test.mk"
+1 -23
View File
@@ -22,7 +22,7 @@ gettag()
runtest()
{
local cfile ofile ddep odep dflags exe exstatus pid retval status
local dflags exe exstatus pid retval status
exstatus=0
retval=0
@@ -45,28 +45,6 @@ runtest()
esac
exe=${TFILE%.*}.exe
cfile=${TFILE%.*}.c
ddep=${TFILE%.*}.d
ddep=${ddep#tst.}
if [ -r "$cfile" -a -r "$ddep" ]; then
# The tst.xxx.c corresponding to the tst.xxx.d is usually
# (cross-)compiled on the build host and installed in the target
# system as an executable. However, when there is an associated
# xxx.d file to be included in that executable, we must compile
# xxx.d in the target system at runtime because DTrace currently
# doesn't support cross-compilation and will always use the build
# host's ELF format when calling `dtrace -G`.
# TODO add support for cross-compilation in DTrace and move it back
# to dtrace.test.mk.
ofile="${cfile%.c}.o"
odep="${ddep%.d}.o"
dtrace -C -x nolibs -h -s "$ddep"
cc -O0 -g -I. -o "$ofile" -c "$cfile"
dtrace -C -x nolibs -G -s "$ddep" "$ofile"
cc -O0 -g -I. -o "$exe" "$ofile" "$odep"
rm -f "${ddep%.d}.h" "$ofile" "$odep"
fi
if [ -f "$exe" -a -x "$exe" ]; then
./$exe &
pid=$!
Loaded 100 of 3770 files, more files were not shown because too many files have changed in this diff. Show more