summaryrefslogtreecommitdiffstats
path: root/llvm/utils/release/test-release.sh
Commit message (Collapse)AuthorAgeFilesLines
* test-release.sh: Add MLIR to the projects listHans Wennborg2020-01-301-0/+8
| | | | (cherry picked from commit ef465d0ad2b98cae6fd6f6c450649f40e67fa24b)
* test-release.sh: Update to fetch source from GitHubTom Stellard2019-11-191-60/+52
| | | | | | | | | | | | | | | | Summary: This also changes the test-release.sh script to build using the monorepo layout instead of copying sub-projects into llvm/tools or llvm/projects. Reviewers: jdoerfert, hans Reviewed By: hans Subscribers: hans, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D70353
* test-release.sh: Don't use chrpath on SolarisRainer Orth2019-09-121-2/+5
| | | | | | | | | | | | When trying to run test-release.sh on Solaris 11.4 for 9.0.0 rc4, I failed initially because Solaris lacks chrpath. This patch accounts for that and allowed the run to continue. Tested on amd64-pc-solaris2.11 and sparcv9-sun-solaris2.11. Differential Revision: https://reviews.llvm.org/D67484 llvm-svn: 371741
* test-release.sh: Reorder sed commands for the binary comparisonHans Wennborg2019-08-061-2/+2
| | | | llvm-svn: 368004
* test-release.sh: Perform the sed substitution on both files (PR42739)Hans Wennborg2019-08-051-3/+4
| | | | | | | | | | | The comparison would otherwise fail if Phase2 occurrs naturally in the object file. It would get replaced with Phase3 in the one .o, but not in the other. We were already running both files through sed to have them processed in this same way; this is a logical extension of that. llvm-svn: 367847
* test-release.sh: Add option to use ninjaDiana Picus2019-02-111-9/+29
| | | | | | | | | | | | | | | | | | | | Allow the use of ninja instead of make. This is useful on some platforms where we'd like to be able to limit the number of link jobs without slowing down the other steps of the release. This patch adds a -use-ninja command line option, which sets the generator to Ninja both for LLVM and the test-suite. It also deals with some differences between make and ninja: * DESTDIR handling - ninja doesn't like this to be listed after the target, but both make and ninja can handle it before the command * Verbose mode - ninja uses -v, make uses VERBOSE=1 * Keep going mode - make has a -k mode, which builds as much as possible even when failures are encountered; for ninja we need to set a hard limit (we use 100 since most people won't look at 100 failures anyway) I haven't tested with gmake. llvm-svn: 353685
* Update the file headers across all of the LLVM projects in the monorepoChandler Carruth2019-01-191-4/+3
| | | | | | | | | | | | | | | | | to reflect the new license. We understand that people may be surprised that we're moving the header entirely to discuss the new license. We checked this carefully with the Foundation's lawyer and we believe this is the correct approach. Essentially, all code in the project is now made available by the LLVM project under our new license, so you will see that the license headers include that license only. Some of our contributors have contributed code under our old license, and accordingly, we have retained a copy of our old license notice in the top-level files in each project and repository. llvm-svn: 351636
* Follow-up to rL322875 by initializing the do_libcxxabi variable properly.Dimitry Andric2018-01-181-0/+1
| | | | llvm-svn: 322879
* Add a -no-libcxxabi option to the test-release.sh script.Dimitry Andric2018-01-181-1/+8
| | | | | | | | | | | On FreeBSD, it is currently not possible to build libcxxabi and link against it, so we have been building releases with -no-libs for quite some time. However, libcxx and libunwind should build without problems, so provide an option to skip just libcxxabi. llvm-svn: 322875
* test-release.sh: Move test-suite setup to beginning of the scriptTom Stellard2017-08-151-8/+13
| | | | | | | | | | | | | | | | | | | Summary: We want to catch failures early before do the full 3 stage build. The goal here is to avoid running through the whole build process and have it fail at the end (and not create the binary packages), just because some prerequisites failed to install. Reviewers: rovka, hans Reviewed By: hans Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D36422 llvm-svn: 310939
* test-release.sh: Fix phase2 and phase3 binary comparisionTom Stellard2017-07-241-1/+1
| | | | | | | | | | | | | | | | | Summary: scudo_utils.cpp.o from compiler-rt has one of the host compiler's builtin include paths stored in the .debug_line section. So we need to do sed 's,Phase1,Phase2,g` on the Phase2 object file so it matches Phase3. Reviewers: hans Reviewed By: hans Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D34989 llvm-svn: 308912
* [test-release.sh] Enable Polly by defaultPengxuan Zheng2017-06-201-6/+2
| | | | | | | | | | | | Reviewers: grosser, hans, zinob, bollu Reviewed By: grosser, hans Subscribers: tstellar, llvm-commits Differential Revision: https://reviews.llvm.org/D34306 llvm-svn: 305763
* test-release.sh: Run the test-suite using phase3 clangTom Stellard2017-06-151-1/+4
| | | | | | | | | | | | Summary: We were using the system compiler to run the test suite. Reviewers: hansw Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D34246 llvm-svn: 305525
* test-release.sh: Remove workaround for test-suite buildTom Stellard2017-06-081-12/+17
| | | | | | | | | | | | | | Summary: We aren't actually building the test suite, so this isn't needed. Reviewers: rengolin, hansw Reviewed By: rengolin Subscribers: rengolin, llvm-commits Differential Revision: https://reviews.llvm.org/D29840 llvm-svn: 305017
* [test-release] Status update *before* long gzipRenato Golin2017-05-041-5/+5
| | | | llvm-svn: 302165
* Add lld to the test-release.sh scriptDimitry Andric2017-02-041-1/+9
| | | | | | | | | | | | | | | Building lld is enabled by default, but it can be disabled using the -no-lld option. Reviewers: tstellarAMD, rengolin, hans Reviewed By: hans Subscribers: grosser, wdng, emaste, llvm-commits Differential Revision: https://reviews.llvm.org/D29539 llvm-svn: 294102
* [test-release.sh] Add Polly to the list of projectsPengxuan Zheng2017-01-181-1/+13
| | | | | | | | | | | | Reviewers: zinob, hans, grosser Reviewed By: hans, grosser Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D28712 llvm-svn: 292323
* Remove LLVM_CONFIGTIME, left-overs from when reproducable builds whereJoerg Sonnenberger2016-09-291-2/+0
| | | | | | not the default. llvm-svn: 282765
* test-release.sh: Drop autoconf supportHans Wennborg2016-08-091-46/+17
| | | | | | The autoconf build was deleted some time ago. llvm-svn: 278133
* Remove LLVM_ENABLE_TIMESTAMPSChris Bieneman2016-05-051-2/+2
| | | | | | | | | | | | | | | | | | | Summary: As per the discussion on LLVM-dev this patch proposes removing LLVM_ENABLE_TIMESTAMPS. The only complicated bit of this patch is the Windows support. On windows we used to log an error if /INCREMENTAL was passed to the linker when timestamps were disabled. With this change since timestamps in code are always disabled we will always compile on windows with /Brepro unless /INCREMENTAL is specified, and we will log a warning when /INCREMENTAL is specified to notify the user that the build will be non-deterministic. See: http://lists.llvm.org/pipermail/llvm-dev/2016-May/098990.html Reviewers: bogner, silvas, rnk Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D19892 llvm-svn: 268670
* [test-release.sh] Add lldb to list of projects (disabled by default)Daniel Sanders2016-02-291-0/+15
| | | | | | | | | | Reviewers: hans Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D17070 llvm-svn: 262211
* Bring back the test-suite export in test-release without bringing back the ↵Daniel Sanders2016-01-281-7/+19
| | | | | | | | | | | | | | | | | build failures. Summary: r257791 disabled the test-suite export since the addition of CMakeLists.txt was causing build failures. This patch exports the test-suite again but does so outside the source tree so that it isn't included in the Phase[123] builds. Reviewers: hans Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D16679 llvm-svn: 259094
* test-release.sh: Ignore LC_CTYPE in sed invocation on DarwinHans Wennborg2016-01-271-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Here, sed is used to prepare object files for comparison via cmp. On my Darwin 15.4.0 machine, LC_CTYPE is set to UTF-8 (by default, I believe). Under these circumstances, anything sed is made to read will be treated as UTF-8, prompting it to signal an error if it is not, like so: % sed s/a/b/ <(head -n1 /dev/random) >/dev/null; echo $? sed: RE error: illegal byte sequence 1 % To make sed work as expected, I need to set LC_CTYPE to C: % env LC_CTYPE=C sed s/a/b/ <(head -n1 /dev/random) >/dev/null; echo $? 0 % Without this change, sed will exit with an error for every single file that it compares between phase 2 and phase 3, thereby making it look as if the differences were far larger than they are. Patch by Elias Pipping! Differential Revision: http://reviews.llvm.org/D16548 llvm-svn: 258891
* In test-release.sh, only run `uname -s` once. NFC.Dimitry Andric2016-01-211-3/+4
| | | | llvm-svn: 258439
* Let test-release.sh checkout subprojects directly into the target tree,Dimitry Andric2016-01-211-43/+23
| | | | | | | | | | | | | | | | | | | | | instead of using symlinks Summary: In the past I have run into several problems with the way `test-release.sh` creates all the subproject directories as siblings, and then uses symlinks to stitch them all together. In some scenarios this leads to clang not being able to find header files, etc. This patch changes the script so it directly exports into the correct target locations for each subproject. Reviewers: hans Subscribers: emaste, llvm-commits Differential Revision: http://reviews.llvm.org/D16420 llvm-svn: 258436
* test-release.sh: Use CMake also for DarwinHans Wennborg2016-01-191-5/+0
| | | | | | This didn't work for 3.7, but hopefully it should work now. llvm-svn: 258168
* test-release.sh: Fix clang-tools-extra symlink for CMake buildHans Wennborg2016-01-151-3/+13
| | | | | | The CMake and Autoconf builds want the symlink set up differently. llvm-svn: 257905
* Exclude test-suite from CMake builds in test-release.shHans Wennborg2016-01-141-0/+6
| | | | | | | It's broken. In 3.7 there wasn't a CMake build for test-suite at all, so we're not losing something we had before. llvm-svn: 257791
* [OPENMP] Make -fopenmp to turn on OpenMP support by default.Alexey Bataev2015-12-101-48/+7
| | | | | | | Patch turns on OpenMP support in clang by default after fixing OpenMP buildbots. Differential Revision: http://reviews.llvm.org/D13802 llvm-svn: 255222
* Revert r245355 "Release script: correctly symlink clang-tools-extra into the ↵Hans Wennborg2015-08-241-2/+2
| | | | | | | | build (PR22765)" This worked with the CMake build but broke the Autoconf one. llvm-svn: 245902
* Release script: correctly symlink clang-tools-extra into the build (PR22765)Hans Wennborg2015-08-181-2/+2
| | | | llvm-svn: 245355
* test-release.sh: Fix naming of OpenMP runtime tarballHans Wennborg2015-08-051-1/+6
| | | | llvm-svn: 244058
* [Release Script] Check for correct symlink nameRenato Golin2015-08-031-1/+1
| | | | | | | | | While checking for the existence of the clang-tools-extra directory, the script was not checking for its destination name, "extra", and the script was failing when re-running without checking out new sources. llvm-svn: 243898
* [test-release.sh] Add -no-libunwind to disable it on targets that don't ↵Daniel Sanders2015-07-301-1/+9
| | | | | | | | | | | | | | | | support it. Summary: Mips doesn't implement unw_getcontext() or libunwind::Registers_*::jumpto() yet so we must disable libunwind for this release. Reviewers: hans Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D11563 llvm-svn: 243633
* test-release.sh: Add option for building the OpenMP run-timeHans Wennborg2015-07-291-1/+48
| | | | | | | | | | This isn't part of the official release process, but provides a convenient way to build binaries for those who want to experiment with it. Hopefully the run- time can be part of the regular build and release process for 3.8. Differential Revision: http://reviews.llvm.org/D11494 llvm-svn: 243531
* test-release.sh: Defer test errors until the endHans Wennborg2015-07-241-4/+27
| | | | | | | | | | | | | This makes the script run to the end and produce tarballs even on test failures, and then highlights any errors afterwards. (I first tried just storing the errors in a global variable, but that didn't work as the "test_llvmCore" function invocation is actually running as a sub-shell.) Differential Revision: http://reviews.llvm.org/D11478 llvm-svn: 243116
* [Release] Allow release testers to disable certain componentsRenato Golin2015-07-221-7/+36
| | | | | | | | | | | Not all components build correctly on all targets and the release script had no way to disable them other than editing the script locally. This change provides a way to disable the test-suite, compiler-rt and the libraries, as well as allowing you to re-run on the same directory without checking out all sources again. llvm-svn: 242919
* Avoid early pipefail exits due to grep failures in stage comparisons.Dimitry Andric2015-07-201-4/+6
| | | | | | | | If objects or executables did not contain any RPATH, grep would return nonzero, and the whole stage comparison loop would unexpectedly exit. Fix this by checking the grep result explicitly. llvm-svn: 242722
* Since BSD cmp(1) does not support the --ignore-initial option, use theDimitry Andric2015-07-201-2/+2
| | | | | | | more portable 3rd and 4th arguments to skip the first 16 bytes during the comparison of Phase2 and Phase3 objects. llvm-svn: 242721
* test-release.sh: don't include /usr/local prefix in the tarballHans Wennborg2015-07-201-2/+2
| | | | llvm-svn: 242706
* Add libunwind to the release scriptsHans Wennborg2015-07-171-1/+5
| | | | llvm-svn: 242543
* test-release.sh: Add ability to do a test build using the trunk or branches.Daniel Sanders2015-07-171-3/+19
| | | | | | | | | | | | | | | | | | | | | Summary: Adds '--svn-path BRANCH' that causes the script to export the specified path from each project. Otherwise the tag specified by -release, -rc, etc. will be used. The version portion of the package name will be 'test-$path' (any forward slashes in the branch name are replaced with underscores), for example: -svn-path trunk => clang+llvm-test-trunk-mips-linux-gnu.tar.xz -svn-path branches/release_35 => clang+llvm-test-branches_release_35-mips-linux-gnu.tar.xz This is primarily useful for bringing new release packages up to standard without needing to create and maintain a tag for the purpose. Reviewers: tstellarAMD, hans Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D6563 llvm-svn: 242518
* test-release.sh: Run both .o files through sed before comparing themHans Wennborg2015-07-151-3/+4
| | | | | | | | | | On some systems (e.g. Mac OS X), sed will add a newline to the end of the output if there wasn't one already. This would cause false cmp errors since the .o file from Phase 2 was passed through sed and the one from Phase 3 wasn't. Work around this by passing both through sed. llvm-svn: 242341
* Switch the release script to build with CMake by default (PR21561)Hans Wennborg2015-07-151-48/+66
| | | | | | | | | | | | | | | | | | | | It retains the possibility to use the autoconf build with a command-line option ('-use-autoconf'), and uses that by default on Darwin since compiler-rt requires it on that platform. This commit also removes the "Release-64" flavour and related logic. The script would previously do two builds unless the '-no-64bit' flag was passed, but on my machine and from those I asked this always ended up producing two 64-bit builds, causing much confusion. It also removes the -build-triple option, which caused the --build= flag to get passed to ./configure. This was presumably intended for cross-compiling, but none of the release testers use it. If someone does want to pass it, they can use '-configure-flags --build=foo' instead. Differential Revision: http://reviews.llvm.org/D10715 llvm-svn: 242331
* test-release.sh: Remove the InstallDir parameter from configure_llvmCoreHans Wennborg2015-07-141-16/+5
| | | | | | After r242187, it's never set. llvm-svn: 242194
* Fix several issues with the test-release.sh scriptDan Liew2015-07-141-68/+63
| | | | | | | | | | | | | | | | | | | * Use the default install prefix (/usr/local) and use DESTDIR instead to set a temporary install location for tarballing. This is the correct way to package binary releases (otherwise the temporary install path ends up in files in the binary release). * Remove ``-disable-clang`` option. It did not work correctly (tarballing assumed phase 3 was run) and when doing a release we should always be doing a three-phased build and test. Note: Technically we should only be using DESTDIR for the third phase and use --prefix for the first and second phase because we run the built clang from phase 1 and 2 (and in general an application's behaviour may depend on the install prefix). However in the case of clang it seems to not care what the install prefix was so to simplify the script we use DESTDIR for all three stages. llvm-svn: 242187
* Fix bug in test-release.sh where the script would not exit if anyDan Liew2015-07-071-1/+5
| | | | | | | | | | | | | | of the build stages that are sent through a pipe (e.g. tee) failed. This potentially allowed builds and/or tests to fail without anyone noticing. It appears that for the LLVM 3.6.[01] releases this actually happened for the Ubuntu 14.04LTS binary releases. The essence of the issue is that without ``set -o pipefail`` the following command in bash has a zero exit code. false | tee /dev/null ; exit $? llvm-svn: 241599
* test-release.sh: Minor fixes.Hans Wennborg2015-06-221-6/+3
| | | | llvm-svn: 240334
* Drop remaining Dragonegg support in release scriptsHans Wennborg2015-06-011-12/+0
| | | | | | | | | | r236077 and r236081 dropped Dragonegg support from the release scripts but left some pieces. The most notable change is that Dragonegg won't be tagged any more. Patch by David Wiberg <dwiberg@gmail.com>. llvm-svn: 238753
* Drop Dragonegg support from the release scriptHans Wennborg2015-04-291-113/+2
| | | | | | | | | It doesn't have a maintainer and none of the release testers test it, so I don't think it should be part of the release. http://reviews.llvm.org/D9331 llvm-svn: 236077
OpenPOWER on IntegriCloud