2024-05-28 19:43:04 +03:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
2012-09-14 00:58:14 +03:00
|
|
|
source common.sh
|
|
|
|
|
2024-06-03 23:18:42 +03:00
|
|
|
sed -e "s|@localstatedir@|$TEST_ROOT/profile-var|g" -e "s|@coreutils@|$coreutils|g" < ../../scripts/nix-profile.sh.in > "$TEST_ROOT"/nix-profile.sh
|
2016-05-31 14:07:24 +03:00
|
|
|
|
2016-04-13 17:43:33 +03:00
|
|
|
user=$(whoami)
|
2024-06-03 23:18:42 +03:00
|
|
|
rm -rf "$TEST_HOME" "$TEST_ROOT/profile-var"
|
|
|
|
mkdir -p "$TEST_HOME"
|
2016-05-31 14:07:24 +03:00
|
|
|
USER=$user $SHELL -e -c ". $TEST_ROOT/nix-profile.sh; set"
|
|
|
|
USER=$user $SHELL -e -c ". $TEST_ROOT/nix-profile.sh" # test idempotency
|