diff options
author | Mattias Andrée <maandree@kth.se> | 2023-12-05 20:10:48 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2023-12-05 20:10:48 +0100 |
commit | 6d77b155bcd4725e09837604e6ea86f5f124ba9c (patch) | |
tree | 7cfdf466bb94bbbe3e7929432bc048da5eaa2349 /tests/os-dependent-primitives | |
parent | Second commit (diff) | |
download | libsyscalls-6d77b155bcd4725e09837604e6ea86f5f124ba9c.tar.gz libsyscalls-6d77b155bcd4725e09837604e6ea86f5f124ba9c.tar.bz2 libsyscalls-6d77b155bcd4725e09837604e6ea86f5f124ba9c.tar.xz |
Third commit
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'tests/os-dependent-primitives')
-rw-r--r-- | tests/os-dependent-primitives | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/os-dependent-primitives b/tests/os-dependent-primitives new file mode 100644 index 0000000..c0438af --- /dev/null +++ b/tests/os-dependent-primitives @@ -0,0 +1,15 @@ +# -*- sh -*- +# See LICENSE file for copyright and license details. + +typeisas () { + get-datatype-description.tu $osn $archn $(lookupnum "$types" $1) $os $arch $1 > $a + get-datatype-description.tu $osn $archn $(lookupnum "$types" $2) $os $arch $2 > $b + diff -u $a $b +} + +for os in $(getnamelist OS); do + osn=$(getnum OS $os) + if issupported $os; then + . $(printf '%s\n' $os | tr '[A-Z]' '[a-z]')/tests/os-dependent-primitives + fi +done |