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

0 comments on commit 771e69d

Please sign in to comment.