source: client/shared/lib/engine/tests/Modify/Cache.shtest @ d568b1f

918-git-images-111dconfigfileconfigure-oglivegit-imageslgromero-new-oglivemainmaint-cronmount-efivarfsmultivmmultivm-ogboot-installerogClonningEngineogboot-installer-jenkinsoglive-ipv6test-python-scriptsticket-301ticket-50ticket-50-oldticket-577ticket-585ticket-611ticket-612ticket-693ticket-700ubu24tplunification2use-local-agent-oglivevarios-instalacionwebconsole3
Last change on this file since d568b1f was 51db584, checked in by irina <irinagomez@…>, 14 years ago

test de cache y bloqueos

git-svn-id: https://opengnsys.es/svn/branches/version1.0@1686 a21b9725-9963-47de-94b9-378ad31fedc9

  • Property mode set to 100644
File size: 2.2 KB
Line 
1Test de comprobacion de la librería Cache.lib y los script relacionados
2=======================================================================
3Este test destruye la cache
4Necesita que las particiones sean tres como máximo
5=================================================
6
7$ ogUnmountCache 2>/dev/null ; df|grep cache
8
9
10$ ogCreateCache 10000000 1>/dev/null 2>&1
11
12$ AUX=$(ogListPartitions 1) ; echo ${AUX##*CACHE:} | sed s/\ .*\$//g
1310000000
14
15# Comprobamos que no esta formateada
16$ ogCheckFs 1 4
17OpenGnSys error:  ogCheckFs:  "1, 4, CACHE"
18
19$ ogFormatCache|tail -1
20ReiserFS is successfully created on /dev/sda4.
21
22$ ogMountCache
23/opt/opengnsys/cache
24
25$ echo $OGCAC
26/opt/opengnsys/cache
27
28$ touch $OGCAC$OGIMG/lll
29$ ls $OGCAC$OGIMG
30lll
31
32$ rm $OGCAC$OGIMG/lll
33
34$ ogFindCache
351 4
36
37$ ogGetCacheSize
3810000000
39
40
41$ ogDeleteCache >/dev/null 2>&1
42$ ogFindCache
43
44$ initCache  2000000 1>/dev/null 2>&1
45$ touch $OGCAC$OGIMG/lll
46$ ls $OGCAC$OGIMG
47lll
48
49$ rm $OGCAC$OGIMG/lll
50
51#################################################33
52# No permite unicast
53#################################################33
54#$ echo ooo > $OGCAC$OGIMG/_test_.img
55#$ echo jjjjjjjjjjjjjjjjjjjjjjjjjjjjjj > $OGIMG/_test_.img
56#$ touch $OGIMG/_test_.torrent
57#$ updateCache REPO _test_ UNICAST
58
59
60Comprobamos los errores de las entradas de datos
61================================================
62$ ogCreateCache
63OpenGnSys error:  ogCreateCache:  ""
64
65$ ogCreateCache -1
66OpenGnSys error:  ogCreateCache:  "-1"
67
68$ ogCreateCache 0
69OpenGnSys error:  ogCreateCache:  "0"
70
71# cuando se está usando la cuarta partitión no debe crearse la cache
72#$ ogCreatePartition 1 NTFS:200000 EXT3:2000000 EXT3:2000000 NTFS:30000000
73#$ ogListPartitions 1
74#NTFS:200000 EXT3:2000000 EXT3:2000000 EXTENDED:20000000 LINUX-SWAP:199999
75#$ ogCreateCache 1000000
76#$ ogFindCache
77
78
79# si hay cache no podemos
80$ ogDeleteCache 1>/dev/null 2>&1
81$ ogCreatePartitions 1 NTFS:200000 EXT3:2000000 EXT3:2000000 1>/dev/null 2>&1
82$ ogCreateCache 1000000 1>/dev/null 2>&1
83$ ogCreatePartitions 1 NTFS:200000 EXT2:2000000 EXT2:2000000 LINUX-SWAP:200000 1>/dev/null 2>&1; echo $?
841
85
86FALTA
87====
88ogGetCacheSpace
89updateCache
90
91Error
92=====
93Al crear la cache no se comprueba si existe una cuarta particion. La machaca
Note: See TracBrowser for help on using the repository browser.