-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathrunUnitTests.sh
More file actions
executable file
·40 lines (32 loc) · 1.36 KB
/
runUnitTests.sh
File metadata and controls
executable file
·40 lines (32 loc) · 1.36 KB
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
# Unit test runner for gsettings bridge
#
# Copyright 2012 Emergya
#
# Licensed under the New BSD license. You may not use this file except in
# compliance with this License.
#
# You may obtain a copy of the License at
# https://github.com/GPII/linux/blob/master/LICENSE.txt
#
# The research leading to these results has received funding from the European Union's
# Seventh Framework Programme (FP7/2007-2013)
# under grant agreement no. 289016.
#!/bin/bash
LOC="/usr/share/glib-2.0/schemas"
# Copy schemas to global location and compile them
sudo cp data/net.gpii.testing.gsettings.gschema.xml $LOC
sudo glib-compile-schemas $LOC
# Make sure they are reset in case they already existed
gsettings reset-recursively net.gpii.testing.gsettings.single-get
gsettings reset-recursively net.gpii.testing.gsettings.single-set
gsettings reset-recursively net.gpii.testing.gsettings.multi-get1
gsettings reset-recursively net.gpii.testing.gsettings.multi-get2
gsettings reset-recursively net.gpii.testing.gsettings.multi-set1
gsettings reset-recursively net.gpii.testing.gsettings.multi-set2
gsettings reset-recursively net.gpii.testing.gsettings.multi-set3
gsettings reset-recursively net.gpii.testing.gsettings.launch
#Run the tests:
node gsettingsTests.js
#Delete the schemas when done and recompile:
sudo rm "$LOC/net.gpii.testing.gsettings.gschema.xml"
sudo glib-compile-schemas $LOC