Skip to content

Commit

Permalink
Bring back testlang.
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelrsweet committed Sep 5, 2024
1 parent 9914441 commit a5438f5
Show file tree
Hide file tree
Showing 2 changed files with 72 additions and 254 deletions.
16 changes: 5 additions & 11 deletions cups/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ TESTOBJS = \
testipp.o \
testjson.o \
testjwt.o \
testlang.o \
testoauth.o \
testoptions.o \
testpwg.o \
Expand Down Expand Up @@ -159,6 +160,7 @@ UNITTARGETS = \
testipp \
testjson \
testjwt \
testlang \
testoauth \
testoptions \
testpwg \
Expand Down Expand Up @@ -227,6 +229,9 @@ test: $(UNITTARGETS)
echo Running JWT API tests...
./testjwt 2>>test.log
echo ""
echo Running localization API tests...
./testlang 2>>test.log
echo ""
echo Running option API tests...
./testoptions 2>>test.log
echo ""
Expand Down Expand Up @@ -575,17 +580,6 @@ testlang: testlang.o $(LIBCUPS_STATIC)
echo Linking $@...
$(CC) $(LDFLAGS) $(OPTIM) -o $@ testlang.o $(LIBCUPS_STATIC) $(LIBS)
$(CODE_SIGN) $(CSFLAGS) $@
echo Creating locale directory structure...
$(RM) -r locale
for po in ../locale/cups_*.po; do \
lang=`basename $$po .po | sed -e '1,$$s/^cups_//'`; \
$(MKDIR) locale/$$lang; \
$(LN) ../../$$po locale/$$lang; \
done
echo Running language API tests...
echo ls -al locale
ls -al locale
LOCALEDIR=locale ./testlang


#
Expand Down
Loading

0 comments on commit a5438f5

Please sign in to comment.