In #18240 (moved), cypherpunks pointed out that we should use the same $(EXEEXT) syntax for finding the appropriate tor-gencert and tor-cov-gencert in the test-network target.
There's a couple other problems with that target:
NETWORK_FLAVOUR=${NETWORK_FLAVOUR:-"bridges+hs"}: the "bridges+hs" network template doesn't exist anymore.
If $use_coverage_binary is set when src/test/test-network.sh is called, then chutney will still try to use tor-gencert instead of tor-cov-gencert. (Also the filename extension problem mentioned above applies here also.
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Child items 0
Show closed items
No child items are currently assigned. Use child items to break down this issue into smaller parts.
Linked items 0
Link issues together to show that they're related.
Learn more.
In #18240 (moved), cypherpunks pointed out that we should use the same $(EXEEXT) syntax for finding the appropriate tor-gencert and tor-cov-gencert in the test-network target.
There's a couple other problems with that target:
NETWORK_FLAVOUR=${NETWORK_FLAVOUR:-"bridges+hs"}: the "bridges+hs" network template doesn't exist anymore.
In #18240 (moved), cypherpunks pointed out that we should use the same $(EXEEXT) syntax for finding the appropriate tor-gencert and tor-cov-gencert in the test-network target.
There's a couple other problems with that target:
NETWORK_FLAVOUR=${NETWORK_FLAVOUR:-"bridges+hs"}: the "bridges+hs" network template doesn't exist anymore.
The second problem is addressed in #18737 (moved) but is waiting for #18240 (moved) to be merged. Depending on whether coverage is enabled, the *-cov binaries may or may not be available. After the merge of #18240 (moved) i plan on adding a fixup patch that adds a variable for tor-gencert (like TESTING_TOR_BINARY) so the dependencies of the test-network target are dynamic. I'm waiting for the merge because the changes are overlapping and would lead to merge conflicts.
The second problem is addressed in #18737 (moved) but is waiting for #18240 (moved) to be merged. Depending on whether coverage is enabled, the *-cov binaries may or may not be available. After the merge of #18240 (moved) i plan on adding a fixup patch that adds a variable for tor-gencert (like TESTING_TOR_BINARY) so the dependencies of the test-network target are dynamic. I'm waiting for the merge because the changes are overlapping and would lead to merge conflicts.
Great! That fixes all of it except for the $(EXEEXT) problem for the tor-[cov-]gencert binary.
Please see my bug18933branch (which is based on nickm's bug18240 branch).
The second problem is addressed in #18737 (moved) but is waiting for #18240 (moved) to be merged. Depending on whether coverage is enabled, the *-cov binaries may or may not be available. After the merge of #18240 (moved) i plan on adding a fixup patch that adds a variable for tor-gencert (like TESTING_TOR_BINARY) so the dependencies of the test-network target are dynamic. I'm waiting for the merge because the changes are overlapping and would lead to merge conflicts.
Great! That fixes all of it except for the $(EXEEXT) problem for the tor-[cov-]gencert binary.
I can think of only one clean way to communicate the $(EXEEXT) to the script and that is with parameters (similar to Stem's run-tests.py (see test-stem target)). The added benefit would be that it simplifies test-network.sh because it would just use the binaries as is which obsoletes the tor-path and coverage options.
The test-network target also has the problem of not finding the path to Chutney when Tor is built out-of-tree. The need-chutney-path target can find it but that's only because it knows the source directory. Using the --tor-path option for specifying the source directory should make test-network.sh able to correctly detect Chutney. I'll make a patch for this.
Comparing the checks in test-network.sh and need-chutney-path shows lots of duplication so I'm thinking about removing the need-chutney-path target altogether. Unless there is a specific use-case for it that i am unaware of.
This looks okay to me. I'd like the absolute-path stuff to become a function someday, but that doesn't seem too urgent.
(Hoping you don't mind me stealing the review from you, teor.)
Calling this merge-ready, but not merging right now, since the patches don't seem to apply cleanly to master; we'll have to clean it up a little as we go.
Trac: Reviewer: teor to nickm Status: needs_review to merge_ready
Actually, it seems I probably messed something up. With these patches, 'make test-network-all' no longer passes for me. So, not merging.
I've stuck them in a branch ticket18933 instead in case anybody wants to have a look to see what's up.
It seems you forgot to apply the patches on top of isis's branch in comment:4 as was stated in comment:11. Their branch defines the TESTING_TOR_GENCERT_BINARY variable which is used in the submitted patches.
make test-network-all does not work on master either.
This was caused by building out-of-tree which the target does not handle properly. I've opened #19421 (moved) for this preexisting problem.
I'd like to merge some of these fixes, but there have been significant changes to the test-network.sh script in both tor and chutney since they were written.
It's unclear how many of these issues still exist in the latest tor and chutney master branches.
I am also concerned that some of these patches will break make test-network-all for users already using environmental variables to set their tor and chutney paths.
Please open other tickets in either the tor or chutney components for the bugs that still exist.
Trac: Resolution: N/Ato fixed Status: needs_information to closed