#!/bin/bash
# meta: proxy=false
# meta: preconfig=./NFS-config
#
# Tests for the PyNFS 'lookupp' suite (lookup is mostly putfh).
#
# LKPP1a : LOOKUPP with non-dir (cfh) (link)
# LKPP1r : LOOKUPP with non-dir (cfh) (file)
# LKPP2  : Lookupp from root should return NFS4ERR_NOENT
# LKPP3  : Lookup without a cfh should return NFS4ERR_NOFILEHANDLE
#
# Disabled due to currently failing:
#
#   LKPP1d : Basic Lookupp test
#     "LOOKUPP returned '\x00\x00\x00\x00M\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x00\x00\x04\x00\x00\x00@:QA\x00\x00\x00\x00\xc8\x9f\xe8B\x19+\x00\x00@@\xe2B\x19+\x00\x00`:QA\x00\x00\x00\x00\xd0\xb9\xe5E\x19+\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00', expected '\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'"
#
# Disabled due to not making sense in our implementation:
#
#   LKPP1b : LOOKUPP with non-dir (cfh) (block)
#   LKPP1f : LOOKUPP with non-dir (cfh) (fifo)
#   LKPP1s : LOOKUPP with non-dir (cfh) (socket)
#
# Needing further investigation:
# 
#   LKPP1c : LOOKUPP with non-dir (cfh) (char)
#

source ./Macros

#PYNFS_EXEC "$NFS41_EXEC $NFS_HOST:$NFS_HOME LKPP1a LKPP1r LKPP2 LKPP3 --noinit"
exit $?
