Commit graph

19 commits

Author SHA1 Message Date
485ad3815f Add helper function to get stderr of a command
But also get back the Assert object, which can then be used to check
whether the command succeeded or failed.

Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-11-03 11:30:33 +01:00
0c685fde73 Add imag-tag tests
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-11-03 11:30:33 +01:00
f7bc7d0834 Adapt to quote-less output
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-11-03 11:30:33 +01:00
00d6e78c5d Rewrite imag header version output test
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-11-03 11:30:33 +01:00
cf4298b9da Add call() helper
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-11-03 11:30:33 +01:00
a837cff382 Add tests for imag-grep
Signed-off-by: Matthias Beyer <mail@beyermatthias.deg
2019-11-03 11:30:33 +01:00
f1b5b0915b Refactor file_path and provide helper function for store path
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-11-02 18:19:30 +01:00
a8b75ad2ba Refactor out helper function to simply get stdout of a command
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-11-02 18:19:30 +01:00
fd2afad72a Move path calculation to helper function
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-11-02 18:19:30 +01:00
4cbcdc118c Add test: Check whether imag-header prints correct string when querying imag.version header
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-11-02 18:19:30 +01:00
4b3e2ea4cd Add test: Test whether imag-header reports header at imag.version after entry creation
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-11-02 18:19:30 +01:00
61a1a241c8 Add test: imag-ids reports id after it was created
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-11-02 18:19:30 +01:00
ceabde799b Add test: check whether imag-create works as expected
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-11-02 18:19:30 +01:00
4c67450b0c Add test: store is empty after creation
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-11-02 18:19:30 +01:00
eb6029537a Add test: check with imag-ids whether no entries exist after init
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-11-02 18:19:30 +01:00
966eb6d045 Add test: check whether imag-init creates store path
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-11-02 18:19:30 +01:00
409660b07b Add test: check whether default configuration is added when imag-init is called
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-11-02 18:19:30 +01:00
49af82cc68 Add imag-init test
* Extract function to call imag-init for a tempdir path
* Simplify setup helper functions

Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-11-02 18:19:30 +01:00
d78ab67956 Add crate for ui-tests
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-11-02 18:19:30 +01:00