Now that the DN encoding works more correct, we have to update the
[gnupg.git] / checks / Makefile.am
index b4a830b..41ded3c 100644 (file)
@@ -1,52 +1,76 @@
 ## Process this file with automake to create Makefile.in
 
-TESTS = version.test \
+GPG_DEARMOR = ../g10/gpg --no-options --quiet --yes --dearmor
+
+TESTS = version.test mds.test \
        decrypt.test decrypt-dsa.test \
        sigs.test sigs-dsa.test \
        encrypt.test encrypt-dsa.test  \
-       clearsig.test encryptp.test detach.test \
+       seat.test clearsig.test encryptp.test detach.test \
        armsigs.test armencrypt.test armencryptp.test \
        signencrypt.test signencrypt-dsa.test \
        armsignencrypt.test armdetach.test \
-       armdetachm.test detachm.test genkey1024.test
+       armdetachm.test detachm.test genkey1024.test \
+       conventional.test
 
 
-TEST_FILES = pubring.asc secring.asc gnupg.asc plain-1 plain-2 plain-3o.asc \
+TEST_FILES = pubring.asc secring.asc plain-1o.asc plain-2o.asc plain-3o.asc \
             plain-1.asc plain-2.asc plain-3.asc plain-1-pgp.asc \
-            pubring.pkr.asc secring.skr.asc
+            pubring.pkr.asc secring.skr.asc secdemo.asc pubdemo.asc
+
+DATA_FILES = data-500 data-9000 data-32000 data-80000 plain-large
 
-DATA_FILES = data-500 data-9000 data-32000 data-80000
+EXTRA_DIST = defs.inc run-gpg run-gpg.patterns $(TESTS) $(TEST_FILES) \
+            mkdemodirs signdemokey
+CLEANFILES = prepared.stamp x y yy z out err  $(DATA_FILES) \
+            plain-1 plain-2 plain-3 options trustdb.gpg *.lock .\#lk* \
+            pubring.gpg secring.gpg pubring.pkr secring.skr
+DISTCLEANFILES = pubring.gpg~
 
-EXTRA_DIST = defs.inc run-gpg run-gpgm $(TESTS) $(TEST_FILES)
-CLEANFILES = prepared.stamp x y z out err  $(DATA_FILES)
 
-check: prepared.stamp
+all-local: prepared.stamp
 
-prepared.stamp: pubring.gpg secring.gpg gnupg.sig plain-3 \
-               pubring.pkr secring.skr $(DATA_FILES)
-       @echo "def" | ../g10/gpg -v --no-operation; \
+distclean-local:
+       ./mkdemodirs --clean
+
+prepared.stamp: ./pubring.gpg ./secring.gpg ./plain-1 ./plain-2 ./plain-3 \
+               ./pubring.pkr ./secring.skr $(DATA_FILES)
         echo timestamp >./prepared.stamp
 
-pubring.gpg: pubring.asc
-       ../g10/gpgm --yes --dearmor -o pubring.gpg pubring.asc
-secring.gpg: secring.asc
-       ../g10/gpgm --yes --dearmor -o secring.gpg secring.asc
-gnupg.sig: gnupg.asc
-       ../g10/gpgm --yes --dearmor -o gnupg.sig gnupg.asc
-plain-3: plain-3o.asc
-       ../g10/gpgm --yes --dearmor -o plain-3 plain-3o.asc
-pubring.pkr: pubring.pkr.asc
-       ../g10/gpgm --yes --dearmor -o pubring.pkr pubring.pkr.asc
-secring.skr: secring.skr.asc
-       ../g10/gpgm --yes --dearmor -o secring.skr secring.skr.asc
+
+./pubring.gpg: $(srcdir)/pubring.asc
+        $(GPG_DEARMOR) -o ./pubring.gpg $(srcdir)/pubring.asc
+
+./secring.gpg: $(srcdir)/secring.asc
+        $(GPG_DEARMOR) -o ./secring.gpg $(srcdir)/secring.asc
+
+./pubring.pkr: $(srcdir)/pubring.pkr.asc
+        $(GPG_DEARMOR) -o ./pubring.pkr $(srcdir)/pubring.pkr.asc
+
+./secring.skr: $(srcdir)/secring.skr.asc
+        $(GPG_DEARMOR) -o ./secring.skr $(srcdir)/secring.skr.asc
+
+./plain-1: $(srcdir)/plain-1o.asc
+        $(GPG_DEARMOR) -o ./plain-1 $(srcdir)/plain-1o.asc
+
+./plain-2: $(srcdir)/plain-2o.asc
+        $(GPG_DEARMOR) -o ./plain-2 $(srcdir)/plain-2o.asc
+
+./plain-3: $(srcdir)/plain-3o.asc
+        $(GPG_DEARMOR) -o ./plain-3 $(srcdir)/plain-3o.asc
+
+
 
 data-500:
-       head -c 500 /dev/urandom >data-500
+       ../tools/mk-tdata   500  >data-500
 data-9000:
-       head -c 9000 /dev/urandom >data-9000
+       ../tools/mk-tdata  9000  >data-9000
 data-32000:
-       head -c 32000 /dev/urandom >data-32000
+       ../tools/mk-tdata 32000  >data-32000
 data-80000:
-       head -c 80000 /dev/urandom >data-80000
-
+       ../tools/mk-tdata 80000  >data-80000
+plain-large:
+       cat $(srcdir)/../doc/HACKING \
+           $(srcdir)/../doc/DETAILS \
+           $(srcdir)/../doc/FAQ         >plain-large