Pakistan denied Ireland victory on their Test debut ©Getty Images

Ireland were denied a surprise victory on their cricket Test debut by Pakistan, who won by five wickets following four days of play at The Village in Dublin.

Ireland had won the toss and decided to field on home soil after rain wiped out the first day of play.

Boyd Rankin, Tim Murtagh and Stuart Thompson all claimed two wickets before rain again brought play to a premature halt.

Pakistan then recovered the following day and eventually declared after posting a score of 310-9.

Unfortunately for debutants Ireland, they struggled when put into bat and lost their first four wickets for just five runs.

Eventually, they were bowled out for just 130 runs and were forced to follow on.

Their second innings total of 339 all out, which included Kevin O'Brien having the honour of being Ireland's first ever test centurion with a total of 118 runs, brought them back into the match and meant Pakistan needed to bat again.

Scores of 74 and 59 from Imam ul-Haq and Babar Azam, respectively, made sure Pakistan claimed victory as they beat Ireland's total with a second innings score of 160-5.

Kevin O'Brien became Ireland's first ever Test centurion in Dublin ©Getty Images
Kevin O'Brien became Ireland's first ever Test centurion in Dublin ©Getty Images

Ireland captain William Porterfield was upbeat despite his side's loss.

"The biggest thing was how we fought back in the second innings with the bat - that showed the character we have," he said according to BBC.

"It's something that's been talked about during big occasions, World Cups.

“That's always been known to be there but Test cricket is Test cricket for a reason, it's there in the name, you did get tested and we were after the first innings.

"To get up to close to 350 showed what we've got in the changing room and the passion that we have for playing our cricket.

"Hopefully in the next week or two there's going to be hundreds of little kids aspiring to be Kevin O'Brien in backstreet cricket.

"This Test match will have gone a long way to providing the next generation of cricketers, I'm sure."