File: 050_path_resolution

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 (48 lines) | stat: -rwxr-xr-x 661 bytes parent folder | download | duplicates (5)
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
43
44
45
46
47
48
#!/bin/bash

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

touch -dyesterday empty-file tree/b/2/file-x tree/a/new


if [[ `$BINdflt st | wc -l` -ne 4 ]]
then
	$BINdflt st
	$ERROR "Not ok for 1"
fi
if [[ `$BINdflt st . | wc -l` -ne 4 ]]
then
	$BINdflt st .
	$ERROR "Not ok for 2"
fi

cd tree

if [[ `$BINdflt st | wc -l` -ne 3 ]]
then
	$BINdflt st
	$ERROR "Not ok for 3"
fi
if [[ `$BINdflt st . | wc -l` -ne 3 ]]
then
	$BINdflt st .
	$ERROR "Not ok for 4"
fi


if [[ `$BINdflt st a | wc -l` -ne 2 ]]
then
	$BINdflt st a
	$ERROR "Not ok for 5"
fi
if [[ `$BINdflt st b | wc -l` -ne 1 ]]
then
	$BINdflt st b
	$ERROR "Not ok for 6"
fi


$SUCCESS "ok"