]> git.lizzy.rs Git - bspwm.git/blob - tests/run
bspwm: port rounded corners patch to latest version
[bspwm.git] / tests / run
1 #! /bin/sh
2
3 focus_follows_pointer=$(bspc config focus_follows_pointer)
4 initial_polarity=$(bspc config initial_polarity)
5 automatic_scheme=$(bspc config automatic_scheme)
6 bspc config automatic_scheme spiral
7 bspc config initial_polarity first_child
8 bspc config focus_follows_pointer false
9
10 cleanup () {
11         bspc config automatic_scheme "$automatic_scheme"
12         bspc config initial_polarity "$initial_polarity"
13         bspc config focus_follows_pointer "$focus_follows_pointer"
14 }
15
16 abort() {
17         cleanup
18         echo "One test failed." 1>&2
19         exit 1
20 }
21
22 echo "Node"
23 echo "-> Insertion"
24 ./node/insertion || abort
25 echo "-> Removal"
26 ./node/removal || abort
27 echo "-> Transfer"
28 ./node/transfer || abort
29 echo "-> Swap"
30 ./node/swap || abort
31 echo "-> Flags"
32 ./node/flags || abort
33 echo "-> Receptacle"
34 ./node/receptacle || abort
35
36 echo "Desktop"
37 echo "-> Transfer"
38 ./desktop/transfer || abort
39 echo "-> Swap"
40 ./desktop/swap || abort
41
42 cleanup
43
44 echo "All tests passed."