aboutsummaryrefslogtreecommitdiff
path: root/gnu/machine.scm
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/machine.scm')
0 files changed, 0 insertions, 0 deletions
it tag -a -m "v1" v1 ) # Extract commit number. commit=$((cd $test_git_repo && git log) | head -n 1 | cut -f2 -d' ') # We expect that guix hash is working properly or at least that the output of # 'guix download' is consistent with 'guix hash'. expected_hash=$(guix hash -rx $test_git_repo) # Test the different options for option in "" "--commit=$commit" "--commit=v1" "--branch=master" do command_output="$(guix download --git $option "file://$test_git_repo")" computed_hash="$(echo $command_output | cut -f2 -d' ')" store_path="$(echo $command_output | cut -f1 -d' ')" [ "$expected_hash" = "$computed_hash" ] diff -r -x ".git" $test_git_repo $store_path done # Should fail. guix download --git --branch=non_existent "file://$test_git_repo" && false # Same but download to file instead of store. guix download --git "file://$test_git_repo" -o $output_dir diff -r -x ".git" $test_git_repo $output_dir exit 0