File: 012_export

package info (click to toggle)
fsvs 1.2.7-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid, stretch
  • size: 2,964 kB
  • ctags: 1,464
  • sloc: ansic: 16,650; sh: 5,885; perl: 783; makefile: 338; python: 90
file content (42 lines) | stat: -rwxr-xr-x 504 bytes parent folder | download | duplicates (3)
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."