Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nixos/memcached: added simple set/get test #41731

Merged
merged 1 commit into from Jun 9, 2018
Merged

Conversation

andir
Copy link
Member

@andir andir commented Jun 9, 2018

Motivation for this change

Initially developed to test the bump on the stable channel this test should help use gain more confidence in package bumps of memcached regarding the core functionality.

The test ensures that the services comes up and accepts/provides values.

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Fits CONTRIBUTING.md.

@andir
Copy link
Member Author

andir commented Jun 9, 2018

@GrahamcOfBorg test memcached

@GrahamcOfBorg
Copy link

No attempt on aarch64-linux (full log)

The following builds were skipped because they don't evaluate on aarch64-linux: tests.memcached

Partial log (click to expand)

Cannot nix-instantiate `tests.memcached' because:
error: undefined variable 'callTests' at /var/lib/gc-of-borg/nix-test-rs-20/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/grahamc-aarch64-community-20/nixos/release.nix:337:21

@GrahamcOfBorg
Copy link

No attempt on x86_64-linux (full log)

The following builds were skipped because they don't evaluate on x86_64-linux: tests.memcached

Partial log (click to expand)

Cannot nix-instantiate `tests.memcached' because:
error: undefined variable 'callTests' at /var/lib/gc-of-borg/nix-root/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/gleber-bastion/nixos/release.nix:337:21

The test ensures that the services comes up and accepts/provides values.
@andir
Copy link
Member Author

andir commented Jun 9, 2018

@GrahamcOfBorg test memcached

@GrahamcOfBorg
Copy link

Success on aarch64-linux (full log)

Attempted: tests.memcached

Partial log (click to expand)

machine: exit status 1
syncing
machine: running command: sync
machine: exit status 0
test script finished in 19.86s
cleaning up
killing machine (pid 627)
vde_switch: EOF on stdin, cleaning up and exiting
vde_switch: Could not remove ctl dir '/build/vde1.ctl': Directory not empty
/nix/store/3a58zab3aqgxl3w0ybqa4ssl1gbrln3j-vm-test-run-memcached

@GrahamcOfBorg
Copy link

Success on x86_64-linux (full log)

Attempted: tests.memcached

Partial log (click to expand)

machine# [   12.462896] dhcpcd[702]: eth0: leased 10.0.2.15 for 86400 seconds
machine# [   12.623285] dhcpcd[702]: eth0: adding route to 10.0.2.0/24
machine# [   12.624995] dhcpcd[702]: eth0: adding default route via 10.0.2.2
machine: exit status 0
test script finished in 14.16s
cleaning up
killing machine (pid 593)
vde_switch: EOF on stdin, cleaning up and exiting
vde_switch: Could not remove ctl dir '/build/vde1.ctl': Directory not empty
/nix/store/cizdjph9r9rig4nadp4cmrj4y3gk1k6g-vm-test-run-memcached

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants