The libspm git repo has a test directory: libxpm.git on master ❯ ls test/ CompareXpmImage.h Makefile.am pixmaps rgb.c rgb.txt tap-test TestAllFiles.h XpmCreate.c XpmMisc.c XpmRead.c XpmWrite.c wrap up those tests for YP ptest.
Created for a new WR dev who will assign this defect to themselves once they have a YP BZ account.