irix qa stuff

have different output for linux and irix
our access checks aren't quite the same -
they have been corrected on linux due to some
complaints
This commit is contained in:
Tim Shimmin
2004-08-05 08:28:48 +00:00
parent ae2e4eed59
commit 0e5f6a8c42
4 changed files with 16 additions and 2 deletions
+4 -1
View File
@@ -57,12 +57,15 @@ _filter()
-e '/----------/d'
}
# link correct .out file
_link_out_file $seq.out
# real QA test starts here
_supported_fs xfs
_supported_os IRIX Linux
path=$TEST_DIR/t_access
src/t_access_root $path | _filter
src/t_access_root $path | tee $seq.full | _filter
# success, all done
status=0
+9
View File
@@ -0,0 +1,9 @@
QA output created by 088
access(TEST_DIR/t_access, 0) returns 0
access(TEST_DIR/t_access, R_OK) returns 0
access(TEST_DIR/t_access, W_OK) returns 0
access(TEST_DIR/t_access, X_OK) returns 0
access(TEST_DIR/t_access, R_OK | W_OK) returns 0
access(TEST_DIR/t_access, R_OK | X_OK) returns 0
access(TEST_DIR/t_access, W_OK | X_OK) returns 0
access(TEST_DIR/t_access, R_OK | W_OK | X_OK) returns 0
Executable → Regular
View File
+3 -1
View File
@@ -54,9 +54,11 @@ trap "rm -f $tmp.*; exit \$status" 0 1 2 3 15
_supported_fs xfs
_supported_os Linux IRIX
rm -f $seq.full
run_fsx()
{
echo fsx $@ | sed -e "s/ $bsize / BSIZE /g" -e "s/ $psize / PSIZE /g"
echo fsx $@ | tee -a $seq.full | sed -e "s/ $bsize / BSIZE /g" -e "s/ $psize / PSIZE /g"
rm -f $TEST_DIR/junk
$here/ltp/fsx $@ $TEST_DIR/junk > $tmp.stdout 2> $tmp.stderr
if [ $? -ne 0 ]; then