summaryrefslogtreecommitdiff
path: root/test/libsysfs.conf
blob: de1f9776ecec56ddd52b8669c23f75019849cd18 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
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