blob: 7e16b39d8a1e151d811e6134dc9cc75108af9062 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
# $OpenBSD: Makefile,v 1.38 2021/09/27 18:27:14 bluhm Exp $
ARCHS =
ARCHS += alpha amd64 arm64 armv7
ARCHS += hppa
ARCHS += i386
ARCHS += landisk loongson luna88k
ARCHS += macppc
ARCHS += octeon
ARCHS += powerpc64
ARCHS += riscv64
ARCHS += sparc64
DEVS = all ramdisk
ETCSRCDIR ?= ${.CURDIR}/../../../etc
REGRESS_TARGETS =
.for a in ${ARCHS}
.for d in ${DEVS}
REGRESS_TARGETS += run-$a-$d
run-$a-$d:
${SUDO} rm -rf -- $a-$d.dir
mkdir -m 700 $a-$d.dir
cp ${ETCSRCDIR}/etc.$a/MAKEDEV $a-$d.dir/
${SUDO} chown root:wheel $a-$d.dir
${SUDO} time sh -c 'cd $a-$d.dir && sh ./MAKEDEV $d'
${SUDO} ls -ln $a-$d.dir/ | \
awk '/^[bcps]/ {printf "%s %x.%x %x,%x%s\n",$$1,$$3,$$4,$$5,$$6,$$10} \
/^l/ {printf "%s %s.%s%s>%s\n",$$1,$$3,$$4,$$9,$$11}' | \
sort +5 -n | \
sed -e 's/rwx/7/g;s/rw-/6/g;s/r-x/5/g;s/r--/4/g' \
-e 's/-wx/3/g;s/-w-/2/g;s/--x/1/g;s/---/0/g' \
-e 's/^\([bcpsl]\)\([0-9][0-9]*\) /\2\1/' \
>$a-$d.out
.endfor
.endfor
REGRESS_ROOT_TARGETS=${REGRESS_TARGETS}
clean:
${SUDO} rm -rf -- *-*.dir/
${SUDO} rm -f -- *-*.out
.include <bsd.regress.mk>
|