forked from subuser-security/subuser
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pre-release
executable file
·57 lines (56 loc) · 1.84 KB
/
pre-release
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
45
46
47
48
49
50
51
52
53
54
55
56
57
#!/bin/bash
# Prerelease checklist:
if [ "$1" = "run-xterms" ]; then
./logic/subuser run xterm &
./logic/subuser run xterm &
./logic/subuser run xterm
exit
fi
if [ -f pre-release ]; then
echo Welcome to the pre-release checklist!
echo To run without installing prerequesits for xpra-bridge test,
echo set the NO_XPRA_BRIDGE env var.
else
echo The pre-release checklist must be run from the subuser source directory.
exit
fi
# - Run texttest-dev
./logic/subuser dev texttest-dev
# - Make ./test/mock-home
mkdir ./test/mock-home
oldhome=$HOME
printf -v HOME "%s/test/mock-home" $PWD
# - Run xpra-x11 bridge test suit
git config --global user.name John Doe
git config --global user.email [email protected]
read -p "Would you like to test the XPRA-X11 bridge? (Takes a long time) [y/n] " -r
echo
if [[ $REPLY =~ ^[Yy]$ ]] ; then
./logic/subuser subuser add xterm xterm@default
notify-send 'Finished adding test xterm subuser.'
./logic/subuser list subusers --long
( xfce4-terminal -e './pre-release run-xterms' ) &
( sleep 5 ; xfce4-terminal -e './pre-release run-xterms' ) &
( sleep 10 ; xfce4-terminal -e './pre-release run-xterms' )
./logic/subuser subuser remove xterm
clear
fi
# - Add a subuser
./logic/subuser subuser add foo foo@$PWD/test/test-repos/default-test-repo
# - Remove subuser
./logic/subuser subuser remove foo
# - Remove old images
./logic/subuser remove-old-images
# - Delete ./test/mock-home
notify-send 'Done with tests.'
read -p "Done with tests. Should I remove the mock home dir? " -r
echo
if [[ $REPLY =~ ^[Yy]$ ]]
then
echo Deleting mock home dir.
rm -rf ./test/mock-home
fi
echo Congradulations! You are done with the pre-release procedure.
echo If everything went as planned, you may now procede to make the
echo release by following the instructions here:
echo http://subuser.org/developers/common-tasks.html