Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Tor
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Container Registry
Model registry
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
The Tor Project
Core
Tor
Commits
8e3d929d
Commit
8e3d929d
authored
8 years ago
by
Nick Mathewson
Browse files
Options
Downloads
Plain Diff
Merge branch 'maint-0.3.0'
parents
1cd7a697
a3bec9aa
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Makefile.am
+0
-3
0 additions, 3 deletions
Makefile.am
changes/bug21581
+5
-0
5 additions, 0 deletions
changes/bug21581
src/test/test-network.sh
+16
-3
16 additions, 3 deletions
src/test/test-network.sh
with
21 additions
and
6 deletions
Makefile.am
+
0
−
3
View file @
8e3d929d
...
...
@@ -137,9 +137,6 @@ test-network-all: need-chutney-path test-driver $(TESTING_TOR_BINARY) src/tools/
for
f
in
$$
flavors
;
do
\
$(
SHELL
)
$(
top_srcdir
)
/test-driver
--test-name
$$
f
--log-file
$(
TEST_NETWORK_ALL_LOG_DIR
)
/
$$
f.log
--trs-file
$(
TEST_NETWORK_ALL_LOG_DIR
)
/
$$
f.trs
$(
TEST_NETWORK_ALL_DRIVER_FLAGS
)
$(
top_srcdir
)
/src/test/test-network.sh
--flavor
$$
f
$(
TEST_NETWORK_FLAGS
);
\
$(
top_srcdir
)
/src/test/test-network.sh
$(
TEST_NETWORK_WARNING_FLAGS
);
\
if
test
$$
?
-eq
2
;
then
\
echo
"Please update your chutney using 'git pull' to see tor warnings here."
;
\
fi
;
\
done
;
\
echo
"Log and result files are available in
$(
TEST_NETWORK_ALL_LOG_DIR
)
."
;
\
!
grep
-q
FAIL test_network_log/
*
.trs
...
...
This diff is collapsed.
Click to expand it.
changes/bug21581
0 → 100644
+
5
−
0
View file @
8e3d929d
o Minor bugfixes (testing):
- Restore support for test-network.sh on BSD and other systems without
bash. (But use bash if it's available.) This is a workaround until we
remove bash-specific code in 19699.
Fixes bug 21581; bugfix on 21562, not in any released version of tor.
This diff is collapsed.
Click to expand it.
src/test/test-network.sh
+
16
−
3
View file @
8e3d929d
#! /bin/bash
#! /bin/sh
# use bash if it is available, as this script doesn't work well in non-bash sh
# this will be fixed in #19699
# there is no simple, portable way of checking the name of the shell, so we
# exec bash even when sh is bash
if
[
-x
/bin/bash
-a
"
$USING_BASH
"
!=
true
]
;
then
# only do this once
export
USING_BASH
=
true
exec
/bin/bash
"
$0
"
"
$@
"
fi
# Please do not modify this script, it has been moved to chutney/tools
export
ECHO
=
${
ECHO
:-
"
echo
"
}
export
ECHO_N
=
${
ECHO_N
:-
"
/bin/echo -n
"
}
export
ECHO
=
"
${
ECHO
:-
echo
}
"
export
ECHO_N
=
"
${
ECHO_N
:-
/bin/echo -n
}
"
# Output is prefixed with the name of the script
myname
=
$(
basename
$0
)
...
...
@@ -21,6 +31,8 @@ if [ "$TEST_NETWORK_RECURSING" != true ]; then
# can be removed, because this script will find chutney, then pass all
# arguments to chutney's test-network.sh
export
TEST_NETWORK_RECURSING
=
true
# passing arguments to a sourced script only works in bash
# this will be fixed in #19699
.
"
$0
"
--dry-run
"
$@
"
# Call the chutney version of this script, if it exists, and we can find it
...
...
@@ -179,6 +191,7 @@ export CHUTNEY_NETWORK=networks/$NETWORK_FLAVOUR
if
[
"
$NETWORK_DRY_RUN
"
=
true
]
;
then
# we can't exit here, it breaks argument processing
# this only works in bash: return semantics are shell-specific
# this will be fixed in #19699
return
2>/dev/null
||
exit
fi
...
...
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