diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2022-03-02 11:14:31 +0100 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2022-03-02 11:21:00 +0100 |
commit | c10865a46e6e3083ceb2c6a450568fa2df91ec99 (patch) | |
tree | d234e8c28bc723e9724110a9fe37faa4ff7f2ae1 /tests/bash-profile.sh | |
parent | 010ffc31f8e215a348fb77d99086bf854bf32b0c (diff) |
tests: Rename nix-profile.sh -> bash-profile.sh
Diffstat (limited to 'tests/bash-profile.sh')
-rw-r--r-- | tests/bash-profile.sh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/bash-profile.sh b/tests/bash-profile.sh new file mode 100644 index 000000000..e2e0d1090 --- /dev/null +++ b/tests/bash-profile.sh @@ -0,0 +1,9 @@ +source common.sh + +sed -e "s|@localstatedir@|$TEST_ROOT/profile-var|g" -e "s|@coreutils@|$coreutils|g" < ../scripts/nix-profile.sh.in > $TEST_ROOT/nix-profile.sh + +user=$(whoami) +rm -rf $TEST_HOME $TEST_ROOT/profile-var +mkdir -p $TEST_HOME +USER=$user $SHELL -e -c ". $TEST_ROOT/nix-profile.sh; set" +USER=$user $SHELL -e -c ". $TEST_ROOT/nix-profile.sh" # test idempotency |