blob: 03fe30cd8be77f34c5615b65e7580554872f48de [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
Dmitry V. Levin579a4aa2016-03-30 00:13:56 +000013run_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"
18rm -f "$OUT" "$EXP"