How to save each array values in next line?
You should pass paths as a string instead of array:

$test = "abc/*\nxyz/*\nijk/*\n";
variable_set('boost_testing', $test);


Remember to use double quotes for the $test string.