diff options
Diffstat (limited to 'test/libsysfs.conf')
-rw-r--r-- | test/libsysfs.conf | 77 |
1 files changed, 77 insertions, 0 deletions
diff --git a/test/libsysfs.conf b/test/libsysfs.conf new file mode 100644 index 0000000..de1f977 --- /dev/null +++ b/test/libsysfs.conf @@ -0,0 +1,77 @@ +# The config file for libsysfs testsuite +# All values in this file are in relation to the sysfs filesystem only + +# A valid directory path +VALID_DIRECTORY_PATH=/sys/bus/pci + +# A valid link path under sysfs +VALID_LINK_PATH=/sys/block/sda/device + +# Path to a regular attribute (file) +VALID_FILE_PATH=/sys/block/sda/dev + +# A valid link name under a subdirectory of VALID_DIRECTORY_PATH - enter a +# pci device name here if you have defined VALID_DIRECTORY_PATH as /sys/bus/pci +VALID_SUBDIR_LINK_NAME=0000:00:00.0 + +# A valid subsystem name - an entry under /sys +VALID_SUBSYSTEM=bus + +# A valid bus name supported on this system +# A device belonging to the bus +# Absolute path to the device +# A valid attribute defined for this device +VALID_BUS_NAME=pci +VALID_BUS_ID=0000:00:00.0 +VALID_DEVICE_PATH=/sys/devices/pci0000:00/0000:00:00.0 +VALID_DEVICE_ATTR=vendor + +# A valid attribute exported under VALID_BUS_NAME +# NOTE: As of now, no buses export attributes, change this to a valid value +# when one becomes avaliable +VALID_BUS_ATTR=online + +# A valid directory under /sys/devices +# Its absolute path +# A valid subdirectory under VALID_ROOT_PATH +VALID_ROOT_NAME=pci0000:00 +VALID_ROOT_PATH=/sys/devices/pci0000:00 +VALID_SUBDIR_NAME=0000:00:00.0 + +# A valid class - directory under /sys/class +# A valid class_device belonging to the class - a dir under VALID_CLASS +# Abslolute path to the VALID_CLASS_DEVICE +# A valid attribute defined for the VALID_CLASS_DEVICE +VALID_CLASS=net +VALID_CLASS_DEVICE=eth0 +VALID_CLASS_DEVICE_PATH=/sys/class/net/eth0 +VALID_CLASS_DEV_ATTR=type + +# A valid directory path under /sys/block/xxx - preferably a partition +VALID_BLOCK_DEV_PATH=/sys/block/sda/sda1 + +# A valid driver (preferably a driver that exports readable attributes) +# the absolute path to the driver +# the bus the driver is registered on +# a device that is using it and +# a valid attribute corresponding to the driver +VALID_DRIVER=3c59x +VALID_DRIVER_PATH=/sys/bus/pci/drivers/3c59x +VALID_DRIVER_BUS=pci +VALID_DRIVER_DEVICE=0000:01:0a.0 +VALID_DRIVER_ATTR=new_id + +# Another valid driver - one without attributes/devices that use it +# its absolute path +# the bus the driver is registered +# a device that is using it (a dummy value basically) +# an attribute corresponding to the driver (another dummy value) +VALID_DRIVER1=usbfs +VALID_DRIVER1_PATH=/sys/bus/usb/drivers/usbfs +VALID_DRIVER1_BUS=usb +VALID_DRIVER1_DEVICE=dummy1 +VALID_DRIVER1_ATTR=dummy2 + +# Path to a writable attribute +VALID_WRITE_ATTR_PATH=/sys/class/net/eth0/tx_queue_len + |