Commit Graph

7 Commits

Author SHA1 Message Date
Alex Xu (Hello71)
b69e0230d0 tests: use BATS_TEST_TMPDIR, don't dump temp files in repo 2022-05-21 14:23:58 +00:00
Natanael Copa
dee82f764c tests: skip lock test on s390x
the sleep(0) trick does not appear to work on s390x. which is okish as
worst case we end up with lock file leftovers. skip the test
2021-05-14 12:53:11 +02:00
Natanael Copa
6a6145b9b3 tests: improve abuild-fetch locking test
make sure that we cover the issue #10026
2021-05-05 17:17:54 +02:00
Natanael Copa
77c21fab30 tests: abuild-fetch test http:// 2021-04-20 13:05:09 +02:00
Natanael Copa
e2882e4371 tests: abuild-fetch: add test for file locking
make curl block via a fifo, so we can simulate that it is downloading.
when we want fake that curl is done with the download we write to the
fifo.

We then check that a second invocation of abuild-fetch will block til
the first one is done.
2021-04-20 12:44:38 +02:00
Natanael Copa
cb9ac5be89 tests: abuild-fetch: test wget fallback
if curl is unavailable wget should be called
2021-04-20 11:26:19 +02:00
Natanael Copa
d708a813a3 tests: add tests for abuild-fetch 2021-04-20 11:16:23 +02:00