about summary refs log tree commit diff
path: root/lib/tests
Commit message (Collapse)AuthorAge
* lib/tests: Allow overriding pkgs independent of lib being testedSilvan Mosberger2020-04-25
|
* lib/maintainer-list: Implement validity checksSilvan Mosberger2020-04-13
|
* lib/tests/release.nix: Avoid importing nixpkgs into the storeSilvan Mosberger2020-04-13
| | | | Improves build time by about a factor of two on my system
* lib/tests/modules.sh: Don't depend on $PWDSilvan Mosberger2020-04-13
|
* Merge pull request #83241 from Infinisil/valid-drv-nameSilvan Mosberger2020-04-02
|\ | | | | lib/strings: Add `sanitizeDerivationName` function
| * lib/strings: Add sanitizeDerivationName functionSilvan Mosberger2020-03-30
| |
* | lib/systems: Add Genode platform definitionsEmery Hemingway2020-03-24
| | | | | | | | | | | | | | Add platform definitions for 64-bit ARM and x86. This is sufficient for for building Genode where a toolchain is provided as an overlay. Toolchain: git+https://git.sr.ht/~ehmry/genodepkgs?rev=14fc773ac9ecd2cbb30cb4612b284eee83d83546
* | Merge pull request #82882 from obsidiansystems/armv6-embeddedJohn Ericson2020-03-19
|\ \ | | | | | | Misc fixes for armv6 bare metal cross
| * | lib: Fix systems test for new `armv6l-none`John Ericson2020-03-18
| | |
* | | lib/tests: Check for nested option-dependent definitionsSilvan Mosberger2020-03-19
| | |
* | | Revert "lib/modules: Throw better error when definitions assign to an option ↵Silvan Mosberger2020-03-19
| | | | | | | | | | | | | | | | | | | | | | | | set" This reverts commit 15c873b486347e7861c64fb0b5a7852be9fc82e4. This was causing infinite recursion when depending on nested options
* | | Merge pull request #82751 from Infinisil/minor-module-improvementsRobert Hensing2020-03-18
|\ \ \ | | | | | | | | Minor module improvements
| * | | lib/modules: Fix type checks not being done before mergingSilvan Mosberger2020-03-18
| | | | | | | | | | | | | | | | Co-Authored-By: Robert Hensing <robert@roberthensing.nl>
| * | | lib/modules: Throw better error when definitions assign to an option setSilvan Mosberger2020-03-18
| | | |
* | | | lib/modules: Test the ability for config to depend on options for compatibilityRobert Hensing2020-03-17
|/ / /
* / / lib/generators: Add toINI option for duplicate keysSilvan Mosberger2020-03-10
|/ /
* | lib/tests/misc.nix: Don't make a copy on NixpkgsEelco Dolstra2020-02-10
| |
* | lib/tests/misc.nix: Fix dependency on currentSystemEelco Dolstra2020-02-10
|/ | | | This doesn't work in pure mode.
* lib/cli,lib/tests/misc: somewhat more standard formattingProfpatsch2020-01-23
|
* lib/cli: encodeGNUCommandLine -> toGNUCommandLineShellProfpatsch2020-01-23
| | | | | | | | | | | | | | The semantic difference between `encode` and `to` is not apparent. Users are likely to confuse both functions (which leads to unexpected error messages about the wrong types). Like in `generators.nix`, all functions should be prefixed by `to`. Furthermore, converting to a string depends on the target context. In this case, it’s a POSIX shell, so we should name it that (compare `escapeShellArg` in `strings.nix`). We can later add versions that escape for embedding in e.g. python scripts or similar.
* Merge pull request #75539 from Gabriel439/gabriel/renderOptionsRobert Hensing2020-01-14
|\ | | | | Add `pkgs.lib.encodeGNUCommandLine`
| * Factor out a `toGNUCommandLine` utilityGabriel Gonzalez2020-01-05
| | | | | | | | ... as suggested by @roberth
| * Use a more realistic example that exercises all encodingsGabriel Gonzalez2019-12-15
| | | | | | | | | | | | ... as suggested by @roberth This also caught a bug in rendering lists, which this change also fixes
| * Make behavior of `encodeGNUCommandLine` customizableGabriel Gonzalez2019-12-13
| | | | | | | | ... based on feedback from @edolstra
| * Rename `renderOptions` to `encodeGNUCommandLine`Gabriel Gonzalez2019-12-13
| | | | | | | | ... as suggested by @edolstra
| * Add `pkgs.lib.renderOptions`Gabriel Gonzalez2019-12-11
| | | | | | | | | | | | This adds a new utility to intelligently convert Nix records to command line options to reduce boilerplate for simple use cases and to also reduce the likelihood of malformed command lines
* | Merge pull request #76861 from Infinisil/paths-as-submodulesRobert Hensing2020-01-12
|\ \ | | | | | | lib/types: Allow paths as submodule values
| * | lib/types: Allow paths as submodule valuesSilvan Mosberger2020-01-08
| | |
* | | lib/tests: Add tests for attrsOf and lazyAttrsOfSilvan Mosberger2020-01-10
| | |
* | | lib/tests: Fix module testsSilvan Mosberger2020-01-10
| | | | | | | | | | | | | | | | | | | | | | | | | | | Fix the broken test in https://github.com/NixOS/nixpkgs/pull/77416 Apparently hydra uses `nix-build lib/tests/release.nix` to run all tests, where IFD isn't allowed. Fortunately we can get around this with builtins.toFile, which doesn't require IFD, but still can test the properties we want.
* | | lib/tests: Add test case for imports from derivationsSilvan Mosberger2020-01-10
| | |
* | | Merge pull request #76857 from Infinisil/recursive-disableModulesSilvan Mosberger2020-01-09
|\ \ \ | |/ / |/| | Apply `disabledModules` recursively
| * | lib/tests: Add tests for recursive disabledModulesSilvan Mosberger2020-01-09
| | |
* | | lib/tests: remove strictly loaOf tests and rebase on attrsOfrnhmjoj2020-01-06
| | |
* | | lib/tests: Temporarily disable submodule path testSilvan Mosberger2020-01-03
|/ / | | | | | | Until https://github.com/NixOS/nixpkgs/pull/76861 or so is merged
* | Module system improvements for NixOS as a submodule (#75031)Silvan Mosberger2020-01-02
|\ \ | | | | | | Module system improvements for NixOS as a submodule
| * | lib/tests: Add submoduleWith testsSilvan Mosberger2020-01-02
| |/
* | Merge branch 'ghcjs-cross-without-cc-19.09' into ghcjs-cross-without-ccJohn Ericson2019-11-25
|\ \ | |/ |/|
| * Fix lib testsJohn Ericson2019-11-25
| | | | | | | | js-ghcjs didn't fit in an existing categor.
* | lib/trivial: add `pipe` functionProfpatsch2019-10-21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | `pipe` is a useful operator for creating pipelines of functions. It works around the usual problem of e.g. string operations becoming deeply nested functions. In principle, there are four different ways this function could be written: pipe val [ f1 .. fn ] pipe val [ fn .. f1 ] compose [ f1 .. fn ] val compose [ fn .. f1 ] val The third and fourth form mirror composition of functions, they would be the same as e.g. `(f1 << f2 << f3 .. << fn) val`. However, it is not clear which direction the list should have (as one can see in the second form, which is the most absurd. In order not to confuse users, we decide for the most “intuitive” form, which mirrors the way unix pipes work (thus the name `pipe`). The flow of data goes from left to right. Co-Authored-By: Silvan Mosberger <infinisil@icloud.com>
* | Merge pull request #70194 from obsidiansystems/lib-more-armMatthew Bauer2019-10-01
|\| | | | | lib: Add armv7a-linux to doubles.nix
| * lib: Add armv7a-linux to doubles.nixJohn Ericson2019-10-01
| | | | | | | | This is needed for android.
* | lib: basic tests for lib.versionsJoachim Fasting2019-09-26
|/
* lib/types: Add oneOf, extension of either to a list of typesSilvan Mosberger2019-08-06
|
* make-tarball / lib-tests: reduce duplicationFrederik Rietdijk2019-07-11
| | | | | The misc.nix and systems.nix tests were invoked at three different places. Let's not that.
* Revert "Revert "systems/doubles.nix: add Apple doubles""Matthew Bauer2019-07-10
| | | | | | | | | | This reverts commit ce2f74df2cade57e74c235292c8b074281903e71. Doubles are treated as -darwin here, to provide some consistency. There is some ambiguity between “x86_64-darwin” and “i686-darwin” which could refer to binaries linked between iOS simulator or real macOS binaries. useiOSPrebuilt can be used to determine which to use, however.
* systems: fix lib-testsMatthew Bauer2019-06-04
| | | | | These were broken by the added system doubles. This just adds those to the lib-tests.
* tests/systems: fix testsMatthew Bauer2019-04-25
|
* Fix the documentation for the tests to reflect what is actually happening.(cdep)illabout2019-02-07
|
* lib/modules: Change mkAliasOptionModule to use the priority for the alias.(cdep)illabout2019-01-24
| | | | | | | | | | | | | | | This commit changes the `mkAliasOptionModule` function to make sure that the priority for the aliased option is propagated to the non-aliased option. This also affects the `mkRenamedOptionModule` function in a similar fashion. This also removes the `mkAliasOptionModuleWithPriority` function, since its functionality is now subsumed by `mkAliasOptionModule`. This change was recommended by @nbp: https://github.com/NixOS/nixpkgs/pull/53397#discussion_r245487432