Comments (3)
This issue has been mentioned on NixOS Discourse. There might be relevant details there:
https://discourse.nixos.org/t/nix-on-windows/1113/109
from nix.
@Ericson2314 i've executed the tests using /nix/store/xch07snwpzrs0ph946kmzgzp2zass2fh-wine-wow-8.0.2/bin/wine imperatively. what i noticed:
- to make it work for both linux (wine) and native windows 10: i copied all files into one directory (symlinks break everything)
- wine is like 10x slower than native
- except for libnixutil-tests.exe which crashes, all 4 tests are 1:1 to native windows
- export WINEDEBUG=-all so one does not get an interactive shell
libnixexpr-tests.exe
[0;32m[----------] [mGlobal test environment tear-down
[0;32m[==========] [m352 tests from 18 test suites ran. (12204 ms total)
[0;32m[ PASSED ] [m330 tests.
[0;31m[ FAILED ] [m22 tests, listed below:
[0;31m[ FAILED ] [mNixStringContextElemTest.prop_round_rip
[0;31m[ FAILED ] [mPrimOpTest.getEnv
[0;31m[ FAILED ] [mPrimOpTest.baseNameOf
[0;31m[ FAILED ] [mPrimOpTest.dirOf
[0;31m[ FAILED ] [mnix_api_expr_test.nix_value_set_get_int
[0;31m[ FAILED ] [mnix_api_expr_test.nix_value_set_get_float
[0;31m[ FAILED ] [mnix_api_expr_test.nix_value_set_get_bool
[0;31m[ FAILED ] [mnix_api_expr_test.nix_value_set_get_string
[0;31m[ FAILED ] [mnix_api_expr_test.nix_value_set_get_null
[0;31m[ FAILED ] [mnix_api_expr_test.nix_value_set_get_path
[0;31m[ FAILED ] [mnix_api_expr_test.nix_build_and_init_list
[0;31m[ FAILED ] [mnix_api_expr_test.nix_build_and_init_attr
[0;31m[ FAILED ] [mnix_api_expr_test.nix_expr_eval_external
[0;31m[ FAILED ] [mnix_api_expr_test.nix_expr_eval_from_string
[0;31m[ FAILED ] [mnix_api_expr_test.nix_expr_eval_add_numbers
[0;31m[ FAILED ] [mnix_api_expr_test.nix_expr_eval_drv
[0;31m[ FAILED ] [mnix_api_expr_test.nix_build_drv
[0;31m[ FAILED ] [mErrorTraceTest.filterSource
[0;31m[ FAILED ] [mDerivedPathExpressionTest_RapidCheck.prop_opaque_path_round_trip
[0;31m[ FAILED ] [mDerivedPathExpressionTest_RapidCheck.prop_derived_path_built_placeholder_round_trip
[0;31m[ FAILED ] [mDerivedPathExpressionTest_RapidCheck.prop_derived_path_built_out_path_round_trip
[0;31m[ FAILED ] [mtoString/ToStringPrimOpTest.toString/10, where GetParam() = ("builtins.toString ./test", "/test")
libnixfetchers-tests.exe
wine libnixfetchers-tests.exe
works!
libnixstore-tests.exe
wine libnixstore-tests.exe
all fail
libnixutil-tests.exe
wine libnixutil-tests.exe
...
[0;32m[----------] [m6 tests from decompress
[0;32m[ RUN ] [mdecompress.decompressNoneCompressed
[0;32m[ OK ] [mdecompress.decompressNoneCompressed (0 ms)
[0;32m[ RUN ] [mdecompress.decompressEmptyCompressed
[0;32m[ OK ] [mdecompress.decompressEmptyCompressed (0 ms)
[0;32m[ RUN ] [mdecompress.decompressXzCompressed
terminate called after throwing an instance of 'nix::EndOfFile'
general
making this declarative, should the nix expression always assume 'success', i.e. ignore the output code so can check results manually?
from nix.
libnixexpr-tests.exe
I think this is because it needs the environment variable set for the unit test data files?
except for libnixutil-tests.exe which crashes
oh no!
terminate called after throwing an instance of 'nix::EndOfFile'
This is new to me since I last ran the tests
making this declarative, should the nix expression always assume 'success', i.e. ignore the output code so can check results manually?
I think we want to run all tests no matter what, but it's OK to make the derivation fail if any one of them failed. Hopefully we aren't failing for long :).
from nix.
Related Issues (20)
- Docker tag nixos/nix:2.22.0 does not include arm64 arch HOT 2
- Nix segfaults on Liquorix HOT 3
- Incorrect lastModified value
- `nix hash to-sri` could infer hash type from hash length HOT 3
- cancelling nix-collect-garbage will cause it to report incorrect statistics
- nix-store --add doesn't update refrences properly
- C API: `nix_init_path_string` unclear
- How to "deploy" projects organized with nix for interpreted languages, e.g. R HOT 2
- nix develop shell incomplete PATH contents HOT 1
- nix repl `:edit`or messes up the terminal HOT 1
- Support CLICOLOR_FORCE
- after this PR, there is still an empty section left in the manual HOT 1
- Flake evaluation options documented in help strings are retaining html tags HOT 4
- using Musl HOT 1
- Source roots result in /nix/store/<hash>-<hash>-source
- error: profile manifest '/nix/var/nix/profiles/per-user/teto/profile/manifest.json' has unsupported version 3 HOT 1
- Nix 2.21.x -> 2.22.x `download buffer is full` on CentOS 7 HOT 1
- Nix Shell Issue: Poetry 'Dulwich' Dependency HOT 4
- Optional set attributes of a function should be included when binding the set
- `nix run` error when trying to run an "app" from file with -f flag (in non-flake project)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nix.