fix references to old directory structure.

This commit is contained in:
Nathan Scott
2001-01-16 04:45:10 +00:00
parent a1dd6f2a78
commit 62458e02ff
3 changed files with 38 additions and 56 deletions
+3 -3
View File
@@ -272,10 +272,10 @@ _stable_fs()
} }
# #
# Run stress/src/fsstress to create a mixture of # Run src/fsstress to create a mixture of
# files,dirs,links,symlinks # files,dirs,links,symlinks
# #
# Pinched from stress/013. # Pinched from test 013.
# #
_create_dumpdir_stress() _create_dumpdir_stress()
{ {
@@ -372,7 +372,7 @@ End-of-File
# Create a bunch of directories/files of different sizes # Create a bunch of directories/files of different sizes
# filled with data. # filled with data.
# #
# Pinched from stress/001. # Pinched from test 001.
# #
_do_create_dumpdir_fill() _do_create_dumpdir_fill()
{ {
+4 -4
View File
@@ -4,13 +4,13 @@ ______________________ ______________
- pick/create a user to run auto-qa and check they - pick/create a user to run auto-qa and check they
can use ptools to check out of the tree can use ptools to check out of the tree
- add your host to cmd/xfs/stress/common.config - add your host to cmd/xfstests/common.config
- add your host to cmd/xfs/tools/auto-qa - add your host to cmd/xfstests/tools/auto-qa
check both these files in check both these files in
- make a directory "$HOME/qa" - make a directory "$HOME/qa"
- make a workarea "$HOME/qa/linux-xfs" for linux-xfs - make a workarea "$HOME/qa/linux-xfs" for linux-xfs
(easiest to copy one from elsewhere) (easiest to copy one from elsewhere)
- cd $HOME/qa ; ln -s linux-xfs/cmd/xfs/tools/auto-qa . - cd $HOME/qa ; ln -s linux-xfs/cmd/xfstests/tools/auto-qa .
(auto-qa must be a link into it's own source tree (auto-qa must be a link into it's own source tree
so it can update itself) so it can update itself)
- copy an appropriate .config file to - copy an appropriate .config file to
@@ -65,7 +65,7 @@ Notes:
- When run in "cron-init" or "init" states, the script - When run in "cron-init" or "init" states, the script
will p_tupdate itself and restart. If you start will p_tupdate itself and restart. If you start
with an empty source tree, you'll need to check with an empty source tree, you'll need to check
out the cmd/xfs/tools/auto-qa script before it'll out the cmd/xfstests/tools/auto-qa script before it'll
work (duh). work (duh).
good luck. good luck.
+31 -49
View File
@@ -79,15 +79,15 @@ export WORKAREA="$ROOT/linux-xfs"
export PATH="/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin/ptools:/usr/local/bin" export PATH="/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin/ptools:/usr/local/bin"
STATE=$ROOT/qa.state STATE=$ROOT/qa.state
QADIR="$WORKAREA/cmd/xfs/stress" QADIR="$WORKAREA/cmd/xfstests"
SUDO="su -c" SUDO="su -c"
IMAGE="$BOOT/vmlinuz-$VERSION$EXTRA" IMAGE="$BOOT/vmlinuz-$VERSION$EXTRA"
SYSTEMMAP="$BOOT/System.map-$VERSION$EXTRA" SYSTEMMAP="$BOOT/System.map-$VERSION$EXTRA"
CONFIG="$ROOT/$HOST-$VERSION$EXTRA.config" CONFIG="$ROOT/$HOST-$VERSION$EXTRA.config"
MODULES="/lib/modules/$VERSION$EXTRA" MODULES="/lib/modules/$VERSION$EXTRA"
SELF="$ROOT/auto-qa" SELF="$ROOT/auto-qa"
SELF_UPDATE="cmd/xfs/tools/auto-qa" SELF_UPDATE="cmd/xfstests/tools/auto-qa"
COMMON_CONFIG="$WORKAREA/cmd/xfs/stress/common.config" COMMON_CONFIG="$WORKAREA/cmd/xfstests/common.config"
SH="/bin/sh" SH="/bin/sh"
LOG="$ROOT/qa.log" LOG="$ROOT/qa.log"
@@ -276,32 +276,22 @@ do
;; ;;
*clean) *clean)
# we need to configure or else we might fail to clean stress/src # we need to configure or else we might fail to clean
_log " *** configure for clean" for pkg in attr acl xfsprogs xfsdump xfstests
cd $WORKAREA/cmd/xfs cd $WORKAREA/cmd/$pkg
make configure 2>&1 \ _log " *** configure $pkg for clean"
|| _fail " !!! configure for clean failed" make configure 2>&1 \
|| _fail " !!! configure $pkg for clean failed"
_log " *** clean stress/src" _log " *** clean $pkg tools"
cd $WORKAREA/cmd/xfs/stress/src make realclean 2>&1 \
make clobber 2>&1 \ || _fail " !!! clean $pkg failed"
|| _fail " !!! clean stress/src failed" done
_log " *** clean xfs tools"
cd $WORKAREA/cmd/xfs
make realclean 2>&1 \
|| _fail " !!! clean tools failed"
_log " *** clean quota tools" _log " *** clean quota tools"
cd $WORKAREA/cmd/quota cd $WORKAREA/cmd/quota
( rm -f configure ; autoconf ; sh configure ; make clean ) 2>&1 \ ( rm -f configure ; autoconf ; sh configure ; make clean ) 2>&1 \
|| _fail " !!! clean quota failed" || _fail " !!! clean quota failed"
_log " *** clean qa"
cd $WORKAREA/cmd/xfs/stress
rm -f *.full *.bad *.log *.time *.core core 2>&1 \
|| _fail " !!! clean qa failed"
_log " *** clean linux" _log " *** clean linux"
cd $WORKAREA/linux cd $WORKAREA/linux
make mrproper 2>&1 \ make mrproper 2>&1 \
@@ -346,29 +336,31 @@ do
make -j2 EXTRAVERSION=$EXTRA modules 2>&1 \ make -j2 EXTRAVERSION=$EXTRA modules 2>&1 \
|| _fail " !!! build modules failed" || _fail " !!! build modules failed"
_log " *** build tools" _log " *** build and install tools"
cd $WORKAREA/cmd/xfs for pkg in attr acl xfsprogs xfsdump xfstests
do
# use e-fence - but this will only take effect on configure cd $WORKAREA/cmd/$pkg
export MALLOCLIB=/usr/lib/libefence.a
make configure 2>&1 \
|| _fail " !!! configure tools failed"
make default 2>&1 \
|| _fail " !!! build tools failed"
_log " *** build quota tools" # use e-fence - but this will only take effect on configure
export MALLOCLIB=/usr/lib/libefence.a
make configure 2>&1 \
|| _fail " !!! configure $pkg failed"
make default 2>&1 \
|| _fail " !!! build $pkg failed"
_sudo make install install-dev 2>&1 \
|| _fail " !!! install $pkg failed"
done
_log " *** build and install quota tools"
cd $WORKAREA/cmd/quota cd $WORKAREA/cmd/quota
# use e-fence - but this will only take effect on configure # use e-fence - but this will only take effect on configure
export MALLOCLIB=/usr/lib/libefence.a export MALLOCLIB=/usr/lib/libefence.a
( rm -f configure ; autoconf ; sh configure ; make all ) 2>&1 \ ( rm -f configure ; autoconf ; sh configure ; make all ) 2>&1 \
|| _fail " !!! build quota failed" || _fail " !!! build quota failed"
_sudo make install 2>&1 \
_log " *** build stress/src" || _fail " !!! install quota failed"
cd $WORKAREA/cmd/xfs/stress/src
make default 2>&1 \
|| _fail " !!! build stress/src failed"
new_state="install" new_state="install"
;; ;;
@@ -387,16 +379,6 @@ do
_sudo make EXTRAVERSION=$EXTRA modules_install 2>&1 \ _sudo make EXTRAVERSION=$EXTRA modules_install 2>&1 \
|| _fail " !!! install modules failed" || _fail " !!! install modules failed"
_log " *** install xfs tools"
cd $WORKAREA/cmd/xfs
_sudo make install 2>&1 \
|| _fail " !!! install tools failed"
_log " *** install quota tools"
cd $WORKAREA/cmd/quota
_sudo make install 2>&1 \
|| _fail " !!! install quota failed"
_log " *** reinit lilo" _log " *** reinit lilo"
_sudo /sbin/lilo 2>&1 \ _sudo /sbin/lilo 2>&1 \
|| _fail " !!! reinit lilo failed" || _fail " !!! reinit lilo failed"