DCMotorTest from the Adafruit site – got fatal error exit status 1
Based on the error report it seems that you have just opened the example program from the downloaded folder. In order to add library files (which includes the header files, c++ source code, etc.) you have to move the Adafruit_Motor_Shield_V2_Library-master folder to the libraries folder. 


  Documents > arduino > libraries


If no such folder exist, then create a new folder and name it libraries.

To check weather the libraries have been installed, open arduino IDE goto 


  file > example and check weather the example programs are added (you will see "adafruit" in the list)


Now, restart the arduino IDE and things should get going.

Note:
Do not use "-" and do not include space while naming a folder, as the compiler may throw up error. Instead you are free to use "_","$". Name of a folder should always start with a letter.

For more detail visit https://learn.adafruit.com/adafruit-all-about-arduino-libraries-install-use/how-to-install-a-library