blob: 997255150ca9ea4e34a30bf0c8f4f8eebc124a92 (
plain)
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
|
#!/bin/bash
source tests-common.sh
inherit savedconfig
sc() { EBUILD_PHASE=install save_config "$@" ; }
rc() { EBUILD_PHASE=prepare restore_config "$@" ; }
tbegin "simple save_config"
sc $0 >/dev/null
ret=$?
[[ -f ${ED}/etc/portage/savedconfig/${CATEGORY}/${PF} ]]
tend $(( ret + $? ))
rm -rf "${ED}/etc"
tbegin "multi save_config"
sc *.sh >/dev/null
ret=$?
[[ -d ${ED}/etc/portage/savedconfig/${CATEGORY}/${PF} ]]
tend $(( ret + $? ))
rm -rf "${ED}/etc"
tbegin "dir save_config"
sc CVS >/dev/null
ret=$?
[[ -d ${ED}/etc/portage/savedconfig/${CATEGORY}/${PF} ]]
tend $(( ret + $? ))
rm -rf "${ED}/etc"
texit
|