SUNRPC: Report TCP errors to the caller
[linux/fpc-iii.git] / tools / perf / tests / perf-targz-src-pkg
blob238aa3927c71e1ad8c57510641e303cc2a92d6f8
1 #!/bin/sh
2 # Test one of the main kernel Makefile targets to generate a perf sources tarball
3 # suitable for build outside the full kernel sources.
5 # This is to test that the tools/perf/MANIFEST file lists all the files needed to
6 # be in such tarball, which sometimes gets broken when we move files around,
7 # like when we made some files that were in tools/perf/ available to other tools/
8 # codebases by moving it to tools/include/, etc.
10 PERF=$1
11 cd ${PERF}/../..
12 make perf-targz-src-pkg > /dev/null
13 TARBALL=$(ls -rt perf-*.tar.gz)
14 TMP_DEST=$(mktemp -d)
15 tar xf ${TARBALL} -C $TMP_DEST
16 rm -f ${TARBALL}
17 cd - > /dev/null
18 make -C $TMP_DEST/perf*/tools/perf > /dev/null 2>&1
19 RC=$?
20 rm -rf ${TMP_DEST}
21 exit $RC