diff options
Diffstat (limited to 'tests/fs-tests/stress')
-rw-r--r-- | tests/fs-tests/stress/Makefile | 11 | ||||
-rw-r--r-- | tests/fs-tests/stress/atoms/Makefile | 40 | ||||
-rwxr-xr-x | tests/fs-tests/stress/fs_stress00.sh.in (renamed from tests/fs-tests/stress/stress00.sh) | 18 | ||||
-rwxr-xr-x | tests/fs-tests/stress/fs_stress01.sh.in (renamed from tests/fs-tests/stress/stress01.sh) | 16 |
4 files changed, 23 insertions, 62 deletions
diff --git a/tests/fs-tests/stress/Makefile b/tests/fs-tests/stress/Makefile deleted file mode 100644 index c24ff3f..0000000 --- a/tests/fs-tests/stress/Makefile +++ /dev/null @@ -1,11 +0,0 @@ - -SUBDIRS = atoms - -all tests: $(SUBDIRS) - -clean: $(SUBDIRS) - rm -rf run_pdf_test_file_* - -.PHONY: $(SUBDIRS) -$(SUBDIRS): - $(MAKE) -C $@ $(MAKECMDGOALS) diff --git a/tests/fs-tests/stress/atoms/Makefile b/tests/fs-tests/stress/atoms/Makefile deleted file mode 100644 index 9fbfd39..0000000 --- a/tests/fs-tests/stress/atoms/Makefile +++ /dev/null @@ -1,40 +0,0 @@ - -ifeq ($(origin CC),default) -CC = gcc -endif - -CFLAGS := $(CFLAGS) -Wall -g -O2 -I../../lib - -LDFLAGS := $(LDFLAGS) - -TARGETS = stress_1 \ - stress_2 \ - stress_3 \ - pdfrun \ - rndwrite00 \ - fwrite00 \ - rmdir00 \ - rndrm00 \ - rndrm99 \ - gcd_hupper - -all: $(TARGETS) - -$(TARGETS): ../../lib/tests.o - -../lib/tests.o: ../../lib/tests.h - -clean: - rm -f *.o $(TARGETS) run_pdf_test_file - -tests: all - ./stress_1 -e - ./stress_2 - ./stress_3 -e - ./pdfrun - ./rndwrite00 -e - ./fwrite00 - ./rmdir00 - ./rndrm00 - ./rndrm99 - ./gcd_hupper diff --git a/tests/fs-tests/stress/stress00.sh b/tests/fs-tests/stress/fs_stress00.sh.in index 60f8c0d..85ec7a2 100755 --- a/tests/fs-tests/stress/stress00.sh +++ b/tests/fs-tests/stress/fs_stress00.sh.in @@ -1,12 +1,18 @@ #!/bin/sh +prefix=@prefix@ +exec_prefix=@exec_prefix@ +bindir=@bindir@ +libexecpath=@libexecdir@/mtd-utils +TESTBINDIR=@testbindir@ + TEST_DIR=$TEST_FILE_SYSTEM_MOUNT_DIR if test -z "$TEST_DIR"; then TEST_DIR="/mnt/test_file_system" fi -FREESPACE=`../utils/free_space "$TEST_DIR"` +FREESPACE=`$TESTBINDIR/free_space "$TEST_DIR"` if test -z "$FREESPACE"; then @@ -21,13 +27,13 @@ else DURATION=""; fi -FWRITE00=atoms/fwrite00 -RNDWR=atoms/rndwrite00 -GCHUP=atoms/gcd_hupper -PDFLUSH=atoms/pdfrun +FWRITE00=$TESTBINDIR/fwrite00 +RNDWR=$TESTBINDIR/rndwrite00 +GCHUP=$TESTBINDIR/gcd_hupper +PDFLUSH=$TESTBINDIR/pdfrun FSIZE=$(( $FREESPACE/15 )); -../utils/fstest_monitor $DURATION \ +$TESTBINDIR/fstest_monitor $DURATION \ "$FWRITE00 -z $FSIZE -n0 -p 20" \ "$FWRITE00 -z $FSIZE -n0 -p 10 -s" \ "$FWRITE00 -z $FSIZE -n0 -p 20 -u" \ diff --git a/tests/fs-tests/stress/stress01.sh b/tests/fs-tests/stress/fs_stress01.sh.in index 5913c1c..d0ea8f9 100755 --- a/tests/fs-tests/stress/stress01.sh +++ b/tests/fs-tests/stress/fs_stress01.sh.in @@ -1,12 +1,18 @@ #!/bin/sh +prefix=@prefix@ +exec_prefix=@exec_prefix@ +bindir=@bindir@ +libexecpath=@libexecdir@/mtd-utils +TESTBINDIR=@testbindir@ + TEST_DIR=$TEST_FILE_SYSTEM_MOUNT_DIR if test -z "$TEST_DIR"; then TEST_DIR="/mnt/test_file_system" fi -FREESPACE=`../utils/free_space "$TEST_DIR"` +FREESPACE=`$TESTBINDIR/free_space "$TEST_DIR"` if test -z "$FREESPACE"; then @@ -21,12 +27,12 @@ else DURATION=""; fi -FWRITE00=atoms/fwrite00 -RNDWR=atoms/rndwrite00 -PDFLUSH=atoms/pdfrun +FWRITE00=$TESTBINDIR/fwrite00 +RNDWR=$TESTBINDIR/rndwrite00 +PDFLUSH=$TESTBINDIR/pdfrun FSIZE=$(( $FREESPACE/15 )); -../utils/fstest_monitor $DURATION \ +$TESTBINDIR/fstest_monitor $DURATION \ "$FWRITE00 -z $FSIZE -n0 -p 300" \ "$FWRITE00 -z $FSIZE -n0 -u" \ "$FWRITE00 -z $FSIZE -n0 -u -c" \ |