diff mbox

[2/2] xfstests-bld: misc: remove encrypt-smoketest

Message ID 20170608214627.136906-2-ebiggers3@gmail.com (mailing list archive)
State New, archived
Headers show

Commit Message

Eric Biggers June 8, 2017, 9:46 p.m. UTC
From: Eric Biggers <ebiggers@google.com>

The encrypt-smoketest script isn't really useful anymore now that
xfstests has an "encrypt" group of tests, which can be run in all
configurations using a command like 'kvm-xfstests -g encrypt'.

Signed-off-by: Eric Biggers <ebiggers@google.com>
---
 misc/Makefile.in       |  3 +--
 misc/encrypt-smoketest | 68 --------------------------------------------------
 2 files changed, 1 insertion(+), 70 deletions(-)
 delete mode 100755 misc/encrypt-smoketest

Comments

Theodore Ts'o June 9, 2017, 3:07 a.m. UTC | #1
On Thu, Jun 08, 2017 at 02:46:27PM -0700, Eric Biggers wrote:
> From: Eric Biggers <ebiggers@google.com>
> 
> The encrypt-smoketest script isn't really useful anymore now that
> xfstests has an "encrypt" group of tests, which can be run in all
> configurations using a command like 'kvm-xfstests -g encrypt'.
> 
> Signed-off-by: Eric Biggers <ebiggers@google.com>

Thanks, applied.

					- Ted
--
To unsubscribe from this list: send the line "unsubscribe fstests" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/misc/Makefile.in b/misc/Makefile.in
index c0f2395..ec10377 100644
--- a/misc/Makefile.in
+++ b/misc/Makefile.in
@@ -12,8 +12,7 @@  CFLAGS = @CFLAGS@
 LDFLAGS = @LDFLAGS@
 
 PROGS= fname_benchmark postmark resize syncfs
-SCRIPTS= encrypt-fname-benchmark \
-	encrypt-smoketest
+SCRIPTS= encrypt-fname-benchmark
 
 all: $(PROGS)
 
diff --git a/misc/encrypt-smoketest b/misc/encrypt-smoketest
deleted file mode 100755
index e207937..0000000
--- a/misc/encrypt-smoketest
+++ /dev/null
@@ -1,68 +0,0 @@ 
-#!/bin/sh -vx
-
-. /root/test-config
-
-dmesg -n 7
-mkdir -p /vdc
-
-setup_test_dummy_key ()
-{
-    mode='\x00\x00\x00\x00'
-    raw="$(printf ""\\\\x%02x"" $(seq 0 63))"
-    if lscpu | grep "Byte Order" | grep -q Little ; then
-	size='\x40\x00\x00\x00'
-    else
-	size='\x00\x00\x00\x40'
-    fi
-    key="${mode}${raw}${size}"
-    keyctl new_session
-    echo -n -e "${key}" | keyctl padd logon fscrypt:4242424242424242 @s
-}
-
-do_mount ()
-{
-    mount -t ext4 $VDC /vdc
-}
-
-do_unmount ()
-{
-    umount /vdc
-}
-
-do_smoketest ()
-{
-    do_mount
-    rm -rf /vdc/a /vdc/b
-    mkdir /vdc/a /vdc/b
-    echo foobar | e4crypt add_key /vdc/a
-    cp /etc/motd /vdc
-    mv /vdc/motd /vdc/a
-    cp /etc/motd /vdc/a
-    ln -s motd /vdc/a/link
-    cp -r /root/xfstests /vdc/a
-    do_unmount
-    do_mount
-    lsattr /vdc/a
-    ls -l /vdc/a
-    cat /vdc/a/link
-    cat /vdc/a/motd
-    do_unmount
-    keyctl purge logon
-    do_mount
-    lsattr /vdc/a
-    ls -l /vdc/a
-    if test -z "$SKIP_CLEANUP" ; then
-	rm -rf /vdc/a /vdc/b
-    fi
-    do_unmount
-}
-
-if test -z "$SKIP_NO_DIR_INDEX" ; then
-    mke2fs -t ext4 -O encrypt,^dir_index -Fq $VDC
-    do_smoketest
-fi
-
-if test -z "$SKIP_DIR_INDEX" ; then
-    mke2fs -t ext4 -O encrypt -Fq $VDC
-    do_smoketest
-fi