Naïm Favier
69c7dbb880
makeBinaryWrapper: add overlength-strings test
2 years ago
Tobias Bergkvist
ebf46e5764
makeBinaryWrapper: Fix issues on aarch64-darwin/macOS 12 (Monterey)
...
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.
3 years ago
Tobias Bergkvist
228d451e03
makeBinaryWrapper: Fix chdir golden test for darwin
...
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.
3 years ago
Jacek Galowicz
b7e00ed89e
make-binary-wrapper: Add -Wall -Werror -Wpedantic
3 years ago
Jacek Galowicz
177f0a6eed
make makeWrapper and makeBinaryWrapper drop-in-replaceable
3 years ago
Jacek Galowicz
e7c70ce5c8
Inject gcc path into makewrapper script
3 years ago
Jacek Galowicz
2bc7345064
Add golden effects test
3 years ago
Tobias Bergkvist
d8375fbccb
Add tests for `--inherit-argv0` and `--chdir DIR`
3 years ago
Tobias Bergkvist
a1e62262bc
Replace concat3 with asprintf in set_env_prefix and set_env_suffix.
3 years ago
Tobias Bergkvist
3997e9de67
Switch from malloc to calloc in addFlags
3 years ago
Tobias Bergkvist
97d62a90f5
Switch from exit(1) to abort() in assert_success
3 years ago
Tobias Bergkvist
4e55d34535
Add assertValidEnvName and check that variable name is valid during code generation. Add assert_success, and assert that setenv/unsetenv succeeds to crash if they don't
3 years ago
Tobias Bergkvist
3a014be2f2
Assert that malloc does not return a NULL pointer for better error messages + to satisfy static analysis tools.
3 years ago
Tobias Bergkvist
a95a7a22be
Switch from buildInputs to nativeBuildInpuits in makeGoldenTest
3 years ago
Tobias Bergkvist
7cca19a46a
Set strictDeps = true in makeGoldenTest
...
Co-authored-by: Robert Hensing <roberth@users.noreply.github.com>
3 years ago
Tobias Bergkvist
4b833cc141
EditorConfig: Switch from tabs to spaces
3 years ago
Tobias Bergkvist
b7d36b8d59
Add golden tests for make-binary-wrapper.
...
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
3 years ago