chiark / gitweb /
[PATCH] add test and documentation for new %D devfs format modifier
[elogind.git] / test / label_test
1 #!/bin/bash
2
3 export UDEV_TEST=yes
4 export SYSFS_PATH=$PWD/sys/
5 export UDEV_CONFIG_DIR=$PWD/
6 export UDEV_ROOT=$PWD/udev/
7 export UDEV_DB=udev.tdb
8 export UDEV_CONFIG_FILE=label_test.config
9 export UDEV_PERMISSION_FILE=udev.permissions
10
11 export ACTION=add
12 export DEVPATH=block/sda
13
14 ../udev block
15 ls udev
16
17 export DEVPATH=block/sda/sda3
18
19 ../udev block
20 ls udev
21
22 export ACTION=remove
23 export DEVPATH=block/sda
24
25 ../udev block
26 ls udev
27
28 export DEVPATH=block/sda/sda3
29
30 ../udev block
31 ls udev
32
33