File: 056_all_removed

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 (35 lines) | stat: -rwxr-xr-x 600 bytes parent folder | download | duplicates (4)
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
#!/bin/bash

set -e 
$PREPARE_CLEAN > /dev/null
$INCLUDE_FUNCS
cd $WC

logfile=$LOGDIR/056.all_removed

# Testing the all_removed option.
mkdir -p 1/2/3/4/5/6/7
$BINq ci -m1
rm -r 1/2

for FSVS_DIR_SORT in yes no
do
	$INFO "testing all_removed for dir_sort=$FSVS_DIR_SORT."

	$BINdflt st -o all_removed=yes > $logfile
	if [[ `wc -l < $logfile` != 7 ]]
	then
		cat $logfile
		$ERROR "all_removed=yes doesn't work."
	fi

	$BINdflt st -o all_removed=no > $logfile
	if [[ `wc -l < $logfile` != 2 ]]
	then
		cat $logfile
		$ERROR "all_removed=no doesn't work."
	fi
done

$SUCCESS "all_removed seems ok."