This paper is concerned with a class of partition functions a(n) introduced by Radu and defined in terms of eta-quotients. By utilizing the transformation laws of Newman, Schoeneberg and Robins, and Radu's algorithms, we present an algorithm to find Ramanujan-type identities for a(mn + t). While this algorithm is not guaranteed to succeed, it applies to many cases. For example, we deduce a witness identity for p(11n + 6) with integer coefficients. Our algorithm also leads to Ramanujan-type identities for the overpartition functions p(5n + 2) and p(5n + 3) and Andrews-Paule's broken 2-diamond partition functions △ 2 (25n + 14) and △ 2 (25n + 24). It can also be extended to derive Ramanujan-type identities on a more general class of partition functions. For example, it yields the Ramanujan-type identities on Andrews' singular overpartition functions Q 3,1 (9n + 3) and Q 3,1 (9n + 6) due to Shen, the 2-dissection formulas of Ramanujan and the 8-dissection formulas due to Hirschhorn.Atkin and Swinnerton-Dyer [5] have shown that g t can always be expressed by certain infinite products for m > 3. Then the left hand side of (1.3) can be expressed in terms of certain infinite products. Kolberg pointed out that when m > 5, this becomes much more complicated. For m = 11, 13, Bilgici and Ekin [7,8] used the method of Kolberg to compute the generating function ∞ n=0 p(mn + t)q mn+t 1. M |N .