Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(462)

Side by Side Diff: tests/test_files.sh

Issue 7109015: Update XZ Utils to 5.0.3 (in deps) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/third_party/xz/
Patch Set: Created 9 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « tests/test_compress.sh ('k') | version.sh » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #/bin/sh 1 #!/bin/sh
2 2
3 ############################################################################### 3 ###############################################################################
4 # 4 #
5 # Author: Lasse Collin 5 # Author: Lasse Collin
6 # 6 #
7 # This file has been put into the public domain. 7 # This file has been put into the public domain.
8 # You can do whatever you want with this file. 8 # You can do whatever you want with this file.
9 # 9 #
10 ############################################################################### 10 ###############################################################################
11 11
12 # If both xz and xzdec were not build, skip this test.
13 XZ=../src/xz/xz
14 XZDEC=../src/xzdec/xzdec
15 test -x "$XZ" || XZ=
16 test -x "$XZDEC" || XZDEC=
17 if test -z "$XZ$XZDEC"; then
18 (exit 77)
19 exit 77
20 fi
21
12 for I in "$srcdir"/files/good-*.xz 22 for I in "$srcdir"/files/good-*.xz
13 do 23 do
14 » if ../src/xzdec/xzdec "$I" > /dev/null 2> /dev/null ; then 24 » if test -z "$XZ" || "$XZ" -dc "$I" > /dev/null 2>&1; then
25 » » :
26 » else
27 » » echo "Good file failed: $I"
28 » » (exit 1)
29 » » exit 1
30 » fi
31
32 » if test -z "$XZDEC" || "$XZDEC" "$I" > /dev/null 2>&1; then
15 : 33 :
16 else 34 else
17 echo "Good file failed: $I" 35 echo "Good file failed: $I"
18 (exit 1) 36 (exit 1)
19 exit 1 37 exit 1
20 fi 38 fi
21 done 39 done
22 40
23 for I in "$srcdir"/files/bad-*.xz 41 for I in "$srcdir"/files/bad-*.xz
24 do 42 do
25 » if ../src/xzdec/xzdec "$I" > /dev/null 2> /dev/null ; then 43 » if test -n "$XZ" && "$XZ" -dc "$I" > /dev/null 2>&1; then
44 » » echo "Bad file succeeded: $I"
45 » » (exit 1)
46 » » exit 1
47 » fi
48
49 » if test -n "$XZDEC" && "$XZDEC" "$I" > /dev/null 2>&1; then
26 echo "Bad file succeeded: $I" 50 echo "Bad file succeeded: $I"
27 (exit 1) 51 (exit 1)
28 exit 1 52 exit 1
29 fi 53 fi
30 done 54 done
31 55
32 (exit 0) 56 (exit 0)
33 exit 0 57 exit 0
OLDNEW
« no previous file with comments | « tests/test_compress.sh ('k') | version.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698