Skip to content

Commit

Permalink
xfstests: Convert all tests to use /bin/bash
Browse files Browse the repository at this point in the history
While most tests use /bin/sh, they are dependent on /bin/sh being a
bash shell.  Convert all the tests to execute via /bin/bash as it is
much, much simpler than trying to debug and remove all the bashisms
throughout the test code.

Signed-off-by: Dave Chinner <david@fromorbit.com>
Reviewed-by: Eric Sandeen <sandeen@sandeen.net>
  • Loading branch information
dchinner committed Jan 19, 2010
1 parent 387165a commit 771e69d
Show file tree
Hide file tree
Showing 240 changed files with 245 additions and 245 deletions.
2 changes: 1 addition & 1 deletion 001
@@ -1,4 +1,4 @@
#! /bin/sh #! /bin/bash
# FS QA Test No. 001 # FS QA Test No. 001
# #
# Random file copier to produce chains of identical files so the head # Random file copier to produce chains of identical files so the head
Expand Down
2 changes: 1 addition & 1 deletion 002
@@ -1,4 +1,4 @@
#! /bin/sh #! /bin/bash
# FS QA Test No. 002 # FS QA Test No. 002
# #
# simple inode link count test for a regular file # simple inode link count test for a regular file
Expand Down
2 changes: 1 addition & 1 deletion 003
@@ -1,4 +1,4 @@
#! /bin/sh #! /bin/bash
# FS QA Test No. 003 # FS QA Test No. 003
# #
# exercise xfs_db bug #784078 # exercise xfs_db bug #784078
Expand Down
2 changes: 1 addition & 1 deletion 004
@@ -1,4 +1,4 @@
#! /bin/sh #! /bin/bash
# FS QA Test No. 004 # FS QA Test No. 004
# #
# exercise xfs_db bug #789674 and other freesp functionality # exercise xfs_db bug #789674 and other freesp functionality
Expand Down
2 changes: 1 addition & 1 deletion 005
@@ -1,4 +1,4 @@
#! /bin/sh #! /bin/bash
# FS QA Test No. 005 # FS QA Test No. 005
# #
# Test symlinks & ELOOP # Test symlinks & ELOOP
Expand Down
2 changes: 1 addition & 1 deletion 006
@@ -1,4 +1,4 @@
#! /bin/sh #! /bin/bash
# FS QA Test No. 006 # FS QA Test No. 006
# #
# permname # permname
Expand Down
2 changes: 1 addition & 1 deletion 007
@@ -1,4 +1,4 @@
#! /bin/sh #! /bin/bash
# FS QA Test No. 007 # FS QA Test No. 007
# #
# drive the src/nametest program # drive the src/nametest program
Expand Down
2 changes: 1 addition & 1 deletion 008
@@ -1,4 +1,4 @@
#! /bin/sh #! /bin/bash
# FS QA Test No. 008 # FS QA Test No. 008
# #
# randholes test # randholes test
Expand Down
2 changes: 1 addition & 1 deletion 009
@@ -1,4 +1,4 @@
#! /bin/sh #! /bin/bash
# FS QA Test No. 009 # FS QA Test No. 009
# #
# XFS allocator test (preallocation - allocp, resvsp ,etc) # XFS allocator test (preallocation - allocp, resvsp ,etc)
Expand Down
2 changes: 1 addition & 1 deletion 010
@@ -1,4 +1,4 @@
#! /bin/sh #! /bin/bash
# FS QA Test No. 010 # FS QA Test No. 010
# #
# dbtest # dbtest
Expand Down
2 changes: 1 addition & 1 deletion 011
@@ -1,4 +1,4 @@
#! /bin/sh #! /bin/bash
# FS QA Test No. 011 # FS QA Test No. 011
# #
# dirstress # dirstress
Expand Down
2 changes: 1 addition & 1 deletion 012
@@ -1,4 +1,4 @@
#! /bin/sh #! /bin/bash
# FS QA Test No. 012 # FS QA Test No. 012
# #
# holes # holes
Expand Down
2 changes: 1 addition & 1 deletion 013
@@ -1,4 +1,4 @@
#! /bin/sh #! /bin/bash
# FS QA Test No. 013 # FS QA Test No. 013
# #
# fsstress # fsstress
Expand Down
2 changes: 1 addition & 1 deletion 014
@@ -1,4 +1,4 @@
#! /bin/sh #! /bin/bash
# FS QA Test No. 014 # FS QA Test No. 014
# #
# truncfile # truncfile
Expand Down
2 changes: 1 addition & 1 deletion 015
@@ -1,4 +1,4 @@
#! /bin/sh #! /bin/bash
# FS QA Test No. 015 # FS QA Test No. 015
# #
# check out-of-space behaviour # check out-of-space behaviour
Expand Down
2 changes: 1 addition & 1 deletion 016
@@ -1,4 +1,4 @@
#! /bin/sh #! /bin/bash
# FS QA Test No. 016 # FS QA Test No. 016
# #
# test end of log overwrite bug #796141 # test end of log overwrite bug #796141
Expand Down
2 changes: 1 addition & 1 deletion 017
@@ -1,4 +1,4 @@
#! /bin/sh #! /bin/bash
# FS QA Test No. 017 # FS QA Test No. 017
# #
# test remount ro - pv 795642 # test remount ro - pv 795642
Expand Down
2 changes: 1 addition & 1 deletion 018
@@ -1,4 +1,4 @@
#! /bin/sh #! /bin/bash
# FS QA Test No. 018 # FS QA Test No. 018
# #
# xfs_logprint test - test v2 logs of different LR sizes # xfs_logprint test - test v2 logs of different LR sizes
Expand Down
2 changes: 1 addition & 1 deletion 019
@@ -1,4 +1,4 @@
#! /bin/sh #! /bin/bash
# FS QA Test No. 019 # FS QA Test No. 019
# #
# mkfs protofile test # mkfs protofile test
Expand Down
2 changes: 1 addition & 1 deletion 020
@@ -1,4 +1,4 @@
#! /bin/sh #! /bin/bash
# FS QA Test No. 020 # FS QA Test No. 020
# #
# extended attributes # extended attributes
Expand Down
2 changes: 1 addition & 1 deletion 021
@@ -1,4 +1,4 @@
#! /bin/sh #! /bin/bash
# FS QA Test No. 021 # FS QA Test No. 021
# #
# xfs_db type attr test (pv 797508 linux-xfs & IRIX) # xfs_db type attr test (pv 797508 linux-xfs & IRIX)
Expand Down
2 changes: 1 addition & 1 deletion 022
@@ -1,4 +1,4 @@
#! /bin/sh #! /bin/bash
# FS QA Test No. 022 # FS QA Test No. 022
# #
# Test out a level 0 dump/restore to a tape of a subdir # Test out a level 0 dump/restore to a tape of a subdir
Expand Down
2 changes: 1 addition & 1 deletion 023
@@ -1,4 +1,4 @@
#! /bin/sh #! /bin/bash
# FS QA Test No. 023 # FS QA Test No. 023
# #
# To test xfsdump/restore to tape using a directory with # To test xfsdump/restore to tape using a directory with
Expand Down
2 changes: 1 addition & 1 deletion 024
@@ -1,4 +1,4 @@
#! /bin/sh #! /bin/bash
# FS QA Test No. 024 # FS QA Test No. 024
# #
# Test out incremental dumps # Test out incremental dumps
Expand Down
2 changes: 1 addition & 1 deletion 025
@@ -1,4 +1,4 @@
#! /bin/sh #! /bin/bash
# FS QA Test No. 025 # FS QA Test No. 025
# #
# Test dump/restore using -m option (min strategy) # Test dump/restore using -m option (min strategy)
Expand Down
2 changes: 1 addition & 1 deletion 026
@@ -1,4 +1,4 @@
#! /bin/sh #! /bin/bash
# FS QA Test No. 026 # FS QA Test No. 026
# #
# Test xfsdump/xfsrestore to a dump file (as opposed to a tape) # Test xfsdump/xfsrestore to a dump file (as opposed to a tape)
Expand Down
2 changes: 1 addition & 1 deletion 027
@@ -1,4 +1,4 @@
#! /bin/sh #! /bin/bash
# FS QA Test No. 027 # FS QA Test No. 027
# #
# Test out "xfsdump | xfsrestore" # Test out "xfsdump | xfsrestore"
Expand Down
2 changes: 1 addition & 1 deletion 028
@@ -1,4 +1,4 @@
#! /bin/sh #! /bin/bash
# FS QA Test No. 028 # FS QA Test No. 028
# #
# To test out xfsinvutil # To test out xfsinvutil
Expand Down
2 changes: 1 addition & 1 deletion 029
@@ -1,4 +1,4 @@
#! /bin/sh #! /bin/bash
# FS QA Test No. 029 # FS QA Test No. 029
# #
# exercise mkfs log (internal/external) zeroing # exercise mkfs log (internal/external) zeroing
Expand Down
2 changes: 1 addition & 1 deletion 030
@@ -1,4 +1,4 @@
#! /bin/sh #! /bin/bash
# FS QA Test No. 030 # FS QA Test No. 030
# #
# exercise xfs_repair repairing broken filesystems # exercise xfs_repair repairing broken filesystems
Expand Down
2 changes: 1 addition & 1 deletion 031
@@ -1,4 +1,4 @@
#! /bin/sh #! /bin/bash
# FS QA Test No. 031 # FS QA Test No. 031
# #
# exercise xfs_repair - ensure repeated use doesn't corrupt # exercise xfs_repair - ensure repeated use doesn't corrupt
Expand Down
2 changes: 1 addition & 1 deletion 032
@@ -1,4 +1,4 @@
#! /bin/sh #! /bin/bash
# FS QA Test No. 032 # FS QA Test No. 032
# #
# cross check mkfs detection of foreign filesystems # cross check mkfs detection of foreign filesystems
Expand Down
2 changes: 1 addition & 1 deletion 033
@@ -1,4 +1,4 @@
#! /bin/sh #! /bin/bash
# FS QA Test No. 033 # FS QA Test No. 033
# #
# exercise xfs_repair repairing broken filesystems (root inodes) # exercise xfs_repair repairing broken filesystems (root inodes)
Expand Down
2 changes: 1 addition & 1 deletion 034
@@ -1,4 +1,4 @@
#! /bin/sh #! /bin/bash
# FS QA Test No. 034 # FS QA Test No. 034
# #
# pv 801241 - check for reference leaks from the *handle xfsctls # pv 801241 - check for reference leaks from the *handle xfsctls
Expand Down
2 changes: 1 addition & 1 deletion 035
@@ -1,4 +1,4 @@
#! /bin/sh #! /bin/bash
# FS QA Test No. 035 # FS QA Test No. 035
# #
# Test doing multiple dumps to tape and restoring the 2nd one # Test doing multiple dumps to tape and restoring the 2nd one
Expand Down
2 changes: 1 addition & 1 deletion 036
@@ -1,4 +1,4 @@
#! /bin/sh #! /bin/bash
# FS QA Test No. 036 # FS QA Test No. 036
# #
# Test xfsdump/restore minrmt to a remote IRIX tape # Test xfsdump/restore minrmt to a remote IRIX tape
Expand Down
2 changes: 1 addition & 1 deletion 037
@@ -1,4 +1,4 @@
#! /bin/sh #! /bin/bash
# FS QA Test No. 037 # FS QA Test No. 037
# #
# Test xfsdump/restore minrmt to a remote linux tape # Test xfsdump/restore minrmt to a remote linux tape
Expand Down
2 changes: 1 addition & 1 deletion 038
@@ -1,4 +1,4 @@
#! /bin/sh #! /bin/bash
# FS QA Test No. 038 # FS QA Test No. 038
# #
# Test xfsdump/restore to a remote linux tape # Test xfsdump/restore to a remote linux tape
Expand Down
2 changes: 1 addition & 1 deletion 039
@@ -1,4 +1,4 @@
#! /bin/sh #! /bin/bash
# FS QA Test No. 039 # FS QA Test No. 039
# #
# Test xfsdump/restore to a remote IRIX tape # Test xfsdump/restore to a remote IRIX tape
Expand Down
2 changes: 1 addition & 1 deletion 040
@@ -1,4 +1,4 @@
#! /bin/sh #! /bin/bash
# FS QA Test No. 040 # FS QA Test No. 040
# #
# srcdiff test # srcdiff test
Expand Down
2 changes: 1 addition & 1 deletion 041
@@ -1,4 +1,4 @@
#! /bin/sh #! /bin/bash
# FS QA Test No. 041 # FS QA Test No. 041
# #
# growfs QA tests - repeatedly fill/grow the filesystem # growfs QA tests - repeatedly fill/grow the filesystem
Expand Down
2 changes: 1 addition & 1 deletion 042
@@ -1,4 +1,4 @@
#! /bin/sh #! /bin/bash
# FS QA Test No. 042 # FS QA Test No. 042
# #
# xfs_fsr QA tests # xfs_fsr QA tests
Expand Down
2 changes: 1 addition & 1 deletion 043
@@ -1,4 +1,4 @@
#! /bin/sh #! /bin/bash
# FS QA Test No. 043 # FS QA Test No. 043
# #
# Test out xfsdump/restore but rmv inventory prior to restore. # Test out xfsdump/restore but rmv inventory prior to restore.
Expand Down
2 changes: 1 addition & 1 deletion 044
@@ -1,4 +1,4 @@
#! /bin/sh #! /bin/bash
# FS QA Test No. 044 # FS QA Test No. 044
# #
# external log uuid/format tests (TODO - version 2 log format) # external log uuid/format tests (TODO - version 2 log format)
Expand Down
2 changes: 1 addition & 1 deletion 045
@@ -1,4 +1,4 @@
#! /bin/sh #! /bin/bash
# FS QA Test No. 045 # FS QA Test No. 045
# #
# test mount of two FSes with identical UUID and mount with unknown option # test mount of two FSes with identical UUID and mount with unknown option
Expand Down
2 changes: 1 addition & 1 deletion 046
@@ -1,4 +1,4 @@
#! /bin/sh #! /bin/bash
# FS QA Test No. 046 # FS QA Test No. 046
# #
# check on symlinks permissions # check on symlinks permissions
Expand Down
2 changes: 1 addition & 1 deletion 047
@@ -1,4 +1,4 @@
#! /bin/sh #! /bin/bash
# FS QA Test No. 047 # FS QA Test No. 047
# #
# invutil with interactive responses # invutil with interactive responses
Expand Down
2 changes: 1 addition & 1 deletion 048
@@ -1,4 +1,4 @@
#! /bin/sh #! /bin/bash
# FS QA Test No. 048 # FS QA Test No. 048
# #
# test return codes from xfsctl on bad userspace address # test return codes from xfsctl on bad userspace address
Expand Down
2 changes: 1 addition & 1 deletion 049
@@ -1,4 +1,4 @@
#! /bin/sh #! /bin/bash
# FS QA Test No. 049 # FS QA Test No. 049
# #
# XFS on loop test # XFS on loop test
Expand Down
2 changes: 1 addition & 1 deletion 050
@@ -1,4 +1,4 @@
#! /bin/sh #! /bin/bash
# FS QA Test No. 050 # FS QA Test No. 050
# #
# Exercises basic XFS quota functionality # Exercises basic XFS quota functionality
Expand Down
4 changes: 2 additions & 2 deletions 051
@@ -1,4 +1,4 @@
#! /bin/sh #! /bin/bash
# FS QA Test No. 051 # FS QA Test No. 051
# #
# Test out ACLs. # Test out ACLs.
Expand Down Expand Up @@ -100,7 +100,7 @@ echo "Setup file"
# in order to execute it. # in order to execute it.
touch file1 touch file1
cat <<EOF >file1 cat <<EOF >file1
#!/bin/sh #!/bin/bash
echo "Test was executed" echo "Test was executed"
EOF EOF
chmod u=rwx file1 chmod u=rwx file1
Expand Down
2 changes: 1 addition & 1 deletion 052
@@ -1,4 +1,4 @@
#! /bin/sh #! /bin/bash
# FS QA Test No. 052 # FS QA Test No. 052
# #
# Ensure that quota(1) displays blocksizes matching ondisk dquots. # Ensure that quota(1) displays blocksizes matching ondisk dquots.
Expand Down
2 changes: 1 addition & 1 deletion 053
@@ -1,4 +1,4 @@
#! /bin/sh #! /bin/bash
# FS QA Test No. 053 # FS QA Test No. 053
# #
# xfs_repair breaks acls # xfs_repair breaks acls
Expand Down
2 changes: 1 addition & 1 deletion 054
@@ -1,4 +1,4 @@
#! /bin/sh #! /bin/bash
# FS QA Test No. 054 # FS QA Test No. 054
# #
# Check behavior of chown with both user and group quota enabled, # Check behavior of chown with both user and group quota enabled,
Expand Down
2 changes: 1 addition & 1 deletion 055
@@ -1,4 +1,4 @@
#! /bin/sh #! /bin/bash
# FS QA Test No. 055 # FS QA Test No. 055
# #
# Test xfsdump/restore to a remote IRIX tape using RMT user # Test xfsdump/restore to a remote IRIX tape using RMT user
Expand Down
2 changes: 1 addition & 1 deletion 056
@@ -1,4 +1,4 @@
#! /bin/sh #! /bin/bash
# FS QA Test No. 056 # FS QA Test No. 056
# #
# Test xfsdump/xfsrestore to a dump file (as opposed to a tape) # Test xfsdump/xfsrestore to a dump file (as opposed to a tape)
Expand Down
2 changes: 1 addition & 1 deletion 057
@@ -1,4 +1,4 @@
#! /bin/sh #! /bin/bash
# FS QA Test No. 057 # FS QA Test No. 057
# #
# Place holder for test 075. Test out the different acl_get semantics # Place holder for test 075. Test out the different acl_get semantics
Expand Down
2 changes: 1 addition & 1 deletion 058
@@ -1,4 +1,4 @@
#! /bin/sh #! /bin/bash
# FS QA Test No. 058 # FS QA Test No. 058
# #
# Place holder test 068. Test some ACL API functions. # Place holder test 068. Test some ACL API functions.
Expand Down
2 changes: 1 addition & 1 deletion 059
@@ -1,4 +1,4 @@
#! /bin/sh #! /bin/bash
# FS QA Test No. 059 # FS QA Test No. 059
# #
# place holder for IRIX 059 test for xfsdump/xfsrestore multi streams # place holder for IRIX 059 test for xfsdump/xfsrestore multi streams
Expand Down
2 changes: 1 addition & 1 deletion 060
@@ -1,4 +1,4 @@
#! /bin/sh #! /bin/bash
# FS QA Test No. 060 # FS QA Test No. 060
# #
# place holder for IRIX 060 test for xfsdump/xfsrestore multi streams # place holder for IRIX 060 test for xfsdump/xfsrestore multi streams
Expand Down
2 changes: 1 addition & 1 deletion 061
@@ -1,4 +1,4 @@
#! /bin/sh #! /bin/bash
# FS QA Test No. 061 # FS QA Test No. 061
# #
# Test restoring a dump created in IRIX/XFS # Test restoring a dump created in IRIX/XFS
Expand Down
2 changes: 1 addition & 1 deletion 062
@@ -1,4 +1,4 @@
#! /bin/sh #! /bin/bash
# FS QA Test No. 062 # FS QA Test No. 062
# #
# Exercises the getfattr/setfattr tools # Exercises the getfattr/setfattr tools
Expand Down
2 changes: 1 addition & 1 deletion 063
@@ -1,4 +1,4 @@
#! /bin/sh #! /bin/bash
# FS QA Test No. 063 # FS QA Test No. 063
# #
# xfsdump/xfsrestore with EAs # xfsdump/xfsrestore with EAs
Expand Down
2 changes: 1 addition & 1 deletion 064
@@ -1,4 +1,4 @@
#! /bin/sh #! /bin/bash
# FS QA Test No. 064 # FS QA Test No. 064
# #
# test multilevel dump and restores with hardlinks # test multilevel dump and restores with hardlinks
Expand Down
2 changes: 1 addition & 1 deletion 065
@@ -1,4 +1,4 @@
#! /bin/sh #! /bin/bash
# FS QA Test No. 065 # FS QA Test No. 065
# #
# Testing incremental dumps and cumulative restores with # Testing incremental dumps and cumulative restores with
Expand Down

0 comments on commit 771e69d

Please sign in to comment.