File tree Expand file tree Collapse file tree 5 files changed +33
-11
lines changed Expand file tree Collapse file tree 5 files changed +33
-11
lines changed Original file line number Diff line number Diff line change 11
11
@exit 1
12
12
endif
13
13
14
- test :
14
+ pytest :
15
15
sudo tests/test.sh
16
+
17
+ .PHONY : modload
18
+
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ #!/usr/bin/python3
2
+
3
+ # TODO
Original file line number Diff line number Diff line change
1
+ #! /bin/sh
2
+
3
+ set -uxe
4
+ chip=" gpio-mockup-A"
5
+ cur=" $( pwd) "
6
+
7
+ rmmod gpio-mockup > /dev/null 2>&1 || true
8
+ if lsmod | grep -sq gpio-mockup ; then
9
+ echo " Could not remove the gpio-mockup module. Exiting." >&2
10
+ exit 1
11
+ fi
12
+ modprobe gpio-mockup gpio_mockup_ranges=-1,8
13
+ cd /sys/class/gpio/
14
+ for d in gpiochip* ; do
15
+ if test " $( cat $d /label) " = " $chip " ; then
16
+ D=$d
17
+ break
18
+ fi
19
+ done
20
+ E=" /sys/kernel/debug/gpio-mockup-event/$chip "
21
+ H=" $( hostname | sed -e ' s/\..*//' ) "
22
+ cd " $cur "
23
+
24
+ export PYTHONPATH=.:../asyncgpio
25
+
26
+ python3 tests/run.py $chip
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments