compile and tcp testing script