]> git.lizzy.rs Git - bspwm.git/blob - tests/run
90cca7ca5661e745409d7378dd03ba8d7f087dac
[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 bspc config initial_polarity first_child
6 bspc config focus_follows_pointer false
7
8 cleanup () {
9         bspc config initial_polarity "$initial_polarity"
10         bspc config focus_follows_pointer "$focus_follows_pointer"
11 }
12
13 abort() {
14         cleanup
15         echo "One test failed." 1>&2
16         exit 1
17 }
18
19 echo "Node"
20 echo "-> Insertion"
21 ./node/insertion || abort
22 echo "-> Removal"
23 ./node/removal || abort
24 echo "-> Transfer"
25 ./node/transfer || abort
26 echo "-> Swap"
27 ./node/swap || abort
28 echo "-> Flags"
29 ./node/flags || abort
30 echo "-> Receptacle"
31 ./node/receptacle || abort
32
33 echo "Desktop"
34 echo "-> Transfer"
35 ./desktop/transfer || abort
36 echo "-> Swap"
37 ./desktop/swap || abort
38
39 cleanup
40
41 echo "All tests passed."