Revision 55ffacfa htools/offline-test.sh

b/htools/offline-test.sh
173 173
  grep -q '"success":true,'
174 174
echo OK
175 175

  
176
echo Checking file-based RAPI
177
mkdir -p $T/hscan
178
URL="file://$TESTDATA_DIR/rapi"
179
hinfo -v -v -p --print-instances -m $URL >/dev/null 2>&1
180
hbal -v -v -p --print-instances -m $URL >/dev/null 2>&1
181
hscan -d $T/hscan/ -p -v -v $URL >/dev/null 2>&1
182
# check that we file parsing is correct, i.e. hscan saves correct text
183
# files, and is idempotent (rapi+text == rapi)
184
HS="$(ls $T/hscan/*.data|head -n1)"
185
hinfo -p --print-instances -m $URL > $T/hscan/direct.hinfo 2>&1
186
hinfo -p --print-instances -t $HS  > $T/hscan/fromtext.hinfo 2>&1
187
cmp -s $T/hscan/direct.hinfo $T/hscan/fromtext.hinfo
188
echo OK
189

  
176 190
echo All OK

Also available in: Unified diff