blob: bbdfff0515143b62063d4cbd4e3a555b320a6b82 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#!/bin/bash
#
# This script makes a copy of relevant files from /sys.
# The files are useful for lsmem(1) regression tests.
#
progname=$(basename $0)
if [ -z "$1" ]; then
echo -e "\nusage: $progname <testname>\n"
exit 1
fi
TS_NAME="$1"
TS_DUMP="$TS_NAME"
CP="cp -r --parent"
mkdir -p $TS_DUMP/sys/devices/system
$CP /sys/devices/system/memory $TS_DUMP
tar jcvf $TS_NAME.tar.bz2 $TS_DUMP
rm -rf $TS_DUMP
|