Skip to content

Commit

Permalink
Final cleanup for 'make unittests' to be separate from 'make test' (I…
Browse files Browse the repository at this point in the history
…ssue #612)
  • Loading branch information
michaelrsweet committed Dec 29, 2023
1 parent 49e662d commit 61a9e41
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 15 deletions.
7 changes: 7 additions & 0 deletions backend/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,13 @@ uninstall:
-$(RMDIR) $(SERVERBIN)


#
# Run unit tests... (doesn't actually run these currently)
#

test: unittests


#
# test1284
#
Expand Down
14 changes: 10 additions & 4 deletions cgi-bin/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,16 @@ uninstall:
-$(RMDIR) $(SERVERBIN)/cgi-bin


#
# Run unit tests...
#

test: unittests
echo Testing CGI API...
./testcgi
echo Testing help index API...
./testhi

#
# libcupscgi.a
#
Expand Down Expand Up @@ -211,8 +221,6 @@ testcgi: testcgi.o ../Makedefs libcupscgi.a ../cups/$(LIBCUPSSTATIC)
$(LD_CC) $(ARCHFLAGS) $(ALL_LDFLAGS) -o $@ testcgi.o libcupscgi.a \
$(LINKCUPSSTATIC)
$(CODE_SIGN) -s "$(CODE_SIGN_IDENTITY)" $@
echo Testing CGI API...
./testcgi


#
Expand All @@ -224,8 +232,6 @@ testhi: testhi.o ../Makedefs libcupscgi.a ../cups/$(LIBCUPSSTATIC)
$(LD_CC) $(ARCHFLAGS) $(ALL_LDFLAGS) -o $@ testhi.o libcupscgi.a \
$(LINKCUPSSTATIC)
$(CODE_SIGN) -s "$(CODE_SIGN_IDENTITY)" $@
echo Testing help index API...
./testhi


#
Expand Down
22 changes: 11 additions & 11 deletions scheduler/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -101,17 +101,6 @@ libs:
unittests: $(UNITTARGETS)


#
# Run unit tests...
#

test: unittests
echo "Tests started at $(date)..." >test.log
echo Running MIME API tests...
./testmime >>test.log
echo "Tests finished at $(date)..." >>test.log


#
# Clean all object files...
#
Expand Down Expand Up @@ -321,6 +310,17 @@ uninstall:
fi


#
# Run unit tests...
#

test: unittests
echo "Tests started at $(date)..." >test.log
echo Running MIME API tests...
./testmime >>test.log
echo "Tests finished at $(date)..." >>test.log


#
# Make the scheduler executable, "cupsd".
#
Expand Down

0 comments on commit 61a9e41

Please sign in to comment.