> On Fri, Jun 28, 2019 at 01:33:57PM +0530, Arun Isaac wrote: >> + ;; The check phase rebuilds the source for tests. So, it needs to be >> + ;; run after the install phase has installed the outputs of the build >> + ;; phase. >> + (delete 'check) >> + (add-after 'install 'check >> + (lambda _ >> + ;; Clean files created by the build phase. >> + (invoke "make" "clean") >> + ;; QLogo tries to create its "dribble file" in the home >> + ;; directory. So, set HOME. >> + (setenv "HOME" "/tmp") >> + ;; Build and run tests. >> + (invoke "qmake" "TestQLogo.pro") > > Doesn't this efectively just rebuild the binary we just built in the > 'configure and 'build phases? No. There are two qmake project files -- QLogo.pro and TestQLogo.pro. QLogo.pro builds the "QLogo" executable and TestQLogo.pro builds the "testqlogo" executable. "QLogo" is the actual qlogo executable that we install. "testqlogo" simply runs the tests.