File: 012_export

package info (click to toggle)
fsvs 1.2.12-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,452 kB
  • sloc: ansic: 16,683; sh: 5,914; perl: 757; makefile: 320; python: 90
file content (42 lines) | stat: -rwxr-xr-x 504 bytes parent folder | download | duplicates (7)
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
#!/bin/bash

set -e 
$PREPARE_DEFAULT > /dev/null
$INCLUDE_FUNCS


# export to new directory
EXPDIR=$TESTBASE/export
if [[ -e $EXPDIR ]]
then
  rm -r $EXPDIR
fi

dir_path=`$PATH2SPOOL $EXPDIR dir`
if [[ -f $dir_path ]]
then
  rm $dir_path
fi

mkdir $EXPDIR
cd $EXPDIR
$BINq export $REPURL

if [[ -f $dir_path ]]
then
  $ERROR "$dir_path was made"
fi

$COMPAREWITH $WC

cd ..
rm -rf $EXPDIR

mkdir $EXPDIR
cd $EXPDIR
$BINq export -r 3 $REPURL
$BINq up -r 3 $WC

$COMPAREWITH $WC

$SUCCESS "export works."