File: 025_commit_msg

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 (41 lines) | stat: -rwxr-xr-x 539 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
#!/bin/bash

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

cd $WC1

logfile=$LOGDIR/025.commit_msg

mkdir abc
touch 123

$BINq	ci -m1


cd abc
date > uzt
if $BINq ci -F uzt
then
	$SUCCESS "Messagefile found."
else
	$ERROR "Messagefile in non-WC-base directory not taken."
fi


cd $WC1
touch jj
if $BINq ci -F jj -o empty_message=no
then
	$ERROR "empty message taken"
else
	$SUCCESS "empty message not taken"
fi

if $BINq ci -F jj -o empty_message=yes
then
	$SUCCESS "empty message allowed"
else
	$ERROR "empty message not allowed"
fi