A French farmer accused of helping illegal migrants cross the border from Italy and giving them shelter is on trial in France, in a case that has highlighted divisions over how migrants are treated in Europe.