generic: new case to test getcwd(2)
[xfstests-dev.git] / new
diff --git a/new b/new
index c924ffec9cc8377ac76dd7ec8d4e71c64d24f77b..f712892bcbca498257cf6e7b4f96f523f78e25b6 100755 (executable)
--- a/new
+++ b/new
@@ -1,7 +1,21 @@
-#! /bin/sh
+#! /bin/bash
 #
 #-----------------------------------------------------------------------
 #  Copyright (c) 2000-2005 Silicon Graphics, Inc.  All Rights Reserved.
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License as
+# published by the Free Software Foundation.
+#
+# This program is distributed in the hope that it would be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write the Free Software Foundation,
+# Inc.,  51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
+#
 #-----------------------------------------------------------------------
 #
 # Make a new test
@@ -9,7 +23,7 @@
 
 # generic initialization
 iam=new
-. ./common.rc
+. ./common/rc
 
 trap "rm -f /tmp/$$.; exit" 0 1 2 3 15
 
@@ -65,20 +79,34 @@ fi
 
 echo -n "Creating skeletal script for you to edit ..."
 
+year=`date +%Y`
+
 cat <<End-of-File >$id
-#! /bin/sh
+#! /bin/bash
 # FS QA Test No. $id
 #
 # what am I here for?
 #
 #-----------------------------------------------------------------------
-# Copyright (c) 2000-2005 Silicon Graphics, Inc.  All Rights Reserved.
+# Copyright (c) $year YOUR NAME HERE.  All Rights Reserved.
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License as
+# published by the Free Software Foundation.
+#
+# This program is distributed in the hope that it would be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write the Free Software Foundation,
+# Inc.,  51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 #-----------------------------------------------------------------------
 #
-# creator
-owner=$USER@`_get_fqdn`
 
 seq=\`basename \$0\`
+seqres=\$RESULT_DIR/\$seq
 echo "QA output created by \$seq"
 
 here=\`pwd\`
@@ -93,13 +121,13 @@ _cleanup()
 }
 
 # get standard environment, filters and checks
-. ./common.rc
-. ./common.filter
+. ./common/rc
+. ./common/filter
 
 # real QA test starts here
 
 # Modify as appropriate.
-_supported_fs xfs udf nfs
+_supported_fs generic
 _supported_os IRIX Linux
 
 # if error
@@ -107,7 +135,7 @@ exit
 
 # optional stuff if your test has verbose output to help resolve problems
 #echo
-#echo "If failure, check \$seq.full (this) and \$seq.full.ok (reference)"
+#echo "If failure, check \$seqres.full (this) and \$seqres.full.ok (reference)"
 
 # success, all done
 status=0