61 lines
2.2 KiB
Makefile
61 lines
2.2 KiB
Makefile
|
|
test-cert-all: test-cert-type test-cert-length test-cert-data test-cert-read test-cert-length-correct test-cert-length-too-short test-cert-length-data-short test-cert-data-correct test-cert-data-too-long test-cert-data-too-short test-cert-read-correct test-cert-read-short test-cert-read-remainder test-cert-read-invalid
|
|
|
|
test-cert-type:
|
|
$(GO) test -v ./lib/common/certificate -run TestCertificateTypeIsFirstByte
|
|
|
|
test-cert-length:
|
|
$(GO) test -v ./lib/common/certificate -run TestCertificateLength
|
|
|
|
test-cert-data:
|
|
$(GO) test -v ./lib/common/certificate -run TestCertificateData
|
|
|
|
test-cert-read:
|
|
$(GO) test -v ./lib/common/certificate -run TestReadCertificate
|
|
|
|
test-cert-length-correct:
|
|
$(GO) test -v ./lib/common/certificate -run TestCertificateLengthCorrect
|
|
|
|
test-cert-length-too-short:
|
|
$(GO) test -v ./lib/common/certificate -run TestCertificateLengthErrWhenTooShort
|
|
|
|
test-cert-length-data-short:
|
|
$(GO) test -v ./lib/common/certificate -run TestCertificateLengthErrWhenDataTooShort
|
|
|
|
test-cert-data-correct:
|
|
$(GO) test -v ./lib/common/certificate -run TestCertificateDataWhenCorrectSize
|
|
|
|
test-cert-data-too-long:
|
|
$(GO) test -v ./lib/common/certificate -run TestCertificateDataWhenTooLong
|
|
|
|
test-cert-data-too-short:
|
|
$(GO) test -v ./lib/common/certificate -run TestCertificateDataWhenTooShort
|
|
|
|
test-cert-read-correct:
|
|
$(GO) test -v ./lib/common/certificate -run TestReadCertificateWithCorrectData
|
|
|
|
test-cert-read-short:
|
|
$(GO) test -v ./lib/common/certificate -run TestReadCertificateWithDataTooShort
|
|
|
|
test-cert-read-remainder:
|
|
$(GO) test -v ./lib/common/certificate -run TestReadCertificateWithRemainder
|
|
|
|
test-cert-read-invalid:
|
|
$(GO) test -v ./lib/common/certificate -run TestReadCertificateWithInvalidLength
|
|
|
|
# Declare all targets as PHONY
|
|
.PHONY: test-cert-all \
|
|
test-cert-type \
|
|
test-cert-length \
|
|
test-cert-data \
|
|
test-cert-read \
|
|
test-cert-length-correct \
|
|
test-cert-length-too-short \
|
|
test-cert-length-data-short \
|
|
test-cert-data-correct \
|
|
test-cert-data-too-long \
|
|
test-cert-data-too-short \
|
|
test-cert-read-correct \
|
|
test-cert-read-short \
|
|
test-cert-read-remainder \
|
|
test-cert-read-invalid |