blob: 7ca1b5b428d64605f98684672806ba2253acae3b [file] [log] [blame]
Fei Jie68a58a32016-03-01 16:55:35 +08001#!/bin/sh
2
3# Check uname syscall decoding.
4
5. "${srcdir=.}/init.sh"
6
Fei Jiefb223062016-03-11 10:43:02 +08007check_prog uniq
8
JayRJoshid2029cc2016-03-24 12:39:32 +05309run_prog > /dev/null
Fei Jiefb223062016-03-11 10:43:02 +080010run_strace -v -euname $args > "$EXP"
11uniq < "$LOG" > "$OUT"
JayRJoshid2029cc2016-03-24 12:39:32 +053012
Elliott Hughes39bac052017-05-25 16:56:11 -070013run_prog "../$NAME" abbrev > /dev/null
JayRJoshid2029cc2016-03-24 12:39:32 +053014run_strace -euname $args >> "$EXP"
15uniq < "$LOG" >> "$OUT"
16
Fei Jiefb223062016-03-11 10:43:02 +080017match_diff "$OUT" "$EXP"