Commit Graph

16 Commits

Author SHA1 Message Date
Willow Barraco
89a77e6057 Rely on /sys/power/wake_lock
Signed-off-by: Willow Barraco <contact@willowbarraco.fr>
Signed-off-by: Peter John Hartman <peterjohnhartman@gmail.com>
2023-02-23 17:11:48 -06:00
Willow Barraco
5fa612aa51 Fix shellspec 2023-02-19 10:02:32 +01:00
Willow Barraco
ba1f48df07 Drop the stdin sxmo_status_spec test 2023-02-01 17:26:09 +01:00
Willow Barraco
0c96dd249b Update shellspec sxmo_status.sh 2023-02-01 17:02:45 +01:00
Anjandev Momi
1d0fc34cec fix shellcheck 2022-12-05 11:59:06 -08:00
ArenM
380a81299f Add basic tests for the appmenu
My main motivation for writing this was as a regression test for my
recent patch "appmenu: require exact match with picked"
https://lists.sr.ht/~mil/sxmo-devel/patches/32362

Signed-off-by: Anjandev Momi <anjan@momi.ca>
2022-12-05 11:56:02 -08:00
ArenM
7e763717d4 Limit scripts in path for tests
shellspec adds spec/support/bin to the path, so we can put scripts that
should always be available here.

Also don't source sxmo_common.sh in the helper, if scripts don't do it
themselves we shouldn't do it for them in the tests.

Signed-off-by: Anjandev Momi <anjan@momi.ca>
2022-12-05 11:55:37 -08:00
Stacy Harper
a2405f6d57 Fix shellspec 2022-11-15 13:41:55 +01:00
Stacy Harper
9e186d1422 Fix sxmo_common_spec failure while sxmo isnt installed 2022-05-26 16:17:58 +02:00
Anjandev Momi
faf766cc43 add test to check if tests are ran with sxmo_common.sh loaded
This test checks if our tests are being ran with sxmo_common.sh loaded

Signed-off-by: Stacy Harper <contact@stacyharper.net>
2022-05-26 15:02:03 +02:00
ArenM
846eef58fb sxmo_status: don't attempt to find XDG_RUNTIME_DIR
jk_000 on irc had a issue with the led script hanging, during the
process of debugging it it seemed to be looking for the led lock in
~/.local/run.

I don't know if this is related, but it should be changed now that we
make sure to always initialize XDG_RUNTIME_DIR, and don't use
.local/run.

v1 of this patch caused the tests to fail because XDG_RUNTIME_DIR isn't
set in the test environment. This sets it to a temporary directory
before the test run.

Signed-off-by: Stacy Harper <contact@stacyharper.net>
2022-04-03 12:23:23 +02:00
Anjandev Momi
1123c0f072 Change license to AGPL-3.0-only 2022-03-15 08:00:00 -04:00
ArenM
d1e025f1f7 Don't wait multiple times
The wait command will wait for all process known to the shell if no
arguments are passed, so in these cases looping does nothing.

Signed-off-by: Stacy Harper <contact@stacyharper.net>
2022-02-20 10:48:24 +01:00
Stacy Harper
d3e56c2c1a Fix sxmo_mutex lock file 2022-02-15 12:00:53 +01:00
ArenM
119dc6c2bc Add tests for sxmo_mutex.sh
Signed-off-by: Stacy Harper <contact@stacyharper.net>
2022-02-15 09:39:46 +01:00
Anjandev Momi
86e3071033 sxmo-utils: Add sxmo_status_spec.sh
Original patch: https://lists.sr.ht/~mil/sxmo-devel/patches/29204

Signed-off-by: Anjandev Momi <anjan@momi.ca>
2022-02-09 20:00:57 -05:00