summaryrefslogtreecommitdiffstats
path: root/tests/fixed-array-types
blob: 070920ea0c7c68781f286fdacefe578304e9eb06 (plain) (blame)
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
# -*- sh -*-
# See LICENSE file for copyright and license details.

for os in $(getnamelist OS); do
	osn=$(getnum OS $os)
	for arch in $(getnamelist ARCH); do
		archn=$(getnum ARCH $arch)
		if ! issupported $os $arch; then
			continue
		fi

		ptype=INT
		atype=2_INTS
		get-datatype-description.tu $osn $archn $(lookupnum "$types" $ptype) $os $arch $ptype \
		| sed 's/^\(array_size\) = 1$/\1 = 2/' > $a
		get-datatype-description.tu $osn $archn $(lookupnum "$types" $atype) $os $arch $atype > $b
		diff -u $a $b

		ptype=INT_FD
		atype=2_INTS_FD
		get-datatype-description.tu $osn $archn $(lookupnum "$types" $ptype) $os $arch $ptype \
		| sed 's/^\(array_size\) = 1$/\1 = 2/' > $a
		get-datatype-description.tu $osn $archn $(lookupnum "$types" $atype) $os $arch $atype > $b
		diff -u $a $b

		ptype=UINT32
		atype=2_UINT32S
		get-datatype-description.tu $osn $archn $(lookupnum "$types" $ptype) $os $arch $ptype \
		| sed 's/^\(array_size\) = 1$/\1 = 2/' > $a
		get-datatype-description.tu $osn $archn $(lookupnum "$types" $atype) $os $arch $atype > $b
		diff -u $a $b
	done
done