1
0
Fork 0
mirror of synced 2024-11-05 01:08:59 -05:00
Commit graph

43 commits

Author SHA1 Message Date
Erik Flodin
f67189c6b7
Use local version of yadm by default (in testhost/scripthost)
Also symlink instead of copy in that case, so that changes locally can
be reflected in the testhost directly, and print the used version in a
more readable format.
2021-01-02 00:05:00 +01:00
Tim Byrne
207e0a9850
Use -E instead of -r
The BSD version of sed doesn't support -r, but -E seems universally
supported.
2020-12-30 14:46:04 -06:00
Erik Flodin
8d15eb970e
Don't pass -k to py.test when doing make test/test_foo.py
As py.test then complains about "Wrong expression passed to '-k'"
2020-12-30 12:54:14 +01:00
Erik Flodin
32cc51c391
Document version=local in make usage text 2020-12-30 12:54:13 +01:00
Erik Flodin
64da1a6bee
Include released yadm versions also in testenv 2020-12-30 12:54:13 +01:00
Erik Flodin
44de30374f
Only run docker in interactive mode when stdin is a terminal 2020-12-30 12:54:12 +01:00
Erik Flodin
a9d9e89d0c
Use a common target to pick yadm to test in test/scripthost 2020-12-30 12:01:40 +01:00
Tim Byrne
d0b0e3afa8
Update testbed version 2020-12-29 16:53:03 -06:00
Erik Flodin
39e43a7a74
Remove the requirement on docker-compose for running tests
Besides simplifying the setup it also has the nice side-effect of
being able to override the docker image on the command line:
$ make test IMAGE=foobar
2020-12-29 18:25:58 +01:00
Erik Flodin
22d5e03657
Fix contrib make target
Set shell explicitly as it doesn't work with the default shell on Debian.
2020-12-29 15:38:51 +01:00
Tim Byrne
c8d516c67d
Bump versions of required linters 2020-12-21 17:06:14 -06:00
Tim Byrne
62a86ecd27
Support "make testhost version=local" 2020-11-25 23:18:25 -06:00
Tim Byrne
48d77c9f21
Use make variables instead of env variables 2020-10-10 18:12:51 -05:00
Erik Flodin
3741b92737
Fix setting the default value of version in Makefile
As each command in a make target is executed separately, a variable set in one
command isn't available in the following commands.
2020-10-10 18:25:01 +02:00
Erik Flodin
95c17d0bc5
Make shell redirections in Makefile work with dash
The default shell in Debian is dash and it doesn't support &>.
2020-10-10 18:24:50 +02:00
Tim Byrne
4ff12c7125
Sort contributors by lines changed
Previously number of commits were used
2020-08-09 15:54:21 -05:00
Tim Byrne
71ecf27291
Update testbed docker image 2020-07-08 16:16:47 -05:00
Jonathan Daigle
f348e154c7
Add support for ESH 2020-05-27 19:38:15 -04:00
Tim Byrne
bd68229c57
Use include "venv" instead of "virtualenv" 2020-01-30 08:42:17 -06:00
Tim Byrne
d16f4b134a
Add man to testbed Docker image 2020-01-21 07:26:00 -06:00
Tim Byrne
fe96cfce28
Update testbed image to use GnuPG 2 2019-12-05 15:02:46 -06:00
Tim Byrne
4d23bbcf11
Standardize on &> when not appending output 2019-12-04 22:39:00 -06:00
Tim Byrne
2eb8a9e362
Add make install 2019-11-09 16:01:54 -06:00
Tim Byrne
1fc52536ac
Fix contrib make target (dev has been changed to develop) 2019-11-07 21:23:49 -06:00
Tim Byrne
2508378617
Upgrade yadm testbed
* Update software in Dockerfile
* Add j2cli
* Bump supported versions of linters
2019-10-02 15:16:09 -05:00
Tim Byrne
282b772ce5
Add yamllint to testenv
Also organize pip install command so software can be added/removed
easier.
2019-03-24 14:27:21 -05:00
Tim Byrne
abcc201894
Improve Makefile usage info 2019-03-11 23:20:40 -05:00
Tim Byrne
27859af307
Add make target "scripthost"
Hopefully this target will help others demonstrate problems in a
reproducible way.
2019-03-01 08:07:30 -06:00
Tim Byrne
23e4b38ef2
Update Makefile
* Add usage/help
* Check for dependencies in testing targets
* Remove bats-based targets
* Change location of testenv
2019-02-25 16:32:34 -06:00
Tim Byrne
e7f9616b39
Rewrite testing system (#119)
The new test system is written with py.test. These tests are more
comprehensive, run faster by an order of magnitude, and are far more
maintainable. The tests themselves conform to PEP8.
2019-02-20 07:48:25 -06:00
Tim Byrne
db9c00287b
Fix contrib target 2017-10-16 17:36:14 -05:00
Tim Byrne
e09b5a551e
Declare PHONY targets in Makefile 2017-09-04 11:59:06 -05:00
Tim Byrne
eef9bfa2f7
Add a testhost target
This target runs Bash in an ephemeral docker container with the HEAD
revision of yadm mounted at /bin/yadm. You can override the version
using any "commit-ish". Eg. `target=1.06 make testhost`
2017-09-04 11:59:06 -05:00
Tim Byrne
356c47a19f
Add Bash completion script (#60)
* Add completion script
* Add introspection
2017-04-24 07:49:10 -05:00
Tim Byrne
97b784d55d
Process bootstrap with Shellcheck 2017-01-27 17:25:30 -06:00
Tim Byrne
3f7e8b148e
Add make target parallel 2017-01-16 17:01:53 -06:00
Tim Byrne
a09738616d
Expand branches used for generating CONTRIBUTORS 2017-01-12 17:11:30 -06:00
Tim Byrne
06757b3544
Write .bash version of .bats to /tmp 2017-01-05 16:58:59 -06:00
Tim Byrne
bd3ed72ee8
Unset GPG_AGENT_INFO while tests are running 2016-06-08 08:33:47 -05:00
Tim Byrne
b3209de4dc Add shellcheck tests 2016-04-07 08:16:13 -05:00
Tim Byrne
d2cd3b1b26 Add tests
Tests will be run using `bats`.
2016-04-07 08:14:13 -05:00
Tim Byrne
20f47be9fe Add CONTRIBUTORS 2016-01-08 21:46:06 -06:00
Tim Byrne
f1a75db991 Create make targets for processing documentation 2015-07-16 19:38:17 -05:00