about summary refs log tree commit diff
path: root/pkgs/test/make-binary-wrapper
AgeCommit message (Collapse)AuthorFilesLines
2023-09-18makeBinaryWrapper: protect wildcards in flagsRyan Hendrickson3-6/+11
2023-09-15tests.makeBinaryWrapper: fix cross test on aarch64-linuxArtturin1-1/+6
2023-04-19tests.makeBinaryWrapper: avoid same-triple crossAlyssa Ross1-1/+1
We shouldn't try compiling to aarch64-unknown-linux-gnu from aarch64-unknown-linux-gnu, because that tends to confuse things and is not representative of actual cross compilation usage.
2022-06-12Merge pull request #172769 from ncfavier/wrappers-append-argsThiago Kenji Okada4-4/+9
makeWrapper,makeBinaryWrapper: implement `--append-flags`
2022-05-31makeBinaryWrapper: fix cross-compilation and add testNaïm Favier2-26/+55
Fixes https://github.com/NixOS/nixpkgs/issues/175045
2022-05-30makeWrapper,makeBinaryWrapper: implement `--append-flags`Naïm Favier4-4/+9
2022-05-06makeBinaryWrapper: add overlength-strings testNaïm Favier4-0/+30
2021-12-16makeBinaryWrapper: Fix issues on aarch64-darwin/macOS 12 (Monterey)Tobias Bergkvist1-1/+1
Sanitizers don't seem to be present on aarch64-darwin/macOS 12 (Monterey), so they are removed from the aarch64-darwin tests. Switching from nativeBuildInputs to buildInputs and adding cc to the deps list caused some strange error messages to go away.
2021-12-16makeBinaryWrapper: Fix chdir golden test for darwinTobias Bergkvist4-4/+4
On macOS, /tmp is a symlink to /private/tmp. When performing cd /tmp, and checking cwd - it won't match since it follows the symlink. This caused test breakage on macOS but not Linux. Instead, use a folder which is not a symlink, and consistent across Linux and macOS.
2021-12-09make-binary-wrapper: Add -Wall -Werror -WpedanticJacek Galowicz1-1/+1
2021-12-09make makeWrapper and makeBinaryWrapper drop-in-replaceableJacek Galowicz1-2/+2
2021-12-09Inject gcc path into makewrapper scriptJacek Galowicz1-2/+2
2021-12-09Add golden effects testJacek Galowicz32-172/+145
2021-12-02Add tests for `--inherit-argv0` and `--chdir DIR`Tobias Bergkvist3-4/+29
2021-12-01Replace concat3 with asprintf in set_env_prefix and set_env_suffix.Tobias Bergkvist3-59/+40
2021-12-01Switch from malloc to calloc in addFlagsTobias Bergkvist2-2/+2
2021-12-01Switch from exit(1) to abort() in assert_successTobias Bergkvist5-5/+5
2021-12-01Add assertValidEnvName and check that variable name is valid during code ↵Tobias Bergkvist6-8/+39
generation. Add assert_success, and assert that setenv/unsetenv succeeds to crash if they don't
2021-11-09Assert that malloc does not return a NULL pointer for better error messages ↵Tobias Bergkvist4-0/+9
+ to satisfy static analysis tools.
2021-10-19Switch from buildInputs to nativeBuildInpuits in makeGoldenTestTobias Bergkvist1-1/+1
2021-10-19Set strictDeps = true in makeGoldenTestTobias Bergkvist1-0/+1
Co-authored-by: Robert Hensing <roberth@users.noreply.github.com>
2021-10-04EditorConfig: Switch from tabs to spacesTobias Bergkvist1-17/+17
2021-10-04Add golden tests for make-binary-wrapper.Tobias Bergkvist9-0/+296
To run tests after cloning on linux, use the following: nix-build pkgs/top-level/release.nix -A tests.make-binary-wrapper.x86_64-linux