about summary refs log tree commit diff
path: root/tests
AgeCommit message (Collapse)AuthorFilesLines
2016-12-19 Revert "Merge branch 'seccomp' of https://github.com/aszlig/nix"Eelco Dolstra1-54/+0
This reverts commit 9f3f2e21edb17dbcd674539dff96efb6cceca10c, reversing changes made to 47f587700d646f5b03a42f2fa57c28875a31efbe.
2016-12-15 Merge branch 'seccomp' of https://github.com/aszlig/nixEelco Dolstra1-0/+54
2016-11-27 Improve error message on trailing path slashesGuillaume Maudoux1-0/+6
2016-11-16 seccomp: Forge return codes for POSIX ACL syscallsaszlig1-1/+2
Commands such as "cp -p" also use fsetxattr() in addition to fchown(), so we need to make sure these syscalls always return successful as well in order to avoid nasty "Invalid value" errors. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
2016-11-16 release.nix: Add a test for sandboxingaszlig1-0/+53
Right now it only tests whether seccomp correctly forges the return value of chown, but the long-term goal is to test the full sandboxing functionality at some point in the future. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
2016-11-13 Fix comments parsingGuillaume Maudoux2-0/+60
Fixed the parsing of multiline strings ending with an even number of stars, like /** this **/. Added test cases for comments.
2016-10-19 Handle $TMPDIR ending with a slashEelco Dolstra2-2/+2
This caused the gc test to fail on Darwin.
2016-09-12 Fix gc-runtime testEelco Dolstra1-1/+1
It was failing on some platforms. http://hydra.nixos.org/build/39538866
2016-09-08 Fix test failureEelco Dolstra1-3/+3
2016-08-29 Add builtin function "partition"Eelco Dolstra2-0/+6
The implementation of "partition" in Nixpkgs is O(n^2) (because of the use of ++), and for some reason was causing stack overflows in multi-threaded evaluation (not sure why). This reduces "nix-env -qa --drv-path" runtime by 0.197s and memory usage by 298 MiB (in non-Boehm mode).
2016-08-17 Add a mechanism for derivation attributes to reference the derivation's outputsEelco Dolstra3-2/+25
For example, you can now say: configureFlags = "--prefix=${placeholder "out"} --includedir=${placeholder "dev"}"; The strings returned by the ‘placeholder’ builtin are replaced at build time by the actual store paths corresponding to the specified outputs. Previously, you had to work around the inability to self-reference by doing stuff like: preConfigure = '' configureFlags+=" --prefix $out --includedir=$dev" ''; or rely on ad-hoc variable interpolation semantics in Autoconf or Make (e.g. --prefix=\$(out)), which doesn't always work.
2016-08-10 Remove $NIX_DB_DIREelco Dolstra6-14/+10
This variable has no reason to exist, given $NIX_STATE_DIR.
2016-08-10 Nuke nix-push.Shea Levy5-18/+6
Rarely used, nix copy replaces it.
2016-08-10 Remove nix-install-package.Shea Levy2-21/+1
Refs #831
2016-07-21 Shut up warningEelco Dolstra1-0/+1
2016-06-17 Fix testEelco Dolstra1-1/+1
http://hydra.nixos.org/build/36631898
2016-06-01 HttpBinaryCacheStore: Fix caching of WantMassQueryEelco Dolstra1-18/+34
Also, test HttpBinaryCacheStore in addition to LocalBinaryCacheStore.
2016-05-31 Fix nix-profile test in a chrootEelco Dolstra2-3/+8
http://hydra.nixos.org/build/36462078
2016-05-31 Disable the SSH substituter test for nowEelco Dolstra1-5/+6
2016-05-30 Forgot to commitEelco Dolstra1-0/+7
2016-05-30 Test trying the next substitute after a bad signatureEelco Dolstra1-2/+10
2016-05-30 Test the NAR info cacheEelco Dolstra5-29/+18
2016-05-30 Re-implement binary cache signature checkingEelco Dolstra1-1/+1
This is now done in LocalStore::addToStore(), rather than in the binary cache substituter (which no longer exists).
2016-05-30 LocalStore::addToStore: Verify hash of the imported pathEelco Dolstra1-1/+1
2016-04-29 Eliminate the substituter mechanismEelco Dolstra6-135/+1
Substitution is now simply a Store -> Store copy operation, most typically from BinaryCacheStore to LocalStore.
2016-04-25 Improved logging abstractionEelco Dolstra1-10/+1
This also gets rid of --log-type, since the nested log type isn't useful in a multi-threaded situation, and nobody cares about the "pretty" log type.
2016-04-21 Fix test failuresEelco Dolstra1-4/+4
2016-04-16 Print out all bad references/requisites at onceDan Peebles1-1/+2
Also updates tests to check for new information. Fixes #799
2016-04-14 Make the search path lazier with non-fatal errorsEelco Dolstra1-0/+6
Thus, -I / $NIX_PATH entries are now downloaded only when they are needed for evaluation. An error to download an entry is a non-fatal warning (just like non-existant paths). This does change the semantics of builtins.nixPath, which now returns the original, rather than resulting path. E.g., before we had [ { path = "/nix/store/hgm3yxf1lrrwa3z14zpqaj5p9vs0qklk-nixexprs.tar.xz"; prefix = "nixpkgs"; } ... ] but now [ { path = "https://nixos.org/channels/nixos-16.03/nixexprs.tar.xz"; prefix = "nixpkgs"; } ... ] Fixes #792.
2016-04-14 Add tests for restricted eval modeEelco Dolstra2-1/+19
2016-04-13 nix-profile test: Set USERShea Levy1-2/+3
2016-04-11 Remove manifest supportEelco Dolstra10-127/+5
Manifests have been superseded by binary caches for years. This also gets rid of nix-pull, nix-generate-patches and bsdiff/bspatch.
2016-04-08 Remove failed build cachingEelco Dolstra3-44/+1
This feature was implemented for Hydra, but Hydra no longer uses it.
2016-03-30 Fix nix-copy-closure test on 16.03Eelco Dolstra1-1/+1
2016-03-24 Use shorter daemon socket path in testsEelco Dolstra3-5/+5
Otherwise we hit the 104 character limit. http://hydra.nixos.org/build/33562028
2016-02-15 Fix broken number parsing in fromJSONEelco Dolstra1-1/+1
The call to tmp_number.append had its arguments mixed up. Also, JSON does not allow a trailing "," after array/object members.
2016-02-15 Fix test broken by #762Eelco Dolstra1-1/+1
2016-02-12 Merge pull request #762 from ctheune/ctheune-floatsEelco Dolstra7-3/+23
Implement floats
2016-02-01 Remove tests/lexer.shEelco Dolstra3-4/+1
"tests/lang.sh" can handle this.
2016-01-31 Use the daemon when we don't have write access to the Nix databaseEelco Dolstra1-0/+1
2016-01-20 Revert "Revert "next try for "don't abort when given unmatched '}' with ↵Eelco Dolstra3-1/+6
'start-condition stack underflow'. This fixes #751""" This reverts commit b669d3d2e83d3c50238751b57cff3ed0ca39bc8a.
2016-01-20 Revert "next try for "don't abort when given unmatched '}' with ↵Eelco Dolstra3-6/+1
'start-condition stack underflow'. This fixes #751"" This reverts commit ed23c8568e10d15196bb4ff2b79fc14191d28109. Let's merge this *after* the 1.11.1 release.
2016-01-19 next try for "don't abort when given unmatched '}' with 'start-condition ↵Fabian Schmitthenner3-1/+6
stack underflow'. This fixes #751" This reverts commit 8120b6fb8a4924f8ae717bba9bbda4a2f89e2141 and fixes the regression introduced in 8d22b26448a091c76ab972c0b0603daac5e255e4.
2016-01-07 Fix repair testEelco Dolstra1-0/+12
http://hydra.nixos.org/build/30001635
2016-01-06 Adapt tests to show that floats work properly.Christian Theune7-3/+23
2015-11-04 Support SHA-512 hashesEelco Dolstra4-15/+20
Fixes #679. Note: on x86_64, SHA-512 is considerably faster than SHA-256 (198 MB/s versus 131 MB/s).
2015-10-30 <nix/fetchurl.nix>: Support xz-compressed NARsEelco Dolstra1-0/+14
2015-10-30 <nix/fetchurl.nix>: Support downloading and unpacking NARsEelco Dolstra2-9/+21
This removes the need to have multiple downloads in the stdenv bootstrap process (like a separate busybox binary for Linux, or curl/mkdir/sh/bzip2 for Darwin). Now all those files can be combined into a single NAR.
2015-07-31 Output line number on infinite recursionIwan Aucamp1-0/+3
2015-07-28 Add sort primopEelco Dolstra2-0/+9