File: testdir

package info (click to toggle)
taskjuggler 2.3.0-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 8,764 kB
  • ctags: 3,700
  • sloc: cpp: 36,852; sh: 12,761; xml: 5,541; perl: 5,207; makefile: 269; python: 258; lisp: 67
file content (24 lines) | stat: -rwxr-xr-x 614 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# The csv reports include localized strings, so we must ensure that
# we use the same LOCALE as the reference files have used.
export LANG=en_US
export LC_ALL=en_US
export LC_COLLATE=POSIX 

errors=0

for f in *.tjp ; do
  referenceFile=`echo $f | sed s/\\\\\(.*\\\\\).tjp/\\\1-Reference.csv/g`
  csvFile=`echo $f | sed s/\\\\\(.*\\\\\).tjp/\\\1-Export.csv/g`
  ../../taskjuggler/taskjuggler $f | \
  fgrep -v TaskJuggler > $csvFile
  cmp $csvFile $referenceFile
  if test $? -ne 0 ; then
    diff -u $csvFile $referenceFile | head -n 10
    errors=$(($errors + 1))
  else
    rm $csvFile
  fi
done

exit $errors