mirror of
				https://github.com/nvm-sh/nvm.git
				synced 2025-10-31 10:15:53 +08:00 
			
		
		
		
	added test for installation with -s option.
This commit is contained in:
		
							
								
								
									
										14
									
								
								test/slow/install from binary
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										14
									
								
								test/slow/install from binary
									
									
									
									
									
										Executable file
									
								
							| @@ -0,0 +1,14 @@ | |||||||
|  | #!/bin/sh | ||||||
|  |  | ||||||
|  | set -e | ||||||
|  | . ../../nvm.sh | ||||||
|  |  | ||||||
|  | # Remove the stuff we're clobbering. | ||||||
|  | [ -e ../../v0.8.6 ] && rm -R ../../v0.8.6 | ||||||
|  |  | ||||||
|  | # Install from binary | ||||||
|  | nvm install 0.8.6 | ||||||
|  |  | ||||||
|  | # Check | ||||||
|  | [ -d ../../v0.8.6 ] | ||||||
|  | nvm run v0.8.6 --version | grep v0.8.6 | ||||||
							
								
								
									
										14
									
								
								test/slow/install from source
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										14
									
								
								test/slow/install from source
									
									
									
									
									
										Executable file
									
								
							| @@ -0,0 +1,14 @@ | |||||||
|  | #!/bin/sh | ||||||
|  |  | ||||||
|  | set -e | ||||||
|  | . ../../nvm.sh | ||||||
|  |  | ||||||
|  | # Remove the stuff we're clobbering. | ||||||
|  | [ -e ../../v0.8.6 ] && rm -R ../../v0.8.6 | ||||||
|  |  | ||||||
|  | # Install from source | ||||||
|  | nvm install -s 0.8.6 | ||||||
|  |  | ||||||
|  | # Check | ||||||
|  | [ -d ../../v0.8.6 ] | ||||||
|  | nvm run v0.8.6 --version | grep v0.8.6 | ||||||
		Reference in New Issue
	
	Block a user