File: run

package info (click to toggle)
bspwm 0.9.10-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, trixie
  • size: 868 kB
  • sloc: ansic: 11,968; sh: 336; makefile: 85; python: 38
file content (44 lines) | stat: -rwxr-xr-x 926 bytes parent folder | download | duplicates (3)
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
#! /bin/sh

focus_follows_pointer=$(bspc config focus_follows_pointer)
initial_polarity=$(bspc config initial_polarity)
automatic_scheme=$(bspc config automatic_scheme)
bspc config automatic_scheme spiral
bspc config initial_polarity first_child
bspc config focus_follows_pointer false

cleanup () {
	bspc config automatic_scheme "$automatic_scheme"
	bspc config initial_polarity "$initial_polarity"
	bspc config focus_follows_pointer "$focus_follows_pointer"
}

abort() {
	cleanup
	echo "One test failed." 1>&2
	exit 1
}

echo "Node"
echo "-> Insertion"
./node/insertion || abort
echo "-> Removal"
./node/removal || abort
echo "-> Transfer"
./node/transfer || abort
echo "-> Swap"
./node/swap || abort
echo "-> Flags"
./node/flags || abort
echo "-> Receptacle"
./node/receptacle || abort

echo "Desktop"
echo "-> Transfer"
./desktop/transfer || abort
echo "-> Swap"
./desktop/swap || abort

cleanup

echo "All tests passed."