Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
diffoscope
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Reproducible Builds
diffoscope
Commits
f06c44f4
Commit
f06c44f4
authored
5 years ago
by
Chris Lamb
Browse files
Options
Downloads
Patches
Plain Diff
debian/tests/basic-command-line: Move from deprecated ADTTMP to AUTOPKGTEST_TMP.
parent
98da3add
No related branches found
No related tags found
No related merge requests found
Pipeline
#82227
passed
5 years ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
debian/tests/basic-command-line
+9
-9
9 additions, 9 deletions
debian/tests/basic-command-line
with
9 additions
and
9 deletions
debian/tests/basic-command-line
+
9
−
9
View file @
f06c44f4
...
@@ -5,31 +5,31 @@
...
@@ -5,31 +5,31 @@
# to have diffoscope able to output stuff in utf-8
# to have diffoscope able to output stuff in utf-8
export
LC_ALL
=
C.UTF-8
export
LC_ALL
=
C.UTF-8
if
!
[
-d
"
$A
DT
TMP
"
]
;
then
if
!
[
-d
"
$A
UTOPKGTEST_
TMP
"
]
;
then
A
DT
TMP
=
`
mktemp
-d
`
A
UTOPKGTEST_
TMP
=
`
mktemp
-d
`
TEMP
=
true
TEMP
=
true
fi
fi
echo
"a"
>
$A
DT
TMP
/a
echo
"a"
>
$A
UTOPKGTEST_
TMP
/a
echo
"a"
>
$A
DT
TMP
/a_
echo
"a"
>
$A
UTOPKGTEST_
TMP
/a_
echo
"b"
>
$A
DT
TMP
/b
echo
"b"
>
$A
UTOPKGTEST_
TMP
/b
echo
"Testing identical files..."
echo
"Testing identical files..."
diffoscope
$A
DTTMP
/a
$ADT
TMP
/a_
diffoscope
$A
UTOPKGTEST_TMP
/a
$AUTOPKGTEST_
TMP
/a_
if
[
$?
-ne
0
]
;
then
if
[
$?
-ne
0
]
;
then
echo
"Exit code was different from 0 when comparing files with identical content."
>
&2
echo
"Exit code was different from 0 when comparing files with identical content."
>
&2
exit
1
exit
1
fi
fi
echo
"Testing different files..."
echo
"Testing different files..."
diffoscope
$A
DTTMP
/a
$ADT
TMP
/b
diffoscope
$A
UTOPKGTEST_TMP
/a
$AUTOPKGTEST_
TMP
/b
if
[
$?
-ne
1
]
;
then
if
[
$?
-ne
1
]
;
then
echo
"Exit code was different from 1 when comparing files with different content."
>
&2
echo
"Exit code was different from 1 when comparing files with different content."
>
&2
exit
1
exit
1
fi
fi
echo
"Testing LC_ALL=C works..."
echo
"Testing LC_ALL=C works..."
LC_ALL
=
C diffoscope
--debug
$A
DTTMP
/a
$ADT
TMP
/a_ 2>/dev/null
LC_ALL
=
C diffoscope
--debug
$A
UTOPKGTEST_TMP
/a
$AUTOPKGTEST_
TMP
/a_ 2>/dev/null
if
[
$?
-ne
0
]
;
then
if
[
$?
-ne
0
]
;
then
echo
"diffoscope could not handle LC_ALL=C; make sure you're not unconditionally outputting non-ascii chars anywhere."
>
&2
echo
"diffoscope could not handle LC_ALL=C; make sure you're not unconditionally outputting non-ascii chars anywhere."
>
&2
exit
1
exit
1
...
@@ -50,7 +50,7 @@ if [ $? -ne 2 ]; then
...
@@ -50,7 +50,7 @@ if [ $? -ne 2 ]; then
fi
fi
if
[
-n
"
${
TEMP
:-}
"
]
;
then
if
[
-n
"
${
TEMP
:-}
"
]
;
then
rm
-rf
"
$A
DT
TMP
"
rm
-rf
"
$A
UTOPKGTEST_
TMP
"
fi
fi
echo
"All good!"
echo
"All good!"
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment