All checks were successful
		
		
	
	continuous-integration/drone/push Build is passing
				
			Fixes https://build.coopcloud.tech/toolshed/abra/2760/1/5
		
			
				
	
	
		
			28 lines
		
	
	
		
			634 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
			
		
		
	
	
			28 lines
		
	
	
		
			634 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
#!/usr/bin/env bash
 | 
						|
 | 
						|
setup() {
 | 
						|
  load "$PWD/tests/integration/helpers/common"
 | 
						|
  _common_setup
 | 
						|
 | 
						|
  if [[ -f "$HOME/.local/bin/abra" ]]; then
 | 
						|
    mv "$HOME/.local/bin/abra" "$HOME/.local/bin/abra_before_test"
 | 
						|
  fi
 | 
						|
}
 | 
						|
 | 
						|
teardown(){
 | 
						|
  if [[ -f "$HOME/.local/bin/abra_before_test" ]]; then
 | 
						|
    rm -rf "$HOME/.local/bin/abra"
 | 
						|
    mv "$HOME/.local/bin/abra_before_test" "$HOME/.local/bin/abra"
 | 
						|
  fi
 | 
						|
}
 | 
						|
 | 
						|
# bats test_tags=slow
 | 
						|
@test "install from script" {
 | 
						|
  run bash -c 'curl https://install.abra.coopcloud.tech | bash'
 | 
						|
  assert_success
 | 
						|
 | 
						|
  assert_exists "$HOME/.local/bin/abra"
 | 
						|
  run "$HOME/.local/bin/abra" -v
 | 
						|
  assert_output --partial 'beta'
 | 
						|
}
 |