Revision 5b2a7a61
Added by koszko almost 2 years ago
| Makefile.in | ||
|---|---|---|
| 1 | 1 |
# This file is part of Haketilo |
| 2 | 2 |
# |
| 3 | 3 |
# Copyright (C) 2021, jahoti |
| 4 |
# Copyright (C) 2021, Wojtek Kosior |
|
| 4 | 5 |
# |
| 5 | 6 |
# This program is free software: you can redistribute it and/or modify |
| 6 | 7 |
# it under the terms of the CC0 1.0 Universal License as published by |
| ... | ... | |
| 30 | 31 |
all all-unpacked default unpacked \ |
| 31 | 32 |
install install-html install-dvi install-pdf install-ps uninstall \ |
| 32 | 33 |
install-strip clean distclean mostlyclean maintainer-clean TAGS info \ |
| 33 |
dvi html pdf ps dist check installcheck installdirs |
|
| 34 |
dvi html pdf ps dist check installcheck installdirs \ |
|
| 35 |
test test-environment |
|
| 34 | 36 |
|
| 35 | 37 |
# core files |
| 36 | 38 |
icons/haketilo16.png: icons/haketilo.svg |
| ... | ... | |
| 57 | 59 |
%-build.zip: %-unpacked |
| 58 | 60 |
cd $< && zip -q -r ../$@ * |
| 59 | 61 |
|
| 62 |
test/certs/: |
|
| 63 |
mkdir $@ |
|
| 64 |
|
|
| 65 |
test/certs/%.key: | test/certs/ |
|
| 66 |
openssl genrsa -out $@ 2048 |
|
| 67 |
|
|
| 68 |
test/certs/rootCA.pem: test/certs/rootCA.key |
|
| 69 |
openssl req -x509 -new -nodes -key $< -days 1024 -out $@ \ |
|
| 70 |
-subj "/CN=Haketilo Test" |
|
| 71 |
|
|
| 72 |
test: test/certs/rootCA.pem test/certs/site.key |
|
| 73 |
MOZ_HEADLESS=whatever pytest |
|
| 74 |
|
|
| 75 |
test-environment: test/certs/rootCA.pem test/certs/site.key |
|
| 76 |
python3 -m test |
|
| 60 | 77 |
|
| 61 | 78 |
# helper targets |
| 62 | 79 |
clean mostlyclean: |
| 63 | 80 |
rm -rf mozilla-unpacked chromium-unpacked haketilo-$(version) |
| 64 | 81 |
rm -f mozilla-build.zip chromium-build.zip haketilo-$(version).tar.gz \ |
| 65 | 82 |
haketilo-$(version).tar |
| 83 |
rm -rf test/certs |
|
| 84 |
rm -rf $$(find . -name geckodriver.log) |
|
| 85 |
rm -rf $$(find . -type d -name __pycache__) |
|
| 66 | 86 |
|
| 67 | 87 |
distclean: clean |
| 68 | 88 |
rm -f Makefile config.status record.conf |
Also available in: Unified diff
add Selenium- and Python-based test system