Town will host the Conference Premier side at Huish Park on Tuesday 22nd July, kick off 7.45pm.
Further games are expected to be announced over the next few days.
Confirmed pre-season fixtures:
Basingstoke Town - Away - Saturday 12th July - 3:00pm
Torquay United - Away - Tuesday 15th July - 7:45pm
Bristol Rovers - Home - Tuesday 22nd July - 7:45pm